Welcome Guest Search | Active Topics | Sign In | Register

ToolBar Questions Options
Lee Bornstein
Posted: Monday, November 9, 2009 8:16:54 AM
Rank: Newbie
Groups: Member

Joined: 11/9/2009
Posts: 5
I’m evaluating your EO Controls for ASP.NET today and have a few questions regarding ToolBar Control.

1. Experiencing strange behavior when attempting to add Text and ToolTip info to control.
Example below illustrates problem with “CLEAR” Toolbar Button.
Can you tell me what’s happening here and how to correct it besides editing source code?

In Design mode text appears below buttons as expected.



When viewing in browser, some text does not appear.



Properties show that Text and ToolTip data is present.



Code, however does not include Text or ToolTip as shown below for “Clear Tool”



2. Is it possible to make toolbar items appear/disappear under server side control by setting an item Visible true/false?
3. With AutoPostBack=True, how do we respond to some tools on the client with JavaScript and block postback on those tools?


Comments/Answers are appreciated.

Thanks,

Lee
eo_support
Posted: Monday, November 9, 2009 8:40:18 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

As to your questions:

1. The issue may have something to do with Visual Studio not triggering a change (thus update .aspx source) sometimes. You can try to use ToolBar Editor (right click ToolBar, then select Edit Tool Bar from the context menu) instead of editing "Items" property directly from the property window and see if that helps;

2. Unfortunately you can not now. It makes perfect sense to have this ability though. So we will look into it and see if we can add it;

3. The easiest way is to use a separate ScriptEvent control to do the post back. ScriptEvent is a separate control in the package that allows you to trigger server side event with JavaScript. You would handle the ToolBar control's click event with JavaScript, then decide whether to proceed in your code and if you do, call ScriptEvent to trigger the event for you;

Please feel free to let us know if you have any more questions.

Thanks!
Lee Bornstein
Posted: Monday, November 9, 2009 10:45:13 AM
Rank: Newbie
Groups: Member

Joined: 11/9/2009
Posts: 5
Found out what appears to be a bug??

If you have a standard PANEL control on your form, insert a Toolbar on the PANEL and choose appropriate style you cannot add or change the toolbar using the Toolbar Editor. It appears to work but source code is not updated and properties are not updated.

Only way to edit is by code or properties.

Is this a bug or am I doing something wrong?

Lee
eo_support
Posted: Monday, November 9, 2009 10:54:40 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Thank you very much for the additional information. This appears to be a bug and we will look into it and see what we can do. Apparently when you ONLY modify items property, Visual Studio does not consider the ToolBar has been modified because none of the ToolBar's property has been modified. How with or without a Panel control has an effect on this remains unknown and we will see what we can find. A workaround is when you modify any item, also modify any of the ToolBar property. That way it will notify something about the ToolBar indeed has been changed and cause Visual Studio to regenerates the .aspx code.

Thanks!
eo_support
Posted: Monday, November 9, 2009 11:51:21 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have looked into this issue and it appears to be a Visual Studio bug. As a test, you can place a DataGrid inside a Panel control and then edit the DataGrid's Columns property. In our test environment (VS 2008) it does not save any changes made to the Columns either. Once you move the DataGrid outside of the Panel, everything then works fine. The same workaround (modifying any ToolBar property) that worked for our ToolBar control also works for DataGrid control.

Thanks!
Lee Bornstein
Posted: Monday, November 9, 2009 3:50:01 PM
Rank: Newbie
Groups: Member

Joined: 11/9/2009
Posts: 5
Greetings from Reddick FL

I can confirm that if I change the ITEM TEXT then change Toolbar AutoPostback to False then back to True the changes are saved as you describe.

Thanks for following up on this.

Lee
eo_support
Posted: Monday, November 9, 2009 4:09:38 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great. Thank you very much for the update!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.