This is a migrated thread and some comments may be shown as answers.

edit in the grid

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
komathi priya
Top achievements
Rank 1
komathi priya asked on 04 May 2010, 07:33 AM
hi...

i used the following coding in my grid to use the edit option but if i click the edit button nothing  is happening ,, what i want to do..

<telerik:radgrid ID="grdManagediscount" runat="server" Width="700px"  Skin="Web20"
                AllowSorting="True" AllowPaging="True" TabIndex="1"  
               AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes ="true"
                GridLines="None" AutoGenerateColumns="False" PageSize="5"
             AutoGenerateDeleteColumn="True"
             onneeddatasource="grdManagediscount_NeedDataSource" >
<MasterTableView TabIndex="62" Width="698px"  EditMode="EditForms" CommandItemDisplay="Top"  
                       NoMasterRecordsText="No records to display" >
                    <CommandItemSettings AddNewRecordText="Add a Coupon" />
             <Columns>
                
                 <telerik:GridEditCommandColumn  UniqueName="EditCommandColumn1" HeaderText="Edit"
                  ButtonType="ImageButton" HeaderStyle-Width="3%">
                    <HeaderStyle Width="10%"></HeaderStyle>
                  </telerik:GridEditCommandColumn>
                  <telerik:GridBoundColumn HeaderText="S.No" HeaderButtonType="TextButton"
                        DataField="Couponid" UniqueName="SNo"  HeaderStyle-Width="5%">
                    <HeaderStyle Width="5%"></HeaderStyle>
                  </telerik:GridBoundColumn>
                
                  <telerik:GridBoundColumn HeaderText="Coupon Number" HeaderButtonType="TextButton"
                        DataField="Couponnumber" UniqueName="number" HeaderStyle-Width="20%" >
                        <HeaderStyle Width="20%"></HeaderStyle>
                   </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Discount Percentage" HeaderButtonType="TextButton"
                        DataField="Discountpersentage" UniqueName="percentage" HeaderStyle-Width="20%" >
                        <HeaderStyle Width="20%"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Expedite Days" HeaderButtonType="TextButton"
                        DataField="Expeditedate" UniqueName="expdate" HeaderStyle-Width="20%" >
                                <HeaderStyle Width="20%"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn HeaderText="Issued" DataField="Status" UniqueName="Issue"  >
                    </telerik:GridCheckBoxColumn>
                                        
                    <telerik:GridButtonColumn ConfirmText="Delete this Item?" HeaderText="Delete" ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                        UniqueName="DeleteColumn" HeaderStyle-Width="3%">
                        <HeaderStyle Width="10%"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridButtonColumn>
              </Columns>
                <PagerStyle Mode="NumericPages" Font-Bold="True" HorizontalAlign="Justify"></PagerStyle>
         </MasterTableView>

    </telerik:radgrid>

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 04 May 2010, 08:48 AM
Hello Komathi priya,

I am not quite sure about the issue since your code works on my end after I add the code for populating the grid in NeedDataSource event.

Here you can find more information on AdvancedDataBinding.
Advanced Data Binding demo

How are you populating the grid? Could you provide some more information about populating the grid?

-Shinu.
Tags
Grid
Asked by
komathi priya
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or