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
im using webgrid 7. I create checkbox at the server side:
Private Sub WebGrid1_InitializeRow(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.RowEventArgs) Handles WebGrid1.InitializeRow
e.Row.Cells.GetNamedItem("ChkBox").ForceNoEdit = True
If Session("UserID") = "LEE" Then
e.Row.Cells.GetNamedItem("ChkBox").Text = "<INPUT type=""checkbox"" name=""ChkBox""> "
End If
Private Sub WebGrid1_PrepareDataBinding(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.DataSourceEventArgs) Handles WebGrid1.PrepareDataBinding
If IsPostBack = False Then
WebGrid1.RetrieveStructure()
Call FormatSetting("WebGrid1")
WebGrid1.RootTable.Columns.GetNamedItem("ChkBox").ColumnType = ColumnType.Custom
The checkboxes appear well but when i can not do the multiple selection with the checkboxes. When i click other checkbox,it will refresh and just check the new selected checkbox.
Hello,
I’m currently still investigating this issue and need more time to provide you with solution, suggestion, or sample. I’ll get back to you as soon as possible.
I notice that you have created a double posting with same topic, http://www.intersoftpt.com/Community/WebGrid/multiple-selection-for-checkbox/
We will work closely on this posting.
Thank you.
You might want to use ISRowChecker property in order to create a checkbox column. By using this property, you won't get the page refreshed when you click other checkbox.
It is a built-in feature in WebGrid that you can configure, such as following:
<ISWebGrid:WebGridColumn AllowGrouping="No" AllowSizing="No" AllowSorting="No" Bound="False" Caption="CustomerID" ColumnType="CheckBox" DataMember="CustomerID" EditType="NoEdit" IsRowChecker="True" Name="CustomerID" ShowInSelectColumns="No" Width="25px"> </ISWebGrid:WebGridColumn>
Hope this helps.
Thank you Martin.
I actually already found many post about the IsRowChecker and I also already try that.
But I don't know why it doesn't work for me. When use IsRowChecker,the checkbox will appear at the design but when I debug, the checkbox not appear.
Have you tried our WebGrid samples that come with the suite when you install the package?
In the sample, we have RowCheckerColumn.aspx which is located in [Installation Folder]\Intersoft Solutions\Intersoft WebUI Studio 2011 R1\Samples\For ASP.NET\ISNet.WebUI.Samples\cs\WebGrid.
This sample is using IsRowChecker property and you can learn how to retrieve the checkbox from Server-side.
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