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

Problems with IDictionary<String, Object> in HtmlAttributes

3 Answers 47 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Adriano
Top achievements
Rank 1
Adriano asked on 18 Jan 2011, 12:45 PM
Hi all, we are using your asp.net mvc extensions in a mvc3 rc2 project and we have this problem. We have an IDictionary<String, Object> that it's dynamically built and it contains some stuff to pass to HtmlAttributes or InputHtmlAttributes methods of DatePicker. This technique works on Microsoft Html helpers (such as TextBox) but doesn't work with your extensions. In fact, on html source it's serialized the IDictionary and not what IDictionary contains.

Please, could you help us?

Thank you so much
Adriano

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 18 Jan 2011, 01:02 PM
Hello Adriano,

 The Microsoft extensions accept both IDictionary<string, object> and object as HTML attributes whereas the Telerik ones currently support only object (anonymous object). I am afraid we cannot suggest any workaround for the time being - we just need to implement an overload supporting IDictionary<string, object>. I will log this as a feature request.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Adriano
Top achievements
Rank 1
answered on 18 Jan 2011, 01:08 PM
So in this moment there is no way to dynamically pass these attributes to your extensions? Is this correct?

Thank you
Adriano
0
Atanas Korchev
Telerik team
answered on 18 Jan 2011, 01:38 PM
Hi Adriano,

 Yes, we currently do not support IDictionary<string, ojbect> for setting the HTML attributes.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Date/Time Pickers
Asked by
Adriano
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Adriano
Top achievements
Rank 1
Share this question
or