Hi,
I am using the RadGrid control in my project. Here I am loading this control dynamically in a RadTab control and trying to access the master table view of the grid control .
var tableView = $find("<%= grdAllDocs.ClientID %>").get_masterTableView();
but it is throwing the following exception.
Error Msg: null is null or not an object.
I am creating the grid control as follows:-
<telerik:RadGrid ID="grdAllDocs" runat="server" EnableViewState="True" AutoGenerateColumns="false"
AllowSorting="true" PageSize="25" OnItemCreated="grdAllDocs_ItemCreated"
OnColumnCreated="grdAllDocs_ColumnCreated" OnItemDataBound="grdAllDocs_ItemDataBound"
OnColumnCreating="grdAllDocs_ColumnCreating" AllowPaging="True" EnableEmbeddedSkins="false"
Skin="RadSkin">
<itemstyle wrap="false" />
<mastertableview allowfilteringbycolumn="True" tablelayout="Fixed">
<PagerTemplate>
</PagerTemplate>
<PagerStyle PageButtonCount="3" Mode="NumericPages" HorizontalAlign="Right" AlwaysVisible="true" EnableSEOPaging="false" Position="TopAndBottom" ShowPagerText="true"></PagerStyle>
<Columns>
</Columns>
</mastertableview>
</telerik:RadGrid>
Please suggest me how I can get the master table view of the grid on the client side.
Thanks,
Alok...
I am using the RadGrid control in my project. Here I am loading this control dynamically in a RadTab control and trying to access the master table view of the grid control .
var tableView = $find("<%= grdAllDocs.ClientID %>").get_masterTableView();
but it is throwing the following exception.
Error Msg: null is null or not an object.
I am creating the grid control as follows:-
<telerik:RadGrid ID="grdAllDocs" runat="server" EnableViewState="True" AutoGenerateColumns="false"
AllowSorting="true" PageSize="25" OnItemCreated="grdAllDocs_ItemCreated"
OnColumnCreated="grdAllDocs_ColumnCreated" OnItemDataBound="grdAllDocs_ItemDataBound"
OnColumnCreating="grdAllDocs_ColumnCreating" AllowPaging="True" EnableEmbeddedSkins="false"
Skin="RadSkin">
<itemstyle wrap="false" />
<mastertableview allowfilteringbycolumn="True" tablelayout="Fixed">
<PagerTemplate>
</PagerTemplate>
<PagerStyle PageButtonCount="3" Mode="NumericPages" HorizontalAlign="Right" AlwaysVisible="true" EnableSEOPaging="false" Position="TopAndBottom" ShowPagerText="true"></PagerStyle>
<Columns>
</Columns>
</mastertableview>
</telerik:RadGrid>
Please suggest me how I can get the master table view of the grid on the client side.
Thanks,
Alok...