This is a migrated thread and some comments may be shown as answers.

Images on items created with the Client API

6 Answers 64 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 2
Stephen asked on 05 Apr 2009, 11:59 PM
I have been working with the PanelBar for the last few months with no problem.  However I have just tried to create the items dynamically using the Client API.  For some reason an image has been attached to the item.  This image is the logo from the top left RadPanel of the screen (if I set display=none on it the logo in the top left radPanel disappears).  This only applies to those created using the Client API.

Here is the code used to create the items:

    var links = $find("LinksPanel"); 

 

    var parent = links.findItemByValue("LINKS"); 

 

    var item = new Telerik.Web.UI.RadPanelItem(); 
    item.set_text(displayText);
    parent.get_items().add(item);

The problem also appears on the online demo (tested under IE7 and FF3).  I am using 2009 Q1.

The demo (http://demos.telerik.com/aspnet-ajax/panelbar/examples/clientside/clientsideapi/defaultcs.aspx), when clicking to Add At Runtime creates an item which includes the logo.  When a postback is performed (on the demo), the panelbar item loses the image and appears as it should.

Any help would be greatly appreciated.

 

 

6 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 06 Apr 2009, 11:05 AM
Hello Stephen,

Thanks for the report.

Actually, you're right and we admit this is a bug. I've forwarded your report to our dev team and the issue will be fixed in the next hotfix.

Your Telerik points have been updated for the report. Please excuse us for the temporary inconvenience.

Kind regards,
Paul
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Stephen
Top achievements
Rank 2
answered on 02 Jun 2009, 11:44 PM
Hi Paul

Any idea when this bug is going to be fixed?  You said it would be in the next hotfix but this has not been the case.

Thanks

Stephen
0
Paul
Telerik team
answered on 04 Jun 2009, 01:17 PM
Hello Stephen,

This bug is already fix. Please download and try the latest version of the control. In addition, you can see the online demo works as expected now.

Regards,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Stephen
Top achievements
Rank 2
answered on 02 Jul 2009, 11:31 PM
Sorry for the delay.  I was on another project.  This bug is still present although it has changed slightly.

My application has the following setup (simplified)

Horizontal Splitter
-> Vertical Splitter (inside horizontal splitter)
--> Horizontal Splitter (inside vertical splitter)
---> Panel Bar1 (in first pane in horizontal splitter)
---> Panel Bar2 (in second pane of the horizontal splitter)

Panel Bar 1 holds the site navigation.  Each top level panel has an image and each navigation item does not.

Panel Bar 2 holds contextual navigation created client-side depending on the context.  There is a single top level panel with individual items under it.

When I first reported this issue, the client-side created items in Panel Bar 2 picked up the image in the first pane of the Top Horizontal Splitter (first image on the page?).  Now when the items are created the image from the first top level pane in Panel Bar 1 is displayed.

I do not want any image on the items in Panel Bar 2.

Please continue to investigate and resolve this issue.

I am running build 2009.1.527.35 running under a mixture of IE7, IE8, Chrome and FireFox.  I have tested it on Windows XP and Windows 7.

Thanks

Stephen

0
Paul
Telerik team
answered on 03 Jul 2009, 06:31 AM
Hi Stephen,

I think it will be best if you can open a support ticket and send us a simple running project (incl. your custom skin, CSS, images, DB backup if needed and so on) demonstrating the problem (and step-by-step instructions on doing so). In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.

Thanks beforehand for your patience and cooperation,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Matt
Top achievements
Rank 1
answered on 09 Jul 2009, 03:27 PM
I have had the exact same problem. Although, I found an ugly, temporary fix.  If you create a transparent 1x1 pixel gif and set the image of the panel item (clientside) to the URL of this image it gives the effect of having no image at all.
Tags
PanelBar
Asked by
Stephen
Top achievements
Rank 2
Answers by
Paul
Telerik team
Stephen
Top achievements
Rank 2
Matt
Top achievements
Rank 1
Share this question
or