- Home
- Forum
- ASP.NET MVC (Classic)
- Tabs in Dialog Editing Template???
Tabs in Dialog Editing Template???
payments form_87dc8d22.zip
Hi Almond,
Thank you for using Syncfusion products.
Query : use multiple tabs in your Dialog Editing Template ?
We would like to let you know that we have created a custom sample request for your above requirement and we will update you with the further details in 3 business days (6/11/2013).
Query : can I insert an image in the Dialog Editing Template as seen in the attached file ?
We are unable to download the attached file from your previous update. We request you to re-attach the attachment so that we could analyze and provide you the solution for it.
Please let us know if you have any concerns.
Rakesh D
payments form_592499e3.zip
Hi Almond,
Thanks for using Syncfusion products.
Query: can I insert an image in the Dialog Editing Template as seen in the attached file ?
We suggest you to insert an image in the dialog editing template by using ClientSideEvents method. The method OnLoad to client side script to achieve your requirement. Please refer the following code snippet.
[Method]
.ClientSideEvents(events =>{events.OnLoad("load");})
[Script]
<script type="text/javascript">
function load(sender, args) {
$("<img/>").prependTo('button[name="Save"]').attr({
src: '/Images/Update1.png',
alt: '',
height: '20'
});
$("<img/>").prependTo('button[name="Cancel"]').attr({
src: '/Images/Cancel1.png',
alt: '',
height: '20'
});
}
</script>
Query : use multiple tabs in your Dialog Editing Template ?
We would like to let
you know the complexity due to created a custom sample for your above
requirement and we will update you with in 2 business days (6/13/2013)
Please refer the following link to download the sample
Please let us know if you have any concern.
Regards,
Ajith R
DialogImage_12e1066c.rar
Hi Almond,
Thanks for using Syncfusion products.
Query: can I insert an image in the Dialog Editing Template as seen in the attached file ?
We suggest you to insert an image in the dialog editing template by handling ClientSideEvent OnActionSuccess. Please refer the following code snippet.
[Event]
.ClientSideEvents(events => { events.OnActionSuccess("Success"); })
[Script]
function Success(sender, args) {
if (args.RequestType == "AddNew" || args.RequestType == "BeginEdit") {
$("fieldset").css({ background: "url('../Images/syncfusion.png')", backgroundRepeat: 'no-repeat', height: "300px" }); //Setting background image
$('b').css('margin-left', '200px'); //Set position of the element
$('div[id="Head"]').css('margin-left', '100px');
}
}
Query : use multiple tabs in your Dialog Editing Template ?
Your requirement of tabs having multiple fields can be achieved by handling ClientSideEvent OnActionSuccess. Please refer the following code snippet.
[Script]
function Success(sender, args) {
if (args.RequestType == "AddNew" || args.RequestType == "BeginEdit") {
$("#Head").tabs(); //Setting the tabs inside dialog template.
}
}
Please refer the following link to download the sample.
Please let us know if you have any concern.
Regards,
Ajith R
Sample_6e23718.zip
Thanks for your update. We are glad to know that your issue has been resolved. Please let us know if you have any other concerns so that we will be happy to help you out.
Regards,
Ajith R
- 7 Replies
- 3 Participants
-
AR Almond R. M. Monteagudo
- May 30, 2013 03:18 PM UTC
- Jun 18, 2013 09:12 AM UTC