Apr 06, 2012, 9:06 AM
[CLOSED] Change property of ext.net control in controller (Razor syntax)
Hi, can you tell me solution for this simple example: I have one button with id "btn3" and direct event when click on btn3. Direct event call controller method HelloWorld(). How in controller I can change properties of btn3 like Width or something else?
@(Html.X().Button()
.Text("Ovde")
.Width(200)
.ID("btn3")
.DirectEvents(directEvents => {
directEvents.Click.Url = "/Test/HelloWorld";
})
)
public ActionResult HelloWorld()
{
string script = X.Msg.Alert("DirectEvent", "Hello world!").ToScript();
return new AjaxResult(script);
}
Last edited by Daniil; Apr 09, 2012 at 3:33 PM.
Reason: [CLOSED]