Hello,
I use a RadPanelBar and I want to use a sqldatasource. There’s no problem if I don’t need to use the “ExpandedImageUrl” panelbar’s item’s member.
In my code I got something like that :
DataSet dsMenu = new DataSet();
dsMenu.Tables.Add("Menu");
dsMenu.Tables[0].Columns.Add("IDMenu");
dsMenu.Tables[0].Columns.Add("Menu_Text");
dsMenu.Tables[0].Columns.Add("Menu_Tooltip");
dsMenu.Tables[0].Columns.Add("Menu_ImageUrl");
dsMenu.Tables[0].Columns.Add("Menu_ExpandedImageUrl");
dsMenu.Tables[0].Columns.Add("Menu_NavigateUrl");
dsMenu.Tables[0].Columns.Add("Menu_Target");
dsMenu.Tables[0].Columns.Add("Menu_ParentID");
dsMenu.Tables[0].Rows.Add();
dsMenu.Tables[0].Rows[0]["IDMenu"] = "1";
dsMenu.Tables[0].Rows[0]["Menu_Text"] = " ";
dsMenu.Tables[0].Rows[0]["Menu_Tooltip"] = "Mon espace";
dsMenu.Tables[0].Rows[0]["Menu_ImageUrl"] = "~/images/espace-over.gif";
dsMenu.Tables[0].Rows[0]["Menu_ExpandedImageUrl"] = "~/images/espace-over.gif";
dsMenu.Tables[0].Rows[0]["Menu_NavigateUrl"] = "";
dsMenu.Tables[0].Rows[0]["Menu_Target"] = "";
RadPanelBar1.DataFieldID = "IDMenu";
RadPanelBar1.DataFieldParentID = "Menu_ParentID";
RadPanelBar1.DataTextField = "Menu_Text";
RadPanelItemBinding item = new RadPanelItemBinding();
item.ImageUrlField = "Menu_ImageUrl";
item.ToolTipField = "Menu_Tooltip";
item.NavigateUrlField = "Menu_NavigateUrl";
item.TargetField = "Menu_Target";
RadPanelBar1.DataBindings.Add(item);
My problem is that I haven’t member for my item to manage the ExpandedImageUrl like it’s possible with HoveredImageUrl
Is this just an omission or a will of the developer. In the first case, is it possible to enhance the possibility of RadPanelItemBinding
Thanks for your answer.