如何从radgrid为文本框分配值 [英] how to assign value to textbox from radgrid

查看:75
本文介绍了如何从radgrid为文本框分配值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<asp:TextBox runat="server" ReadOnly="true" ID="AssetItemTextBox"></asp:TextBox><telerik:RadGrid ID="AssetItemListGrid" SkinID="ReadOnlyRadGrid1" runat="server" 

          AutoGenerateColumns="False" GridLines="None"  DataSourceID="AssetListDataSource" OnItemCommand="AssetRadGrid_ItemCommand"   Visible= "false">
      <MasterTableView ClientDataKeyNames="UserAccountID" DataKeyNames="UserAccountID" DataSourceID="AssetListDataSource">
                  
      <RowIndicatorColumn>
      <HeaderStyle Width="20px"></HeaderStyle>
      </RowIndicatorColumn>
                <ExpandCollapseColumn>
                 <HeaderStyle Width="20px"></HeaderStyle>
                 </ExpandCollapseColumn>
         <Columns>
                        <telerik:GridBoundColumn DataField="UserAccountID" DataType="System.Int32" HeaderText="UserAccountID"

                            ReadOnly="True" SortExpression="UserAccountID" UniqueName="UserAccountID" Visible="false">
                        </telerik:GridBoundColumn>
                        
                        <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name"

                            UniqueName="Name">
                        </telerik:GridBoundColumn>
                        
                         <telerik:GridBoundColumn DataField="AssetTag" HeaderText="AssetTag" SortExpression="AssetTag"

                            UniqueName="AssetTag">
                        </telerik:GridBoundColumn>
                        
                        <telerik:GridButtonColumn CommandName="Select"  Text="Select"></telerik:GridButtonColumn> 
          </Columns>
       </MasterTableView>
     
             <ClientSettings>
                     <ClientEvents OnRowClick="RowSelected" />
                    <Selecting AllowRowSelect="true" />
             </ClientSettings>
                
     </telerik:RadGrid>  



[修改:添加了前置标签]



[Modified: added pre tags]

推荐答案

我认为telerik既为您提供了文档,又提供了访问论坛的渠道,您可以在这里询问所有正在使用的人员这个图书馆.我还假定intellisense可在telerik控件上运行,从而使您自己找到答案.当然,如果您真的被卡住了,可以尝试发布一个实际的详细问题,而不是代码转储.

I assume that telerik gave you both documentation and access to forums where you could ask this of people who are all using this library.  I also assume that intellisense works on the telerik controls, allowing you to find the answer for yourself.  Of course, if you really get stuck, you might try posting an actual detailed question instead of a code dump.


这篇关于如何从radgrid为文本框分配值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆