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
You could try using the AddInput function on the click client side event handler. This function will buffer a value to the ASP .NET Request object. Attached is a simple sample of the scenario you described.
I am very sorry I forgot to mention that you will need to update your WebCombo and WebUI Framework to the latest version in order for the snippet to work. In the attached project, you are still using WebCombo 4 build 12 and WebUI Framework 3 build 507. Please update the WebCombo and the WebUI Framework to build 218 and build 750 respectively.
You could retrieve all the windows object of the WebDesktopManager using the Windows property. In order to achieve the scenario, you will need to parse the Name property of the Window object and split the Name on "-" separator. Here is snippet for the client side:
function AlertClientID() { var deskktopMng = ISGetObject("WebDesktopManager1"); var idList = new Array(); var windowList = deskktopMng.Windows; var arrIndex = 0; for(var i = 0; i < windowList.length; i++) { var nameComp = windowList[i].Name.split("-"); if (windowList[i].ClientVisible == true) { idList[arrIndex] = nameComp[1]; arrIndex++; } } alert(idList.join("\r\n")); }
Here is the snippet for the server side:
ArrayList idList = new ArrayList();foreach (WebDesktopWindow wnd in WebDesktopManager1.Windows){ string[] nameComp = wnd.Name.Split(new string[] { "-" }, StringSplitOptions.RemoveEmptyEntries); if(wnd.ClientVisible == true) idList.Add(nameComp[1]);}//Process arraylist
The snippet will only hold the ID of the window which displayed to the user.
Please also make sure you already have the ISNet.WebUI.WebGrid.xml inyour project bin folder. Have you tried using a new project or the provided sample solution to check whether the issue also occurs in those projects?
We have limited support for XHTML in WebGrid 6, our suggestion for WebGrid 6 is please use the HTML Doctype. A quick test for the scenario in WebGrid 7 using XHTML doctype result in no display error / issue.
Client_RowsCells.aspx try to add rows to multiselect combo in a javsascript?
In order to add multiselect item you will need to add the checkboc element yourself after updateui is invoked. Here is the snippet:
case "Add New Row": var rows = wc4.GetRows(); // get the WebCombo4's rows for addition var newRow = wc4.NewRow("NEWCUST"); // instantiate new row with NEWCUST as the KeyValue, containing cells with empty value var cells = newRow.GetCells(); // get the cells of the new row for value assignment cells.GetNamedItem("ContactName").Text = "New Customer"; // write codes in the same way as in server-side object model, with similar object hierarchy. cells.GetNamedItem("Address").Text = "New Address"; // assign value to Address Cell cells.GetNamedItem("CustomerID").Text = "NEWCUST"; rows.Add(newRow); //add the newRow to the rows collection wc4.UpdateUI(); // instruct WebCombo to update the user interface accordingly to the changes in Rows object. var rowElem = wc4.GetRows(); var latestRow = rowElem[rowElem.length - 1]; var newInput = latestRow.RowElement.childNodes[0].document.createElement('input'); newInput.setAttribute('type', "checkbox"); newInput.setAttribute('hideFocus', "hideFocus"); latestRow.RowElement.childNodes[0].className = "WC4-C"; latestRow.RowElement.childNodes[0].setAttribute("noWrap", "noWrap"); latestRow.RowElement.childNodes[0].appendChild(newInput); alert("NEWCUST row has been added"); break;
WebComboLinked1.aspx try to use WebCombo2_InitializeDataSource eventhandler to populate WebCombo on a server.
You will need to set the MultipleSelectionSettings.AllowBrowseAll to true in order for the DropDownList to show the data. Here is the snippet:
void FormatWebCombo2(){ WebCombo2.DataMember = "Orders"; WebCombo2.DataTextField = "CustomerID"; WebCombo2.DataValueField = "OrderID"; WebCombo2.LayoutSettings.ComboMode = Mode.MultipleColumns; WebCombo2.LayoutSettings.StatusBoxVisible = false; WebCombo2.Columns.Add("CustomerID"); WebCombo2.Columns.Add("ShipAddress"); WebCombo2.Columns.Add("OrderID"); WebCombo2.MultipleSelectionSettings.Enabled = true; WebCombo2.MultipleSelectionSettings.AllowBrowseAll = true; WebCombo2.LayoutSettings.TextBoxMode = TextboxMode.ReadOnly; WebCombo2.AllowAutoQueryHandler = false; WebCombo2.AllowAutoDataCaching = false;}
WebComboLinked2.aspx try to execute [System.Web.Services.WebMethod] from javascript to populate WebCombo2 in a JavaScript
You will need to set the WebCombo2 BoundMode property to ForceUnbound under the layout settings. Here is the snippet:
<LayoutSettings ComboMode="MultipleColumns" TextBoxMode="ReadOnly" BoundMode="ForceUnbound">
In the ISDataSource documentation, section titled "Walkthrough Topics" we have shown how to bind data to ISDS. You will need a dataset in your app_code folder in your project. This dataset will use a connection string that points to your database server.
Please make sure that you already reference the WebGrid dll and WebUI Framework dll correctly in your project. You will need to make sure you already reference the latest build of both the WebGrid 7 and WebUI Framework 3, which is build 400 and 750 respectively.
I have prepared a simple sample for the scenario, sample attached. The table is in a simpler configuration however it should suffice for the scenario you intended. If the validations fail on Insert or Update row, you will need to set the ReturnValue to false and set the DataRow object of the event parameter to the last value.
In the sample, the validation is to reject insert / update that have even number ID
During my test, the object expected error points to the function GetFirstRow could not be found. The solution for this issue is by moving the GetFirstRow client side function to the head section of the page. Here is the snippet:
<head id="Head1" runat="server"> <title>Order System</title> <script type="text/javascript" language="javascript"> function GetFirstRow(gridObj) { var grid; var rows; //try { grid = ISGetObject("wgItems"); //} //catch (err) { // return false; //} if (grid == null) return false; rows = grid.TotalLoadedRows; if (rows == 1) { var rootTable = grid.RootTable; var firstRow = rootTable.GetRow(0); //firstRow.Select(); rootTable.SelectRow(0); } return true; } </script></head>
For your next issue, we recommend instead of pasting the full code page in the thread you could attached the page as an attachment.
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