We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Save event is not firing on ejGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

118502 Feb 13,2014 10:50 PM UTC Mar 16,2015 07:15 AM UTC ASP.NET MVC 4
loading
Tags: DatePicker
Rajesh
Asked On February 13, 2014 10:50 PM UTC

Hi,

I'm trying to display and save data using ejGrid, I have following issues:

1. Datepicker is not working
2. Save button is not firing any event, actionBegin or actionComplete.

Let me know what I'm missing. File attached for your reference...

Thanks
Raj

Attachment: sProducts_28d11efe.rar

Maithiliy K [Syncfusion]
Replied On February 14, 2014 06:19 PM UTC

Hi Rajesh,

 

Thanks for using Syncfusion Products.

 

We are afraid that we are unable to reproduce the issue reported by you. Can you please attach the full sample in this incident or modify our sample , so that we could sort out the cause of the issue and provide you a solution. Please find the sample from the attachment.

                         

Please let us know if you would require any further assistance.

 

Regards,

Madhu Sudhanan. P


Maithiliy K [Syncfusion]
Replied On February 14, 2014 06:20 PM UTC


Ganga
Replied On March 11, 2015 11:03 AM UTC

For Datetime picker u should add this
date time picker
 <script src="@Url.Content("~/Scripts/jquery.globalize.min.js")"></script>
    <script src="@Url.Content("~/Scripts/cultures/globalize.culture.en-US.min.js")"></script>


View:

 @Html.EJ().DatePickerFor(m => m.From).DateFormat("dd-MM-yyyy").Enabled(false)


@Html.EJ().DatePickerFor(m => m.To).Value(DateTime.Now.ToString("dd-MM-yyyy")).Enabled(false)

Kasithangam C [Syncfusion]
Replied On March 16, 2015 07:15 AM UTC

Hi Rajesh,

We suggest you to pass the DateFormat and Value through model from the controller to achieve this behavior. Please find the below code for the same,

<code>

public ActionResult Index()

{

Incident inc =new Incident();

inc.datepicker1 =System.DateTime.Now;

DatePickerProperties datemodel = new DatePickerProperties();

datemodel.Locale = "en-US";

datemodel.DateFormat = "dd-MM-yyyy";

ViewData["date"] = datemodel;

return View(inc);

}

</code>

And please find the below code for the view page to render DatePickerFor control,

<code>

@Html.EJ().DatePickerFor(model => model.datepicker1, (Syncfusion.JavaScript.Models.DatePickerProperties)ViewData["date"])

</code>

Also, we have prepared the sample based on this and please find the sample under the following location,

Sample: DatePickerFor Sample

Please let us know if you have further queries.

Regards,

Kasithangam


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;