Access a User Control placed on a CallbackPanel

Hi there,

on a form I'm placing a user control on a CallbackPanel. An additional button is used to raise a CallbackMultiplexer's via hte JavaScript function 'Klicker' (Masterpage involved, Multiplexer needed beacuse there are several Panels)

Part of the aspx code:

(JavaScript:)
function Klicker(param)
{
if(param=='MitarbeiterAusgewaehlt')
{
__sfctl00_ActionContent_CallbackMultiplexerPersonal38.callback(param);
}
}







The code-behind-eventhandler:

protected void CallbackMultiplexerPersonal38_Callback(object sender, Syncfusion.Web.UI.WebControls.CallbackEventArgs e)
{
if (e.CallbackArgument == "MitarbeiterAusgewaehlt")
{
// here my trouble starts
}
}

So far, everything works fine, the event gets raised and the eventhandler catches it. But: The user is supposed to enter some Values into the UserControl ('EditCtlMitarbeiterWahl'). An it's these values that I have to access in the eventhandler (where // 'my trouble starts').

My considerations: The event is raised on the client side, the eventArg consists of a string signaling what exact control is to be evaluated. But how can I manage to access the control's data from the server?

I tried to get the User control via

ControlCollection ctls = PanelMitarbeiterAuswahl.Controls;

int index = ctls.IndexOf(EditCtlMitarbeiterWahl);
ASP.controls_editcontrol_ascx editMAWahl = (ASP.controls_editcontrol_ascx)ctls[index];

but the resulting control (editMAWahl) does not carry the user input.

Any clues for this problem? Of course I tried to help myself with reading the documentation of the CallbackPanel. Interestingly, I found nothing; Intellisense tells me that my Callback Panel is a 'Syncfusion.Web.UI.WebControls.Tools.CallbackPanel', but in the documentation there is no 'CallbackPanel' member in the given namespace...?

Thanks in advance and greetings,

Juergen Kaphengst

2 Replies

JU Juergen February 27, 2007 10:07 AM UTC

Hi again,

now I attached the missing markup code :-)

Cheers,

Juergen


sf4.zip


VA Valli Syncfusion Team February 27, 2007 02:13 PM UTC

Hi Juergen,

Attached is the sample as per your requirement.

http://www.syncfusion.com/Support/user/uploads/Callback_5da5ec6c.zip

I have placed the Callbackpanel in the user control, which helps you get the date value.

The CallbackMultiplexer in .aspx page updates the date value based on the value retrieved from the user control.

Please do let us know if you have any further queries.

Thanks for choosing Syncfusion products.

Regards,
Valli

Loader.
Up arrow icon