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. Image for the cookie policy date

Save event is not firing on ejGrid

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

4 Replies

MK Maithiliy K Syncfusion Team 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



MK Maithiliy K Syncfusion Team February 14, 2014 06:20 PM UTC



GA Ganga 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)


KC Kasithangam C Syncfusion Team 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


Loader.
Live Chat Icon For mobile
Up arrow icon