on 08-05-2005 11:52 AM
Hi,
i have got again a phenomenal behavior of a control.
It is concerning the DropDownByKey Control.
I have implemented a method which adds a selected item of the DropDownByKey Control into a ListBox, when the Select Event of the Control is fired.
During the process of the first PostBack the DropDownByKey.Select Event is fired with no reason.
This does not happen at the next roundTrips.
Any Ideas?
Maybe you actually set the selected item in code which causes this event to fire?
Maybe you can post some of your PageLoad code here? (the relevant stuff anyway).
Regards,
Ofer
-
Have you filled the PDK survey yet? You can win an MP3 player!!!
http://feedback.sap.com/efs/vote?campaign=39c7899ecca40a6709a638bd0388ac8b&org=332
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ofer,
here is the relevant stuff:
if (!IsPostBack)
{
....
....
initials();
....
}
else
{
....
....
initalizeSAPControls();
....
....
}
private void initalizeSAPControls()
{
....
UIProcessComponents.MainCl.DataBindingsForSAPControls(ref ddlZielbahnhof,Session["ddlZielbahnhof"]);
.....
}
In UIProcessComponents.MainCl there is a function:
public static void DataBindingsForSAPControls(ref SAP.Web.UI.Controls.DropDownByKey ddbk , Object dataSource)
{
ddbk.DataSource=(DataView)dataSource;
ddbk.DataBind();
}
Thats all, there is no code firing the .select event automatically
Regards
Erhan
Hi Erhan,
I rechecked this issue and indeed it is a bug.
A workaround would be to add protection code in the DropDownByKey.Select handler:
private void DropDownByKey1_Select(object sender, SAP.Web.UI.Controls.AbstractDropDownByKey.SelectEventArgs e)
{
if(Page.Request.Form["__EVENTTARGET"] == ((Control)sender).UniqueID)
{
.
.
.
}
}
Regards, Reshef
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.