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
... I managed to do filtering in the same way as in your example ...
Glad to hear the good news.
Should you need further assistance or run into any problems regarding our controls, feel free to contact us through the live chat service or post it into our community. We would be happy to assist you again.
Do we have any update on the above ticket?
Sorry for the delay in sending this.
The ExportAllData will not work if VirtualLoadMode is set to Custom or LargeData. For such scenario, you might want to try this approach: re-creating the table that will be exported by utilizing OnExport server-side event of WebGrid.
WebGrid has OnExport server-side event which allows you to use your own exporting codes or module to handle exporting functionality.
I managed to export all data by modifying WebGridRowCollection such as shown in the following snippet code (please note that following snippet code works for WebGrid's data binding performed at OnInitializeDataSource event):
protected void WebGrid1_Export1(object sender, ExportEventArgs e) { e.Table.Rows.Clear(); DataRowCollection rows = (e.DataSource as System.Data.DataView).ToTable().Rows; foreach (DataRow row in rows) { var wgRow = e.Table.CreateRow(); foreach (WebGridColumn col in e.Table.Columns) { if (!col.IsRowChecker) { wgRow.Cells.GetNamedItem(col.Name).Value = row[col.DataMember]; wgRow.Cells.GetNamedItem(col.Name).Text = wgRow.Cells.GetNamedItem(col.Name).Value.ToString(); } } e.Table.Rows.Add(wgRow); } }
Please give it a spin and let us know how it works in your end.
Please find LicenseManager.zip in the attachment and carefully perform following steps:
Try to replace WebGrid1.DataSourceManager.CurrentDataSource with e.DataSource. The OnExport event-handler will look like following after changes:
Hope this helps.
I created a sample of WebCombo with following specification:
customersCombo.SetAdditionalFilters("[Country] = 'Germany'");
Please find the attached sample and let me know whether this helps or not.
Thank you for the sample (WebgridBrowserCompTesting.zip).
Please find my simple sample created based on WebgridBrowserCompTesting (aspx and aspx.cs file from WebgridBrowserCompTesting.zip). Per my test, WebGrid works without problem on Firefox 50.0 and Chrome 54.0 browser.
Should you have different result, please feel free to let me know.
... return resized webgrid columns so it could be save and used to fix the width when user return to that page next time...
WebGrid has SaveTablesStructureToXml() method which allows you to save RootTable properties – including its Columns and ChildTables – along with all objects contained to an XML file. The table structure can be applied to WebGrid by using LoadTablesStructureFromXml method. The method will loads table file structure from an XML file and restore it to RootTable of WebGrid.
The snippet code below shows how to save and restore WebGrid's table structure to/from XML file.
protected void Button1_Click(object sender, EventArgs e) { WebGrid1.SaveTablesStructureToXml(Server.MapPath("WebGridTableStructure.xml")); }
protected void Button1_Click(object sender, EventArgs e) { WebGrid1.LoadTablesStructureFromXml(Server.MapPath("WebGridTableStructure.xml")); }
Alternatively, you can save the structure to memorystream by invoking SaveTablesStructure() method.
protected void Button1_Click(object sender, EventArgs e) { MemoryStream ms = new MemoryStream(); WebGrid1.SaveTablesStructure(ms); Session["wgState"] = ms; }
Then load it by invoking LoadTablesStructure() method.
protected void Button2_Click(object sender, EventArgs e) { // retrieve the saved state object state = Session["wgState"]; if (state != null) { MemoryStream ms = (MemoryStream)state; ms.Seek(0, SeekOrigin.Begin); WebGrid1.LoadTablesStructure(ms); WebGrid1.RebindDataSource(); } }
How can I do this form codebehind or from markup?
In order to register SmartWebResources, please carefully follow the steps below:
Please note: You only need to perform this instruction once throughout development for the specific web application.
If you still have difficulties to register SmartWebResources, please feel free to let us know.
Could you please try to add the ScriptService attribute for the WebService1 class (in WebService1.asmx.cs)? Following snippet code shows how:
/// <summary>/// Summary description for WebService1/// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. [System.Web.Script.Services.ScriptService] public class WebService1 : System.Web.Services.WebService { [WebMethod] public List<Item> GetItemList() { ... } }
but for some reason webcombo only shows loading
I suspect that WebCombo keep showing loading indicator because the WebService method is not allowed to be called. Adding the ScriptService attribute for the WebService1 class should resolve the problem.
If the problem still persist, please feel free to let me know.
and onvalue change server event (OnValueChanged) need to fire to handle
OnValueChanged event handler is not fired when WebCombo is bind to WebService. For more detail, please kindly check "The Differences with Server Data Binding" section in WebCombo online documentation.
To achieve the same post-processing in client binding mode, handle the OnAfterItemSelected client-side event.
Webcombo need to support autocomplete also.
Auto complete entry mode works on WebCombo with client-binding (to WebService) enabled. Check out how the feature works on the Country WebCombo in this live sample page of WebCombo.
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