Kevin,
This is not working.
Inside my folder, I have the following:
\bin
\Themes
Default.html
Default.json
favicon.ico
web.config
Inside my web.config, I have the following
<?xml version=”1.0″?>
<!–
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
–>
<configuration>
<appSettings>
<add key=”Wisej.LicenseKey” value=””/>
<add key=”Wisej.DefaultTheme” value=”Blue-1″/>
</appSettings>
<system.web>
<compilation debug=”true” />
<httpRuntime targetFramework=”4.6″ maxRequestLength=”1048576″/>
<httpModules>
<add name=”Wisej” type=”Wisej.Core.HttpModule, Wisej.Framework”/>
</httpModules>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration=”false”/>
<modules>
<add name=”Wisej” type=”Wisej.Core.HttpModule, Wisej.Framework”/>
</modules>
<handlers>
<add name=”json” verb=”*” path=”*.json” type=”System.Web.HttpForbiddenHandler” />
<add name=”wisej” verb=”*” path=”*.wx” type=”Wisej.Core.HttpHandler, Wisej.Framework”/>
</handlers>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength=”1073741824″/>
</requestFiltering>
</security>
<defaultDocument enabled=”true”>
<files>
<add value=”Default.html” />
</files>
</defaultDocument>
</system.webServer>
<!–<system.diagnostics>
<trace autoflush=”true” indentsize=”4″>
<listeners>
<remove name=”Default” />
<add name=”Default” type=”System.Diagnostics.TextWriterTraceListener” initializeData=”Trace.log” />
</listeners>
</trace>
</system.diagnostics>–>
</configuration>
I can navigate to the Default.html with no issues, but the page shows nothing..
Hi Cristian,
can you please wrap up a small test case so we can see why it fails for you?
Thanks in advance!
Best regards
Frank
Sorry I’had lost this post.
ChartType.Line
best
Cristian
No way? 🙁
Ok I will try and keep you informed.
thanks for your quick reply
We also have the RightClickSelection property:
https://docs.wisej.com/api/wisej.web/lists-and-grids/treeview#rightclickselection
https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview#rightclickselection
https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.listbox#rightclickselection
Does’t work with a TreeNode with a ContextMenu, which is a bug just logged. You can also assign a ContextMenu to the TreeView instead each single node instead.
Here’s what I did, based on Kevin’s answer above.
public static void SelectOnRightClick(this TreeView tv)
{
// this needs to be "definitely assigned" due to the self-reference in the definition.
CollectionChangeEventHandler cceh = null;
cceh = (_, ccea) =>
{
if (ccea.Action == CollectionChangeAction.Add)
{
if (ccea.Element is TreeNode nd)
{
nd.ContextMenu = tv.ContextMenu;
nd.NodeMouseClick += (__, mce) => tv.SelectedNode = nd;
nd.Nodes.CollectionChanged += cceh;
}
}
};
tv.Nodes.CollectionChanged += cceh;
}
Hi Carl,
Yes, you are right,
You can use this trick to get the result you wanted:
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
for (int i = 0; i < treeView1.Nodes.Count; i++)
{// Add event and load ContextMenu
treeView1.Nodes[i].ContextMenu = this.contextMenu1;
treeView1.Nodes[i].NodeMouseClick += Window1_NodeMouseClick;
}
}
private void Window1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{ //Select node
treeView1.SelectedNode = e.Node;
}
Happy coding,
Kevin (ITG)
Hi Justice,
You can achieve your goal by using the DataGridView SummaryRows, it’s a neat feature in Wisej!
There’s a sample that can guide you, you can find it here: wisej-examples/DataGridViewSummaryRows at 2.5 · iceteagroup/wisej-examples (github.com)
Also, please checkout the documentation here: wisej-examples/DataGridViewSummaryRows at 2.5 · iceteagroup/wisej-examples (github.com)
Please let us know if it works for you!
Best,
Alaa
Like the attached picture.
Regards
Hi
I want to insert a total column below the last data in the detail column of DataGridView.
Later, I tried to make the following modifications:
DataGridViewRow dr = new DataGridViewRow();
//dr.CreateCells(dgViewSum);
// ◇◆ DataGridViewRow 已經不包含 CreateCells 這個 Method 了,改用 Cells.Add(DataGridViewCell)– Modified by Justice Lin 2022/02/10
DataGridViewCell dc = new DataGridViewCell();
dr.Cells.Add(dc);
dr.Cells[0].Value = “合計:”;
dgViewSum.Rows.Insert(0, dr);
However, it has not been tested yet.
Thank you!
Hi, for Textbox line spacing
– Did you tried with fonts property lineHeight? whit this you can control the paragraph spacing in textbox
here a picture about it
Regards
Hi
In Wisej DataGridRow don’t have CreateCells method
If you could explain us what is your goal, we could help you in a better way
Regards
Hi Kurt,
You can consult this link https://docs.wisej.com/deployment/ for more details about the deployment.
Happy coding
Kevin(ITG)
Hi BJORN,
Juste use
string ip= Application.ServerVariables.Get("LOCAL_ADDR"); or string ip = Application.UserHostAddress;
Happy coding
Kevin(ITG)
See attached sample. All you need to do is use the “button” appearance on a label with html in it. With css you can align it, color it, etc.
Unit testing is fully supported. Just pick a .NET unit testing framework of your choice. How to write unit tests is unrelated to Wisej. For UI testing, being a web system, you have to use web UI testing tools and get familiar with things like selenium. We provide consulting services in that area. But there are a large number of resources around, however it can get quite tricky. Also unrelated to Wisej.
In terms of app architecture that’s also unrelated to Wisej. You can separate ui, logic, model, views in any way you like. There are many examples around. Most are, IMHO, written by people that have never seen a real app and just spend time writing blogs with trivial code. 🙂
In our projects we usually go for model, views and controllers (not to be confused with aspnet mvc). Other times we need to use orm systems. Other times existing code is too complex and we keep it as is.
In general, Wisej takes care of displaying server side components as javascript widgets. There is no other limitation to what you can do in C# or VB.NET or F# in .NET.
Hi Alaa,
I just tried and it works
thanks
Hi Alaa,
I just tried and it works
thanks
Thanks Alaa – I’ll watch out for it.
