For Each column As DataColumn In odt.Columns
Dim boundColumn As GridBoundColumn
boundColumn = New GridBoundColumn()
dgCompGrid.MasterTableView.Columns.Add(boundColumn)
With boundColumn
.DataField = column.ColumnName
.UniqueName = "dgX" & i
.Display = True
.HeaderText = column.ColumnName
.HeaderStyle.ForeColor = Color.Black
.HeaderStyle.BackColor = Color.White
.HeaderStyle.Font.Bold = True
.ItemStyle.Font.Size = 8
.ItemStyle.ForeColor = Color.Gray
.ItemStyle.HorizontalAlign = HorizontalAlign.Left
.HeaderStyle.Font.Size = 8
End With
i = i + 1
Next 'i
First up I know I'm being lazy, but the button is in a user control, and using the request.form is easier than recreating the user control on postback and getting the value.
That said how would I get the checked value of a RadButton that is configured as a toggle button to look like a checkbox? The data is in the form :
| {"text":"","value":"","checked":true,"target":"","navigateUrl":"","commandName":"","commandArgument":"","autoPostBack":false,"selectedToggleStateIndex":0,"validationGroup":null,"readOnly":false} |
Its the Checked value I need. .
Andy
<telerik:RadGrid runat="server" ID="TasksGrid" Width="100%" Height="642px" AutoGenerateColumns="false" AllowPaging="false" AllowFilteringByColumn="false" EnableViewState="false" CssClass="TasksGridClass"> <GroupPanel Enabled="False"> <PanelItemsStyle BorderColor="Red" /> </GroupPanel> <MasterTableView ClientDataKeyNames="UniqueId,AllowOpenActivity"> <GroupByExpressions> <telerik:GridGroupByExpression> <SelectFields> <telerik:GridGroupByField FieldName="ResourceName" HeaderText="Resource" /> </SelectFields> <GroupByFields> <telerik:GridGroupByField FieldName="ResourceName" HeaderText="Resource" /> </GroupByFields> </telerik:GridGroupByExpression> </GroupByExpressions> <Columns> <telerik:GridBoundColumn HeaderText="Tasks" Groupable="False"/> </Columns> <ItemTemplate> <%#TaskDisplayInfo.RenderGridRow(Container.DataItem)%> </ItemTemplate> <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings> </MasterTableView> <GroupingSettings CaseSensitive="False" /> <ClientSettings AllowRowsDragDrop="False" AllowDragToGroup="False" > <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" /> <Selecting AllowRowSelect="true" /> <ClientEvents OnRowDblClick="OnTaskGridRowDoubleClick" /> <Resizing AllowColumnResize="False" /> </ClientSettings> </telerik:RadGrid>1var touchScroll = false;function initializeMobile() { if (Telerik.Web.UI.TouchScrollExtender._getNeedsScrollExtender() && !touchScroll) { touchScroll = new Telerik.Web.UI.TouchScrollExtender('body', { autoScan: true }); touchScroll.initialize(); }}Telerik.Web.UI.TouchScrollExtender._getNeedsScrollExtender = function () { return $telerik.isMobileSafari || $telerik.isAndroid;};