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

Cannot convert lambda expression to type string because it is not a delegate type

3 Answers 368 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
JULIA
Top achievements
Rank 1
JULIA asked on 20 Jul 2010, 08:26 AM
Hello,

i got a error inside the vs2010 error list.
"Cannot convert lambda expression to type 'string' because it is not a delegate type"
If i use Code Nuggets inside the Content function ( like the ActionLink in the sample ) this error is raised.

<% Html.Telerik().TabStrip()
       .Name( "ProfileTab" )
       .Items( tabstrip =>
       {
           tabstrip.Add()
                   .Text( "Verträge" )
                   .ImageUrl( "~/Content/Images/Controls/contract16.png" )
                   .Content( () =>
                   {%>
                       <fieldset>
                           <legend>allgemeine Verträge</legend>
                           <ol>
                               <li>
                                   <%= Html.ActionLink( "...", "...", new { id = Model.Id } ) %>
                               </li>
                           </ol>
                       </fieldset>                                        
                   <%} );
       } )
       .SelectedIndex( 0 )
       .Render();
%>

Regards,
Timo

3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 20 Jul 2010, 09:12 AM
Hello Timo,

Unfortunately I could not reproduce the depicted issue. I have attached simple test project which implements the required functionality. Check Index.aspx page.

Greetings,
Georgi Krustev
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
JULIA
Top achievements
Rank 1
answered on 20 Jul 2010, 11:28 AM
Hello,

please look at the attached image. i use the Q2 Beta Release und VS 2010.

Regards,
Timo
0
Georgi Krustev
Telerik team
answered on 20 Jul 2010, 02:01 PM
Hi Timo,

I have modified test project in order to use Q2 Beta and VS 2010. Still everything works fine on my end.
Check it and if you still have a problem I will ask you to send us a simple test project which reproduces the depicted issue.

All the best,
Georgi Krustev
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
TabStrip
Asked by
JULIA
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
JULIA
Top achievements
Rank 1
Share this question
or