Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
i Have this RadGrid, its working fine. most of the columns are readonly,
 
but the remaining column which is not readonly, i want it to be editable all the time, so i can click on it and start writing my new value in it. (its happening)
 
but i do not know how to extract those values from those field, i tried creating OntextChanged event so i can get the values but not happening, event isn't firing.
 
so How can i get the values from it?
 
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"
            AllowSorting="True" AutoGenerateColumns="False" AutoGenerateEditColumn="True"
            CellSpacing="0" GridLines="None" Skin="Sunset"
            OnUpdateCommand="RadGrid1_UpdateCommand" OnEditCommand="RadGrid1_EditCommand" OnItemCommand="RadGrid1_ItemCommand"
            AllowMultiRowEdit="True"  EnableViewState="False" OnNeedDataSource="HandlerGridOnNeedDataSource"
             AllowAutomaticUpdates="true"
            >
        <clientsettings allowcolumnsreorder="True" reordercolumnsonclient="True">
            <Selecting AllowRowSelect="True" />
        </clientsettings>
        <mastertableview EditMode="InPlace">
            <commanditemsettings exporttopdftext="Export to PDF" />
            <rowindicatorcolumn filtercontrolalttext="Filter RowIndicator column">
                <HeaderStyle Width="20px" />
            </rowindicatorcolumn>
            <expandcollapsecolumn filtercontrolalttext="Filter ExpandColumn column">
                <HeaderStyle Width="20px" />
            </expandcollapsecolumn>
            <Columns>
 
                <telerik:GridBoundColumn DataField="itemLineNo"
                    FilterControlAltText="Filter column column" HeaderText="Line No"
                    ReadOnly="True" UniqueName="column">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="itemName"
                    FilterControlAltText="Filter column1 column" HeaderText="Name" ReadOnly="True"
                    UniqueName="column1">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="itemPartNo"
                    FilterControlAltText="Filter column2 column" HeaderText="Part No"
                    ReadOnly="True" UniqueName="column2">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="itemShortDsc"
                    FilterControlAltText="Filter column3 column" HeaderText="Short Description"
                    ReadOnly="True" UniqueName="column3">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="itemLongDsc"
                    FilterControlAltText="Filter column4 column" HeaderText="Description"
                    ReadOnly="True" UniqueName="column4">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="itemQuantity"
                    FilterControlAltText="Filter column5 column" HeaderText="Quantity"
                    ReadOnly="True" UniqueName="column5">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="itemUOM"
                    FilterControlAltText="Filter column6 column" HeaderText="UOM" ReadOnly="True"
                    UniqueName="column6">
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn HeaderText="Unit Cost" UniqueName="sItemUnitCost"
                    AutoPostBackOnFilter="True" >
                <ItemTemplate>
                    <telerik:RadTextBox id="Textbox50" Runat="server" Text='<%# Eval("sItemUnitCost") %> ' OnTextChanged="TextBox_TextChanged" />
                </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
            <editformsettings>
                <editcolumn filtercontrolalttext="Filter EditCommandColumn column">
                </editcolumn>
            </editformsettings>
        </mastertableview>
        <filtermenu enableimagesprites="False">
        </filtermenu>
        <headercontextmenu cssclass="GridContextMenu GridContextMenu_Default">
        </headercontextmenu>
        </telerik:RadGrid>
Posted 22-Nov-12 3:28am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

An almost identical question appears with some answers here http://www.telerik.com/community/forums/aspnet-ajax/grid/textbox-in-radgrid-textchanged.aspx[^]
 
Probably the best response was to look up the help information here
http://www.telerik.com/help/aspnet-ajax/grid-reference-controls-in-edit-form.html[^]
  Permalink  
Comments
psychic6000 at 22-Nov-12 9:18am
   
thank you so much man, 2nd link helped.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.150326.1 | Last Updated 22 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100