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.

Callback Question (Grid)

Thread ID:

Created:

Updated:

Platform:

Replies:

50354 Oct 10,2006 02:56 PM Oct 12,2006 02:48 PM ASP.NET Web Forms (Classic) 4
loading
Tags: GridGroupingControl
David A. Gonzales
Asked On October 10, 2006 02:56 PM

I have a GridGrouping control that has a popupcontainer dynamically built with a menu control that is assigned to a column in the grid. I also have some buttons that handle paging for the grid (I handle the paging by accessing the SQL datatable and manually binding to the Grid). The buttons for the paging work fine and I can page to the next page, previous page, etc. And the first time I load the page I can do a right-click on the header column that has the popup and get my menu to show up and work (I am displaying a graph if the user clicks the menu Graph item). The problem I have is that if I page to a new set of records (ie, new page) the popup menu no longer works. In the Page_Init routine I call BindButtons (this builds my popupcontainer and menus) right after I bind the datatable to the grid. If I click a NextPage button I am trying to call BindButtons right after I bind the new datatable to the grid. But no popup comes up. I have tried putting the call to BindButtons everywhere I can think of but it either breaks the paging (ie, no new data comes up if a button is clicked) or paging works but the popup still does not come up.

Thanks.
David.

Administrator [Syncfusion]
Replied On October 12, 2006 10:10 AM

Hi David,

Are you using ''Callback'' when you click on the ''Next Button''? and is it like you are getting this issue only when you are using Callback mode?

Sorry for any inconvenience caused

Thanks
A.Sivakumar

David A. Gonzales
Replied On October 12, 2006 11:40 AM

Yes,
This issue is with a Callback. The Next, Prev button clickes are handled by a onButtonClick() which is sent back through the __sfCallbackPanel1.callback(param) where param lets me know which button is pressed. Then the CallbackRefresh has something like the following:

if (myOp == "NextPage")
{
NextPage();
}

:
:

protected void NextPage()
{
DataTable dt = GetUserInfo(nStartRow, nEndRow)
this.GridGroupingControl1.DataMember = "defaultView";
this.GridGroupingControl1.DataSource = dt;
this.GridGroupingControl1.DataBind();

//Call routine to rebuild popup, menus, etc
BindButtons();
}

Thanks.
David.

Administrator [Syncfusion]
Replied On October 12, 2006 02:11 PM

Hi David.

Thanks for your detailed response. I think the issue you are facing should be because the popup and menus will not be inside the Callback panel directly.

Could you please keep these controls inside another callback panel and then use our Callback Multiplexer to trigger the Callback? In the CallbackMultiplexer1_Callback event you can refresh controls inside various Callback panel.

Please have a look at our LoginInfo sample that ship with our Essential Studio install. you can see this sample under Tools.Web/CallbackControls/LoginInfo Category.

Let us know if this helps.

Thanks,
A.Sivakumar

David A. Gonzales
Replied On October 12, 2006 02:48 PM

Thanks. I will take a look at the sample.

David.

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.

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.

;