Hi All
can anyone give me a solution to get the values binded to radgrid and made the column as hidden/visible =false
i need to get the hiddden values of the rows where checkboxes are checked, if header checkox is checked i need to get all values and use those values...
this is my radgrid
<telerik:RadGrid ID="M" runat="server" Width="99%" AllowPaging="True" EnableViewState="False"
GridLines="None" meta:resourcekey="MResource1" AllowFilteringByColumn="true"
OnInit="GridControl_Init" EnableLinqExpressions="false"
EnableEmbeddedSkins="false" AutoGenerateColumns="False">
<HeaderContextMenu EnableEmbeddedSkins="True">
</HeaderContextMenu>
<FilterMenu Skin="Nediso" EnableEmbeddedSkins="false">
</FilterMenu>
<PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" AlwaysVisible="true" />
<MasterTableView Width="100%" EnableViewState="False" AllowFilteringByColumn="true">
<Columns>
<telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn" AllowFiltering="false">
<HeaderStyle Width="3%" HorizontalAlign="Justify" />
<ItemStyle Width="3%" HorizontalAlign="Justify" />
<HeaderTemplate>
<asp:CheckBox id="headerChkbox" runat="server" onclick="SelectAll(this)"></asp:CheckBox>
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox id="CheckBox1" runat="server"></asp:CheckBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="TOKEN" Visible="false" UniqueName="TOKEN" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="FIRST NAME" HeaderText="FIRST NAME" UniqueName="FIRST NAME1">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="LAST NAME" HeaderText="LAST NAME" UniqueName="LAST NAME1">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="STATUS" HeaderText="STATUS" UniqueName="STATUS1">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="DESIGNATION" HeaderText="DESIGNATION" UniqueName="DESIGNATION1">
</telerik:GridBoundColumn>
</Columns>
<PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" Position="TopAndBottom" />
</MasterTableView>
<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" EnableRowHoverStyle="True">
<Resizing AllowColumnResize="True" />
<Selecting AllowRowSelect="True" />
<ClientEvents OnFilterMenuShowing="OnFilterMenuShowing"></ClientEvents>
</ClientSettings>
<FilterMenu EnableTheming="True">
<CollapseAnimation Type="None" />
<ExpandAnimation Type="None" />
</FilterMenu>
</telerik:RadGrid>
i have a button outside the grid when the button is clicked i need to get the value placed in hidden column for only which the textbox is checked.. pls reply me soon.
can anyone give me a solution to get the values binded to radgrid and made the column as hidden/visible =false
i need to get the hiddden values of the rows where checkboxes are checked, if header checkox is checked i need to get all values and use those values...
this is my radgrid
<telerik:RadGrid ID="M" runat="server" Width="99%" AllowPaging="True" EnableViewState="False"
GridLines="None" meta:resourcekey="MResource1" AllowFilteringByColumn="true"
OnInit="GridControl_Init" EnableLinqExpressions="false"
EnableEmbeddedSkins="false" AutoGenerateColumns="False">
<HeaderContextMenu EnableEmbeddedSkins="True">
</HeaderContextMenu>
<FilterMenu Skin="Nediso" EnableEmbeddedSkins="false">
</FilterMenu>
<PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" AlwaysVisible="true" />
<MasterTableView Width="100%" EnableViewState="False" AllowFilteringByColumn="true">
<Columns>
<telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn" AllowFiltering="false">
<HeaderStyle Width="3%" HorizontalAlign="Justify" />
<ItemStyle Width="3%" HorizontalAlign="Justify" />
<HeaderTemplate>
<asp:CheckBox id="headerChkbox" runat="server" onclick="SelectAll(this)"></asp:CheckBox>
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox id="CheckBox1" runat="server"></asp:CheckBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="TOKEN" Visible="false" UniqueName="TOKEN" >
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="FIRST NAME" HeaderText="FIRST NAME" UniqueName="FIRST NAME1">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="LAST NAME" HeaderText="LAST NAME" UniqueName="LAST NAME1">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="STATUS" HeaderText="STATUS" UniqueName="STATUS1">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="DESIGNATION" HeaderText="DESIGNATION" UniqueName="DESIGNATION1">
</telerik:GridBoundColumn>
</Columns>
<PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" Position="TopAndBottom" />
</MasterTableView>
<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" EnableRowHoverStyle="True">
<Resizing AllowColumnResize="True" />
<Selecting AllowRowSelect="True" />
<ClientEvents OnFilterMenuShowing="OnFilterMenuShowing"></ClientEvents>
</ClientSettings>
<FilterMenu EnableTheming="True">
<CollapseAnimation Type="None" />
<ExpandAnimation Type="None" />
</FilterMenu>
</telerik:RadGrid>