Hi,
I am designing an RSS Feed reader using a RAD Grid and RAD Combo box.
My combo box will list all the sites whose feeds I subscribe to (e.g. this site, MSDN, etc etc).
On the selection of a feed, I want to fire an event handler (implemented) but I want to get the corresponding feed URL of a site title (using my dictionary collection in C#).
However, you cannot add new parameters to an event handler unless you override it.
This raises confusion for me. I have an event which is derived from RADComboBox... (can't remember exact name), and I've added the extra field in the derived constructor.
However, when I call the event handler at onSelectionChanged, I get this error:
Error 5 No overload for 'NewEventHandler' matches delegate 'Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventHandler'
Code:
public class NewEventHandler : Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs
{
public string Url;
public NewEventHandler(string text, string oldtext, string value, string oldValue, string Url) : base(text, oldtext, value, oldValue)
{
}
}
I then call this event handler on the appropriate/relevant event, and pass in the parameters in the constructor of the event handler, like so:
onselectedindexchanged="NewEventHandler"
protected void NewEventHandler(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e, string Url)
{
What am I doing wrong?
Thanks