locked
Updating a record in inline edit mode , how to access the value of other columns? RRS feed

  • Question

  • User-1736034386 posted
     <tm:TMGrid ID="grdnotificationsschedule"   runat="server"
                  Width="100%"
                  CellSpacing="1" GroupingEnabled="False"
                  ClientIDMode="Predictable"
                  ShowHeader="true"
                  ClientSettings-AllowColumnsReorder="false" ClientSettings-AllowDragToGroup="false"
                  AllowMultiRowEdit="true"
                  AllowMultiRowSelection="true"
                  AllowAutomaticInserts="true"
                  AllowAutomaticDeletes="true"
                  AllowAutomaticUpdates="true"
                  HeaderStyle-VerticalAlign="Bottom"
                  ShowGroupPanel="false"   HeaderStyle-Font-Bold="true"
                  AllowPaging="true" ValidationSettings-EnableValidation="false" AutoGenerateColumns ="false">
                  <ValidationSettings ValidationGroup="notificationsschedule"  />
               <ClientSettings>
               <Selecting AllowRowSelect="True" EnableDragToSelectRows="False"></Selecting>
               </ClientSettings>
                <MasterTableView  Width="100%" TableLayout= "Auto" EditMode="InPlace" CommandItemDisplay="Top"   AllowSorting="false" AllowCustomPaging="false" AllowFilteringByColumn="false" DataKeyNames = "esid">
                    <CommandItemSettings  ShowRefreshButton="False" ShowSaveChangesButton="false" ShowAddNewRecordButton="false"  />
                    <rowindicatorcolumn visible="false">
                    </rowindicatorcolumn>
                    <ExpandCollapseColumn Created="false" />
                    <Columns>
                          <telerik:GridBoundColumn DataField="EmailType" Groupable="false" UniqueName="EmailType" Display="true" HeaderText = "Email Type" />
                           
                         <telerik:GridTemplateColumn
                                DataField="Schedule"
                                HeaderText="Schedule"
                                HeaderStyle-Width="240px"
                                 Groupable="False"
                                UniqueName="Schedule">
                         <ItemTemplate>
                                <asp:Label runat="server" ID="lblSubject" Text='<%# Eval("Schedule") %>'  />
                         </ItemTemplate>
                         <EditItemTemplate>
                                    <tm:TMTextbox runat="server" ID="tbSchedule" TextMode="SingleLine" MaxLength="150"  />
                         </EditItemTemplate>
                         </telerik:GridTemplateColumn>
                         <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"  EditImageUrl="~/images/16-edit-pencil.png" CancelImageUrl="~/images/16-cancel.png" InsertImageUrl="~/images/ok22.png" UpdateImageUrl="~/images/ok22.png" UpdateText="Save" EditText="Edit" InsertText="Save" >  </telerik:GridEditCommandColumn>
                         <telerik:GridButtonColumn  ButtonType="ImageButton" ImageUrl="~/images/16-delete-x.png" CommandName="Delete" Text="Delete" UniqueName=""  >
                            <ItemStyle HorizontalAlign="Center" ></ItemStyle>
                        </telerik:GridButtonColumn>
                     </Columns>
             </MasterTableView>
            </tm:TMGrid>
    

    While updating a record i want to access tyhe value of EmailType. what is the code for that?

    Wednesday, September 18, 2013 3:53 PM