Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
556
UpdateRow event does not fire on updates
posted

I have an ultrwebgrid bound to a sqldatasource.  The UpdateRow event fires when I add a row, along with the AddRow event, but it does not fire when I update a row.  I think I have all the AllowUpdate type fields set.  The adding of rows run fine.  I have taken out the paging to simplify.  I can edit the lone updateable cell just fine.  I have a multiple field primary key, but it is supposed to handle it as I input  the fields, in the correct order, separated by commas in the DataKeyFields property.  I have attached the pertinent markup and C# code.

Parents Reply Children
  • 370
    posted in reply to [Infragistics] Vince McDonald

    Hi Vince ,

    Thanks ,As you said..now i disable the Ajax from grid..where update event on grid is firing fine.i am facing a samall issue here ..

    Scenario :

     1. Defined my Columns in ASPX page and then bind the grid from back end dynamically .Here my column includes both the templete columns and Normal columns .

    Here issue is ,  after biding the grid the Column order i defined in aspx page ..not retaing .Templete column defined at end [Please check to my attachment] in aspx page pushed as first Column .

    Column Defined Sequence in aspx page :

      <Columns >

     

     

    <igtbl:UltraGridColumn Key="Device_Name" IsBound="True" AllowUpdate="No" Width="150px" BaseColumnName

     

    ="Device_Name">

     

     

    <Header Caption

    ="Device Name">

     

     

     

    </Header

    >

     

     

    </igtbl:UltraGridColumn

    >

     

     

    <igtbl:UltraGridColumn Key="Running_Id" Hidden="true" IsBound="True" AllowUpdate="No" Width="175px" BaseColumnName

    ="Running_Id">

     

     

    <Footer

    >

     

     

    <RowLayoutColumnInfo OriginX="1"

    />

     

     

    </Footer

    >

    <Header Caption

    ="Running Id">

    <RowLayoutColumnInfo OriginX="1"

    />

     

     

    </Header

    >

     

     

    </igtbl:UltraGridColumn

    >

     

     

    <igtbl:UltraGridColumn Key="Project" IsBound="True" AllowUpdate="No" Width="175px" BaseColumnName

    ="Project">

     

     

    <Footer

    >

     

     

    <RowLayoutColumnInfo OriginX="2"

    />

     

     

    </Footer

    >

     

     

    <Header Caption

    ="Project">

     

     

    <RowLayoutColumnInfo OriginX="2"

    />

     

     

    </Header

    >

     

     

    </igtbl:UltraGridColumn

    >

     

     

    <igtbl:UltraGridColumn Key="BU" IsBound="True" AllowUpdate="No" Width="175px" BaseColumnName

    ="BU">

     

     

    <Footer

    >

     

     

    <RowLayoutColumnInfo OriginX="3"

    />

     

     

    </Footer

    >

     

     

    <Header Caption

    ="BU">

     

     

    <RowLayoutColumnInfo OriginX="3"

    />

     

     

    </Header

    >

     

     

    </igtbl:UltraGridColumn

    >

     

     

    <igtbl:UltraGridColumn Key="Event" IsBound="True" AllowUpdate="No" Width="175px" BaseColumnName

    ="Event">

     

     

    <Footer

    >

     

     

    <RowLayoutColumnInfo OriginX="4"

    />

     

     

    </Footer

    >

     

     

    <Header Caption

    ="Event">

     

     

    <RowLayoutColumnInfo OriginX="4"

    />

     

     

    </Header

    >

     

     

    </igtbl:UltraGridColumn

    >

     

     

    <igtbl:UltraGridColumn Key="Migration_Start_Date" DataType="System.DateTime" IsBound="True" AllowUpdate="No" Width="175px" BaseColumnName

    ="Migration_Start_Date">

     

     

    <Footer

    >

     

     

    <RowLayoutColumnInfo OriginX="5"

    />

     

     

    </Footer

    >

     

     

    <Header Caption

    ="Migration Start Date">

     

     

    <RowLayoutColumnInfo OriginX="5"

    />

     

     

    </Header

    >

     

     

    </igtbl:UltraGridColumn

    >

     

     

    <igtbl:UltraGridColumn Key="Migration_END_Date" DataType="System.DateTime" IsBound="True" AllowUpdate="No" Width="175px" BaseColumnName

    ="Migration_END_Date">

     

     

    <CellStyle HorizontalAlign

    ="Center">

     

     

    </CellStyle

    >

     

     

    <Footer

    >

     

     

    <RowLayoutColumnInfo OriginX="6"

    />

     

     

    </Footer

    >

     

     

    <Header Caption

    ="Migration End Date">

     

     

    <RowLayoutColumnInfo OriginX="6"

    />

     

     

    </Header

    >

     

     

    </igtbl:UltraGridColumn

    >

     

     

    <igtbl:UltraGridColumn Key="HANDOVER_NAME" IsBound="True" EditorControlID="WbCmbContacts" Width="175px" BaseColumnName

    ="HANDOVER_NAME">

     

     

    <CellStyle HorizontalAlign

    ="Center">

     

     

    </CellStyle

    >

     

     

    <Footer

    >

     

     

    <RowLayoutColumnInfo OriginX="7"

    />

     

     

    </Footer

    >

     

     

    <Header Caption

    ="Handover Name">

     

     

    <RowLayoutColumnInfo OriginX="7"

    />

     

     

    </Header

    >

     

     

    </igtbl:UltraGridColumn

    >

     

     

    <igtbl:UltraGridColumn Key="HANDOVER_DATE" IsBound="True" Width="175px" BaseColumnName

    ="HANDOVER_DATE"

     

     

    Type="Custom" Format="MM-dd-yyyy" DataType="System.DateTime" EditorControlID

    ="webDtChooser">

     

     

    <CellStyle HorizontalAlign

    ="Center">

     

     

    </CellStyle

    >

     

     

    <Footer

    >

     

     

    <RowLayoutColumnInfo OriginX="8"

    />

     

     

    </Footer

    >

     

     

    <HeaderStyle HorizontalAlign="Center"></HeaderStyle

    >

     

     

    <Header Caption

    ="Handover Date">

     

     

    <RowLayoutColumnInfo OriginX="8"

    />

     

     

    </Header

    >

     

     

    </igtbl:UltraGridColumn

    >

     

     

    <igtbl:UltraGridColumn Key="HANDOVER_TIME" IsBound="True" Width="175px" BaseColumnName

    ="HANDOVER_TIME">

     

     

    <Footer

    >

     

     

    <RowLayoutColumnInfo OriginX="9"

    />

     

     

    </Footer

    >

     

     

    <Header Caption

    ="Handover Time">

     

     

    <RowLayoutColumnInfo OriginX="9"

    />

     

     

    </Header

    >

     

     

    </igtbl:UltraGridColumn

    >

     

     

    <igtbl:UltraGridColumn Key="TESTING_CONTACT" EditorControlID="WbCmbContacts" IsBound="True" Width="175px" BaseColumnName

    ="TESTING_CONTACT">

     

     

    <Footer

    >

     

     

    <RowLayoutColumnInfo OriginX="10"

    />

     

     

    </Footer

    >

     

     

    <Header Caption

    ="Testing Contact">

     

     

    <RowLayoutColumnInfo OriginX="10"

    />

     

     

    </Header

    >

     

     

    </igtbl:UltraGridColumn

    >

     

     

    <igtbl:UltraGridColumn Key="TESTING_DATE" IsBound="True" Width="175px" BaseColumnName

    ="TESTING_DATE"

     

     

    Type="Custom" Format="MM-dd-yyyy" DataType="System.DateTime" EditorControlID

    ="webDtChooser">

     

     

    <CellStyle HorizontalAlign

    ="Center">

     

     

    </CellStyle

    >

     

     

    <Footer

    >

     

     

    <RowLayoutColumnInfo OriginX="11"

    />

     

     

    </Footer

    >

     

     

    <HeaderStyle HorizontalAlign="Center"></HeaderStyle

    >

     

     

    <Header Caption

    ="Testing Date">

     

     

    <RowLayoutColumnInfo OriginX="11"

    />

     

     

    </Header

    >

     

     

    </igtbl:UltraGridColumn

    >

     

     

    <igtbl:UltraGridColumn Key="TESTING_TIME" IsBound="True" Width="175px" BaseColumnName

    ="TESTING_TIME">

     

     

    <Footer

    >

     

     

    <RowLayoutColumnInfo OriginX="12"

    />

     

     

    </Footer

    >

     

     

    <Header Caption

    ="Testing Time">

     

     

    <RowLayoutColumnInfo OriginX="12"

    />

     

     

    </Header

    >

     

     

    </igtbl:UltraGridColumn

    >

     

     

    <igtbl:UltraGridColumn Key="Last_Changed_BY" IsBound="True" Width="175px" AllowUpdate="No" BaseColumnName

    ="Last_Changed_BY">

     

     

    <Footer

    >

     

     

    <RowLayoutColumnInfo OriginX="13"

    />

     

     

    </Footer

    >

     

     

    <Header Caption

    ="Last Changed By">

     

     

    <RowLayoutColumnInfo OriginX="13"

    />

     

     

    </Header

    >

     

     

    </igtbl:UltraGridColumn

    >

     

     

    <igtbl:UltraGridColumn Key="Last_Changed_ON" IsBound="True" AllowUpdate="No" Width="175px" BaseColumnName

    ="Last_Changed_ON">

     

     

    <Footer

    >

     

     

    <RowLayoutColumnInfo OriginX="14"

    />

     

     

    </Footer

    >

     

     

    <Header Caption

    ="Last Changed On">

     

     

    <RowLayoutColumnInfo OriginX="14"

    />

     

     

    </Header

    >

     

     

    </igtbl:UltraGridColumn

    >

     

     

    <igtbl:TemplatedColumn Key="save" BaseColumnName="save" Width

    ="75px">

     

     

    <CellTemplate

    >

     

     

    <asp:Button Text="Save" ID="btnSave" runat="server" OnClick="UlWebGridLookup_ClickCellButton"

    />

     

     

    </CellTemplate

    >

     

     

    <Header Caption

    ="Save">

     

     

    <RowLayoutColumnInfo OriginX="15"

    />

     

     

    </Header

    >

     

     

    <Footer

    >

     

     

    <RowLayoutColumnInfo OriginX="15"

    />

     

     

    </Footer

    >

     

     

    </igtbl:TemplatedColumn

    >

     

     

    </Columns

    >

     

     

    please check the attached aspx page with codebehind file