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
85
Retrieving changed values in a template column
posted

I have a WebDataGrid bound to an object data source.  One of the columns is a TemplateDataField.  I snipit is

               <ig:BoundDataField DataFieldName="AccountID" Key="AccountID">
                    <Header Text="AccountID" />
                </ig:BoundDataField>
                <ig:TemplateDataField Key="IsAgency">
                    <ItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Eval("IsAgency") %>'
                         onclick="isAgencyChanged(this);" />
                    </ItemTemplate>
                    <Header Text="IsAgency" />
                </ig:TemplateDataField>

On the server side changes to "AccountID" are all fine in both the object data source and the webgrid.rows data.  For the "IsAgency" nothing propogates back.

My questions are

1.  is there a different binding syntax which would make it bind back?

2.  If not, how do you recommend that I find out the changed values on the server?  Is there appropriate javascript to put in the "isAgencyChanged" function to update the client side data model so it is correct when it goes back to the server?

3.  If I have to do a postback on each checkbox, is there a suggested mechanism to determine which row generated the postback?

 

Thanks,

 

John

Parents
No Data
Reply
  • 125
    posted

    Hi John,

    I have the same problem - did you ever get a solution in place?

    Thanks,

    Clayton

Children
No Data