Pass value via QueryString

4 posts, 0 answers
  1. bradley baker
    bradley baker avatar
    97 posts
    Member since:
    Aug 2009

    Posted 01 Dec 2009 Link to this post

    Im using this code below and it works untill I do the "cell.innerHTML".  Then it tells me Im passing it a dangerous querystring.  IE it trying to pass it like the div tag and everything.  How do I just pass the value in the cell?

        <script type="text/javascript">  
            function RowSelected(sender, eventArgs) {  
                var grid = sender;  
                var MasterTable = grid.get_masterTableView();  
                var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];  
                var cell = MasterTable.getCellByColumnUniqueName(row, "procreq_id");  
     
                //var oWnd = radopen("pws_files.aspx?pws_id=" + cell.innerHTML, "Window1");  
                var oWnd = radopen("../proc_chg_files.aspx?proc_chg_id=" + "2""Window1");  
            }  
                 
    </script>   
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 02 Dec 2009 Link to this post

    Hello Bradley,

    I would suggest using the innerText property instead.

    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. bradley baker
    bradley baker avatar
    97 posts
    Member since:
    Aug 2009

    Posted 02 Dec 2009 Link to this post

    How do you get the value if its in a itemtemplate?

    <Columns> 
            <telerik:GridBoundColumn DataField="procreq_id" DataType="System.Int32"   
                HeaderText="ID" ReadOnly="True" SortExpression="procreq_id"   
                UniqueName="procreq_id">  
            </telerik:GridBoundColumn> 
            <telerik:GridDateTimeColumn DataField="procreq_entered" HeaderText="Entered"   
                UniqueName="column">  
            </telerik:GridDateTimeColumn> 
            <telerik:GridBoundColumn DataField="procreq_requestor"   
                HeaderText="Requestor" SortExpression="procreq_requestor"   
                UniqueName="procreq_requestor">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="procreq_request"   
                HeaderText="Request" SortExpression="procreq_request"   
                UniqueName="procreq_request">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="mfgtype_name" 
                HeaderText="Type" SortExpression="mfgtype_name"   
                UniqueName="mfgtype_name">  
            </telerik:GridBoundColumn>          
            <telerik:GridBoundColumn DataField="mfgstatus_name" 
                HeaderText="Status" SortExpression="mfgstatus_name"   
                UniqueName="mfgstatus_name">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="procreq_pn" HeaderText="Part No"   
                SortExpression="procreq_pn" UniqueName="procreq_pn">  
            </telerik:GridBoundColumn> 
        </Columns> 
                    <ItemTemplate> 
                        <telerik:RadTabStrip ID="RadTabStrip1" runat="server"   
                            MultiPageID="RadMultiPage1" SelectedIndex="0" Width="100%">  
                            <Tabs> 
                                <telerik:RadTab runat="server" Text="Quick View" PageViewID="RadPageView1">  
                                </telerik:RadTab> 
                                <telerik:RadTab runat="server" Text="Detail View" PageViewID="RadPageView2">  
                                </telerik:RadTab> 
                            </Tabs> 
                        </telerik:RadTabStrip> 
                        <telerik:RadMultiPage ID="RadMultiPage1" Runat="server">  
                            <telerik:RadPageView ID="RadPageView1" runat="server" Selected="true">  
                                <table style="width: 100%;">  
                                    <tr> 
                                        <td style="width: 25%;">  
                                            &nbsp;<asp:Label ID="Label4" runat="server" Text="ID"></asp:Label> 
                                        </td> 
                                        <td style="width: 75%;">  
                                            &nbsp;<asp:Label ID="Label1" runat="server" Text='<%# Eval("procreq_id") %>'></asp:Label> 
                                        </td> 
                                    </tr> 
                                    <tr> 
                                        <td style="width: 25%;">  
                                            &nbsp;<asp:Label ID="Label9" runat="server" Text="Asg To"></asp:Label> 
                                        </td> 
                                        <td style="width: 75%;">  
                                            &nbsp;<asp:Label ID="Label10" runat="server"   
                                                Text='<%# Eval("procreq_asgto") %>'></asp:Label> 
                                        </td> 
                                    </tr>                                  
                                    <tr> 
                                        <td  style="width: 25%;">  
                                            &nbsp;<asp:Label ID="Label5" runat="server" Text="Entered"></asp:Label> 
                                        </td> 
                                        <td style="width: 75%;">  
                                            &nbsp;<asp:Label ID="Label2" runat="server"   
                                                Text='<%# Eval("procreq_entered") %>'></asp:Label> 
                                        </td> 
                                    </tr> 
                                    <tr> 
                                        <td style="width: 25%;">  
                                            &nbsp;<asp:Label ID="Label6" runat="server" Text="Requestor"></asp:Label> 
                                        </td> 
                                        <td style="width: 75%;">  
                                            &nbsp;<asp:Label ID="Label3" runat="server"   
                                                Text='<%# Eval("procreq_requestor") %>'></asp:Label> 
                                        </td> 
                                    </tr> 
                                    <tr> 
                                        <td style="width: 25%;">  
                                            &nbsp;<asp:Label ID="Label27" runat="server" Text="Part Number"></asp:Label> 
                                        </td> 
                                        <td style="width: 75%;">  
                                            &nbsp;<asp:Label ID="Label28" runat="server"   
                                                Text='<%# Eval("procreq_pn") %>'></asp:Label> 
                                        </td> 
                                    </tr>                                  
                                    <tr> 
                                        <td style="width: 25%;">  
                                            &nbsp;<asp:Label ID="Label7" runat="server" Text="Request"></asp:Label> 
                                        </td> 
                                        <td style="width: 75%;">  
                                            &nbsp;<asp:Label ID="Label8" runat="server"   
                                                Text='<%# Eval("procreq_request") %>'></asp:Label> 
                                        </td> 
                                    </tr>                                                                                               
                                </table> 
                            </telerik:RadPageView> 
                            <telerik:RadPageView ID="RadPageView2" runat="server">  
                                <table style="width: 100%;">  
                                    <tr> 
                                        <td style="width: 25%;">  
                                            &nbsp;<asp:Label ID="Label11" runat="server" Text="ID"></asp:Label> 
                                        </td> 
                                        <td style="width: 75%;">  
                                            &nbsp;<asp:Label ID="Label12" runat="server" Text='<%# Eval("procreq_id") %>'></asp:Label> 
                                        </td> 
                                    </tr> 
                                    <tr> 
                                        <td style="width: 25%;">  
                                            &nbsp;<asp:Label ID="Label13" runat="server" Text="Asg To"></asp:Label> 
                                        </td> 
                                        <td style="width: 75%;">  
                                            &nbsp;<asp:Label ID="Label14" runat="server"   
                                                Text='<%# Eval("procreq_asgto") %>'></asp:Label> 
                                        </td> 
                                    </tr>                                  
                                    <tr> 
                                        <td  style="width: 25%;">  
                                            &nbsp;<asp:Label ID="Label15" runat="server" Text="Entered"></asp:Label> 
                                        </td> 
                                        <td style="width: 75%;">  
                                            &nbsp;<asp:Label ID="Label16" runat="server"   
                                                Text='<%# Eval("procreq_entered") %>'></asp:Label> 
                                        </td> 
                                    </tr> 
                                    <tr> 
                                        <td style="width: 25%;">  
                                            &nbsp;<asp:Label ID="Label17" runat="server" Text="Requestor"></asp:Label> 
                                        </td> 
                                        <td style="width: 75%;">  
                                            &nbsp;<asp:Label ID="Label18" runat="server"   
                                                Text='<%# Eval("procreq_requestor") %>'></asp:Label> 
                                        </td> 
                                    </tr> 
                                    <tr> 
                                        <td style="width: 25%;">  
                                            &nbsp;<asp:Label ID="Label19" runat="server" Text="Part Number"></asp:Label> 
                                        </td> 
                                        <td style="width: 75%;">  
                                            &nbsp;<asp:Label ID="Label20" runat="server"   
                                                Text='<%# Eval("procreq_pn") %>'></asp:Label> 
                                        </td> 
                                    </tr>    
                                    <tr> 
                                        <td style="width: 25%;">  
                                            &nbsp;<asp:Label ID="Label21" runat="server" Text="Request"></asp:Label> 
                                        </td> 
                                        <td style="width: 75%;">  
                                            &nbsp;<asp:Label ID="Label22" runat="server"   
                                                Text='<%# Eval("procreq_request") %>'></asp:Label> 
                                        </td> 
                                    </tr> 
                                    <tr> 
                                        <td style="width: 25%;">  
                                            &nbsp;<asp:Label ID="Label23" runat="server" Text="Resposne"></asp:Label> 
                                        </td> 
                                        <td style="width: 75%;">  
                                            &nbsp;<asp:Label ID="Label24" runat="server"   
                                                Text='<%# Eval("procreq_response") %>'></asp:Label> 
                                        </td> 
                                    </tr> 
                                    <tr> 
                                        <td style="width: 25%;">  
                                            &nbsp;<asp:Label ID="Label25" runat="server" Text="Work Done/Notes"></asp:Label> 
                                        </td> 
                                        <td style="width: 75%;">  
                                            &nbsp;<asp:Label ID="Label26" runat="server"   
                                                Text='<%# Eval("procreq_workdone") %>'></asp:Label> 
                                        </td> 
                                    </tr>                                                                                                                                                                                                                                                           
                                </table> 
                            </telerik:RadPageView>                          
                        </telerik:RadMultiPage> 
        </ItemTemplate> 

  4. bradley baker
    bradley baker avatar
    97 posts
    Member since:
    Aug 2009

    Posted 02 Dec 2009 Link to this post

    I figured it out...

    This is what I needed.  And to define a client data key
    eventArgs.getDataKeyValue(eventArgs.get_tableView().get_clientDataKeyNames()) 
Back to Top