iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi Gao Yixin,
I believe this issue has been discussed on our Last Live chat and remote desktop. I will be waiting for your response to create another session regarding this issue.
Thank you and have a nice day.
Best Regards,
Andi Santoso
Hi Xedem,
After further investigation, the problem is, we have set the WebGrid 's width to be 100% and also set the AutoFitcolumn to true as well. So after I removed the width of WebGrid (100%), it fixes the issue. When we used AutoFitColumn to true, we do not need to set the WebGrid to be 100% anymore. It will give us a same behaviour.
I also attached you a running sample and screenshot of it in both browser. I hope it helps. Thank you and have a nice day.
Hi Srikant Biswal,
In order to do so, we will need to use client side event of OnContextMenu. So, I believe that you can create your own specific requirement of a specific event in this OnContextMenu event. If it meets the requirement, you can simply hide the other categories that are not unwanted. Here is the snippet to hide the other Categories.
function WebScheduler1_OnContextMenu(controlId, type, menuObj, el, eventView) { var WebScheduler1 = ISGetObject(controlId); menuObj.Items[11].Items[1].Hide(); menuObj.Items[11].Items[2].Hide(); menuObj.Items[11].Items[3].Hide(); return true; }
In here, I only show the item index of 0. The first item(Items[11]) indicates the “Category” menu and it will keep the same and the second Item(Items[1], Items[2],…) indicates the category sub menu, it depends on which submenu do we want to hide. You can create a loop to hide the other submenu of category as well.
I hope it helps. Thank you and have a nice day.
Hi GS,
I have tried your scenario and it works just fine. Please ensure that you have put those block of code inside the server side Initialize Layout of WebGrid.
I also attached you a simple sample of WebGrid using Northwind database and a button on it. After you have made any changes in WebGrid, try to click on the button. It will give us a notification regarding the unsaved data.
Forgive me, however I am not able to replicate the issue of yours. Have you ensure that you have updated all the ISDataSource in three places that I mentioned last time?(Program files, GAC and your project bin folder).
If it only happends on your own project and not at our sample, could you send me a full project of yours for me to investigate them furthermore?
Thank you and have have a nice day.
Hi Ben,
Basically, if we want to use a SQL Server Connection, we can simply set the return value as a DataTable. After we get the data in DataTable format, we can get the total count of rows and get the value of its row(we can also get by its column as well). Here is the snippet to do so:
WebNavPane navPane = (WebNavPane)WebPaneManager1.FindControl("WebNavPane1");
DataTable dt = new DataTable(); string connString = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Northwind.mdf;Integrated Security=True;User Instance=True"; SqlConnection conn = new SqlConnection(connString); SqlDataAdapter daCustomers = new SqlDataAdapter(); conn.Open(); string queryCustomers = "SELECT * FROM Categories"; SqlCommand cmd = new SqlCommand(queryCustomers, conn); daCustomers.SelectCommand = cmd; daCustomers.Fill(dt); int index = dt.Rows.Count; for (int i = 0; i < index; i++) { WebNavBar[] navBar = new WebNavBar[index]; WebNavBarItem[] navBarItem = new WebNavBarItem[index]; navBar[i] = new WebNavBar(); navBarItem[i] = new WebNavBarItem(); navBarItem[i].Name = dt.Rows[i].ItemArray[2].ToString(); navBarItem[i].Text = dt.Rows[i].ItemArray[2].ToString(); navBarItem[i].DisplayMode = ISNet.WebUI.WebDesktop.DisplayMode.Text; navBar[i].Name = dt.Rows[i].ItemArray[1].ToString(); navBar[i].Text = dt.Rows[i].ItemArray[1].ToString(); navBar[i].CaptionDisplayMode = ISNet.WebUI.WebDesktop.DisplayMode.Text; navBar[i].Items.Add(navBarItem[i]); navPane.Bars.Add(navBar[i]); }
Hi Shawn,
Forgive me for MIA, we had a couple days off last week. I think, I will do need more time to investigate this scenario. I have also forwarded this to our Developer team.
Thank you for being patience. I hope it helps and I will inform you as soon as I get a news from them.
After investigating, the problem is occured because of the table in our sample. There are some settings that are needed to be done in order to use XHTML with this scenario. We will need to set:
- Width at table level. <table style="table-layout:fixed; width:100%;">
- Width at each cell <td style="width:100%">
- Width at Grid level <ISWebGrid:WebGrid Width:"100%">
To clarify this, I also attached a sample that successfully run in my end and a screenshot of each browser. I have tested them in both browser, IE 8 and Mozilla 3.5.8. I hope it helps. Thank you and have a nice day.
Hi Raviraj Shimpi,
In order to create a skin for WebGrid and apply them in your project, we will need to use WebStyleManager. Usually it is located at "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Intersoft WebUI Studio 2009 R2\WebUI Studio for ASP.NET\WebDesktop 3".
Here is the link to show a video on how to use our WebStyleManager. In that sample, it will create a theme style for WebDesktop. However, you can create it for WebGrid as well. During adding the component, you can add the WebGrid component instead of the WebDesktop component.
After you have done follow these steps, you can see a istheme.config on your project and a "Themes" folder. How to apply these theme is, you can simply go to WebGrid.Net Designer-> LayoutManager. Then, you can click on the plus(+) sign and load the .isl file that located in your project's Themes folder.
If all of this make you confused, there is a workaround to use a CSS to modify a WebGrid's style. You can go to our WebGrid's documentation and seach for "ms-help://ISNet.WebUI.WebGrid.V7/ISNet.WebUI.WebGrid/Control WebGrid's styles using external CSS definition.html".
I hope it can help you. Thank you and have a nice day.
Hi Ben Denison,
In order to do so, since we need to create an object of NavBar and NavBarItem for each data that we have got from the database list, we will need to use an arrayed of NavBar and NavBarItem object. During the looping, we can add each NavBarItem to NavBar and then, add them to our NavPane one by one.
Here is the snippet to do so:
protected void Page_Load(object sender, EventArgs e) { WebNavPane navPane = (WebNavPane)WebPaneManager1.FindControl("WebNavPane1"); List<SimpleList.Customer> cust = SimpleList.CustomerManager.GetCustomer(); int index = cust.Count; for (int i = 0; i < index; i++) { WebNavBar[] navBar = new WebNavBar[index]; WebNavBarItem[] navBarItem = new WebNavBarItem[index]; navBar[i] = new WebNavBar(); navBarItem[i] = new WebNavBarItem(); navBarItem[i].Name = cust[i].CustomerName; navBarItem[i].Text = cust[i].CustomerName; navBarItem[i].DisplayMode = ISNet.WebUI.WebDesktop.DisplayMode.Text; navBar[i].Name = cust[i].CustomerID.ToString(); navBar[i].Text = cust[i].CustomerID.ToString(); navBar[i].CaptionDisplayMode = ISNet.WebUI.WebDesktop.DisplayMode.Text; navBar[i].Items.Add(navBarItem[i]); navPane.Bars.Add(navBar[i]); } }
I also attached you my running sample along with the database list(SimpleList.cs). Please ensure to put this .cs file into the App_Code folder in your project.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname