This question is locked. New answers and comments are not allowed.
Hi,
I saw this example in your AnimationEffects.aspx
I have been trying combinations of this ...... .
I saw this example in your AnimationEffects.aspx
| <% Html.Telerik().TabStrip() |
| .Name("TabStrip") |
| .HtmlAttributes(new { style = "margin-top: 200px; height: 163px;" }) |
| .Effects(fx => |
| { |
| if ((string)ViewData["enabledAnimation"] == "height") |
| { |
| fx.Expand(properties => |
| properties |
| .OpenDuration((int)ViewData["heightOpenDuration"]) |
| .CloseDuration((int)ViewData["heightCloseDuration"])); |
| } |
| else |
| { |
| fx.Toggle().Opacity(properties => |
| properties |
| .OpenDuration((int)ViewData["opacityOpenDuration"]) |
| .CloseDuration((int)ViewData["opacityCloseDuration"])); |
| } |
| }) |
I have been trying combinations of this ...... .
| tabstrip.Add() |
| .Text("Edit Company") |
| .HtmlAttributes(new { style = "background-color:blue;color:white;" }) |
| .LoadContentFrom(LC => |
| { |
| if(TempData["which"]== "Init") |
| { |
| LC.(Url.Action("CompanyForm", "Company", new {request="Edit", id = Convert.ToInt32(Session["CompanyIdToEdit"]) })); |
| } |
| else |
| { |
| LC.(Url.Action("CompanyForm", "Company", new {request="Editerror", id = 0})); |
| } |
| }); |
The first thing it tells me is that the "LC" after the LoadContentFrom "Cannot convert lambda expression to type 'string' because it is not a delegate type".
And, I get "identifier expected" between the "LC" and the (Url.Action, etc)
Is there a sample of how to do this with LoadContentFrom like your doing with Effects ? Maybe one that shows the right way that I
should be doing this ?
As usual, thanks for your time