get_masterTableView().get_selectedItems()

2 posts, 0 answers
  1. Zhengmao
    Zhengmao avatar
    12 posts
    Member since:
    Apr 2008

    Posted 24 Apr 2008 Link to this post

    do you have example how to use 

    get_masterTableView().get_selectedItems() to retrieve data?

    I use ItemTemplate, I dont' know how to retrieve data out from clientside?

    please see the grid as following:

    <

    telerik:RadPane ID="RadPaneGrid" runat="server" Width="100%" Height="100%">

     

    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" GridLines="None"

     

    Width="99%" Height="586px" OnItemDataBound="RadGrid1_ItemDataBound"

    OnNeedDataSource="RadGrid1_NeedDataSource1"

    Skin="Office2007" AllowSorting="True" AllowPaging="True">

     

    <MasterTableView Width="100%">

     

    <Columns>

     

    <telerik:GridTemplateColumn HeaderText="Severity" SortExpression="Severity" UniqueName="Severity">

     

    <ItemTemplate>

     

    <asp:Image ID="imgSeverity" runat="server" />

     

    <asp:Label ID="lblSeverity" runat="server" Text='<%# Eval("Severity") %>'></asp:Label>

     

    </ItemTemplate>

     

    <ItemStyle BorderStyle="None" />

     

    </telerik:GridTemplateColumn>

     

    <telerik:GridTemplateColumn HeaderText="Error Code" SortExpression="ErrorCode" UniqueName="ErrorCode">

     

    <ItemTemplate>

     

    <asp:Label ID="lblErrorCode" runat="server" Text='<%# Eval("ErrorCode") %>'></asp:Label>

     

    </ItemTemplate>

     

    <ItemStyle BorderStyle="None" />

     

    </telerik:GridTemplateColumn>

     

    <telerik:GridTemplateColumn HeaderText="Occured" SortExpression="Time_Stamp" UniqueName="Time_Stamp">

     

    <ItemTemplate>

     

    <asp:Label ID="lblTimeStamp" runat="server" Text='<%# Eval("Time_Stamp") %>'></asp:Label>

     

    </ItemTemplate>

     

    <ItemStyle BorderStyle="None" />

     

    </telerik:GridTemplateColumn>

     

    <telerik:GridTemplateColumn HeaderText="Server/EDU" SortExpression="EDU" UniqueName="EDU">

     

    <ItemTemplate>

     

    <asp:Label ID="lblEdu" runat="server" Text='<%# Eval("EDU") %>'></asp:Label>

     

    </ItemTemplate>

     

    <ItemStyle BorderStyle="None" />

     

    </telerik:GridTemplateColumn>

     

    <telerik:GridTemplateColumn HeaderText="Message" SortExpression="Message" UniqueName="Message">

     

    <ItemTemplate>

     

    <asp:Label ID="lblMessage" runat="server" Text='<%# Eval("Message") %>'></asp:Label>

     

    </ItemTemplate>

     

    <ItemStyle BorderStyle="None" />

     

    </telerik:GridTemplateColumn>

     

    <telerik:GridTemplateColumn HeaderText="Received" SortExpression="UpDate_Time" UniqueName="UpDate_Time">

     

    <ItemTemplate>

     

    <asp:Label ID="lblUpdateTime" runat="server" Text='<%# Eval("Update_Time") %>'></asp:Label>

     

    </ItemTemplate>

     

    <ItemStyle BorderStyle="None" />

     

    </telerik:GridTemplateColumn>

     

    </Columns>

     

    <RowIndicatorColumn Visible="False">

     

    <HeaderStyle Width="20px" />

     

    </RowIndicatorColumn>

     

    <ExpandCollapseColumn Resizable="False" Visible="False">

     

    <HeaderStyle Width="20px" />

     

    </ExpandCollapseColumn>

     

    <EditFormSettings>

     

    <PopUpSettings ScrollBars="None" />

     

    </EditFormSettings>

     

    </MasterTableView>

     

    <ItemStyle BorderStyle="None" />

     

    <ClientSettings ReorderColumnsOnClient="True">

     

    <Selecting AllowRowSelect="True" />

     

    <Resizing AllowColumnResize="True" />

     

    <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="99.9%" />

     

    <ClientEvents OnRowContextMenu="RowContextMenu" />

     

    </ClientSettings>

     

    </telerik:RadGrid>


    any help will be appreciated!

    Thank you very much!


    Zhengmao,

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Apr 2008 Link to this post

    Hi,

    Go through the following code library link.
    Accessing server controls in a grid template on the client

    Thanks
    Shinu.

Back to Top