This question is locked. New answers and comments are not allowed.
Hi all,
I am wanting to create a re-useable (popup)form, both for add & edit functionality, but have a couple of questions:
1) How do i pass a value into a Telerik Popup form? (Say an 'id' value fom a edit link in a grid)?
2) Is there a way to change a form title based on the button(link) in the parent page is clicked?
2) How do i manage the two views (add/edit) including the dynamic databinding?
Any samples/ insight apprieciated!
Adam
@{
Html.Telerik().Window().Name("Window").Title("Submit feedback").Content(
@<text>
@using (Html.BeginForm("popupform", "window", FormMethod.Post, new { id = "feedback-form" }))
{
<p class="note">This is just an example, sent data will <strong>not</strong> be saved.</p>
<label for="name">Name:</label>
@Html.TextBox("name")
<div class="form-actions">
<button type="submit" class="t-button t-state-default">Submit feedback!</button>
</div>
}
</text>) .Width(400) .Draggable(true).Modal(true).Visible(false).Render();
}
I am wanting to create a re-useable (popup)form, both for add & edit functionality, but have a couple of questions:
1) How do i pass a value into a Telerik Popup form? (Say an 'id' value fom a edit link in a grid)?
2) Is there a way to change a form title based on the button(link) in the parent page is clicked?
2) How do i manage the two views (add/edit) including the dynamic databinding?
Any samples/ insight apprieciated!
Adam
@{
Html.Telerik().Window().Name("Window").Title("Submit feedback").Content(
@<text>
@using (Html.BeginForm("popupform", "window", FormMethod.Post, new { id = "feedback-form" }))
{
<p class="note">This is just an example, sent data will <strong>not</strong> be saved.</p>
<label for="name">Name:</label>
@Html.TextBox("name")
<div class="form-actions">
<button type="submit" class="t-button t-state-default">Submit feedback!</button>
</div>
}
</text>) .Width(400) .Draggable(true).Modal(true).Visible(false).Render();
}