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

Variable radalert icons

3 Answers 96 Views
Window
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 19 Dec 2008, 09:55 AM
When working with windows forms, if I create an message box I can tell the system what kind of icon to include by identifying the 'type' of message box(Information, Warning, Error, etc).

I was thinking about how this could be done using radalert.

ATM, if you create a radalert (I'm not using embedded skins for this), you end up with a div that has it's classes set to class="windowpopup radalert". The standard skin/template has these definitions ...
div.radwindow_Qube .windowcontent .windowpopup.radalert { 
  background:transparent url(Window/ModalDialogAlert.gif) no-repeat scroll 8px center

What I was thinking was this. If the popup was rendered with the value of a new property, say 'MessageBoxIconClass" then the programmer could have as many different 'types' of message box as required. I envisage the property being set using a new override of the radalert call; radalert(string Message, int Width, int Height, string Title, string MessageBoxIconClass).

The popup's DIV would now be rendered thus: "class="windowpopup radalert <value_of_MessageBoxIconClass>". The programmer could then add to his/her Style CSS file as necessary ...
/* This is the default, used if there's no MessageBoxIconClass setting */ 
div.radwindow_Qube .windowcontent .windowpopup.radalert { 
  background:transparent url(Window/ModalDialogAlert.gif) no-repeat scroll 8px center
 
div.radwindow_Qube .windowcontent .windowpopup.radalert.Information { 
  background:transparent url(Window/ModalDialogInfo.gif) no-repeat scroll 8px center
 
div.radwindow_Qube .windowcontent .windowpopup.radalert.Wuff { 
  background:transparent url(Window/ModalDialogDog.gif) no-repeat scroll 8px center
 
/* etc */ 




What does the panel think? Worth looking at?

I should have thought that the development cost to telerik would be quite low for this.

3 Answers, 1 is accepted

Sort by
0
Dan
Top achievements
Rank 1
answered on 22 Dec 2008, 01:28 PM
No one has any thoughts on this?

--
Stuart
0
Tervel
Telerik team
answered on 23 Dec 2008, 08:19 AM
Hi Stuart,

Your suggestion makes good sense, and since I happen to be in charge of RadWindow development you can count on it being seriously considered :)
At this moment I am not able to give you an ETA on this as our feature list for the coming Q1 2009 is quite ambitious - but if we get a "free moment" we might just squeeze this one feature in.


Sincerely yours,
Tervel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Dan
Top achievements
Rank 1
answered on 23 Dec 2008, 08:54 AM
Tervel,

> Your suggestion makes good sense, and since I happen to be in charge of RadWindow
> development you can count on it being seriously considered :)
My mum always said it was who you know and not /what/ you know that's important!

Tags
Window
Asked by
Dan
Top achievements
Rank 1
Answers by
Dan
Top achievements
Rank 1
Tervel
Telerik team
Share this question
or