We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PostBackOnFocusedChanged seems not working

Thread ID:

Created:

Updated:

Platform:

Replies:

35775 Oct 10,2005 06:44 AM UTC Oct 14,2005 01:59 AM UTC ASP.NET Web Forms (Classic) 4
loading
Tags: GridGroupingControl
Moon Siew Chai
Asked On October 10, 2005 06:44 AM UTC

How can i get an event to be triggered when a row is saved, it''s something like "RowSaved" in windows form, how do i do it in ASP.net? In Gridgroupingcontrol, although I set the properties PostBackOnFocusedChanged to True, the page wasn''t reloaded when i focused on other row. Please help.

Administrator [Syncfusion]
Replied On October 10, 2005 03:05 PM UTC

Hi Moon, 1) The RecordValueChanged event will be fired, when you change a record and move out of the row. Also take a look at this Knowledgebase Article: http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=312 which tells you the various events that are fired when updating records in the Grid. 2) I was unable to reproduce this behavior in the SelectionModes sample. Can you try reproducing this behavior in the SelectionModes sample that ships with Essential Grid for ASP.NET. Regards Arun

Moon Siew Chai
Replied On October 12, 2005 07:56 AM UTC

Hi Arun, Thank you for your reply. I can get the SelectionModes sample working. By looking at "View Source" from the browser of this sample, I found out that each row has a unique id while in my case, each row has the same id "gridStudent~TR~0~_TOPGROUP_+". I believe due to this, the PostBackOnFocusedChanged seems not working because whenever i double click on a row, it''s always the first row that is highlighted and editable. Do you know how is the unique value derived from in gridgroupingcontrol? Cheers Moon

Administrator [Syncfusion]
Replied On October 12, 2005 05:54 PM UTC

Hi Moon To enable editing you need to have a primary key column, so you need to add a PrimaryKeyColumn to the TableDescriptor before calling DataBind() as shown below to address this issue: [C#] //Add PrimaryKey to the PrimaryKeyColumns collection GridTableDescriptor mainTD = this.GridGroupingControl.TableDescriptor; mainTD.PrimaryKeyColumns.Add("CustomerID"); //Call DataBind this.GridGroupingControl.DataBind(); [VB] ''Add PrimaryKey to the PrimaryKeyColumns collection Dim mainTD As GridTableDescriptor = Me.GridGroupingControl.TableDescriptor mainTD.PrimaryKeyColumns.Add("CustomerID") ''DataBind Me.DataBind() Can you try this out and then post an update. Regards Arun

Moon Siew Chai
Replied On October 14, 2005 01:59 AM UTC

It works! Thanks :)

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;