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 ...
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 ...
What does the panel think? Worth looking at?
I should have thought that the development cost to telerik would be quite low for this.
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.