Want to prevent button posting the Data for add or Update
-
Hi all, I have a Kendo Grid as below, it creates a Popup that will submit the Data entered by using into a Controller Action method, my need is, I have a jQuery function that will be called at RequestStart, which has some validations, what I want is, to prevent calling of the calling of the Controller Action method if Validation fails like in the jQuery method <2, or < 3 or etc, any help would be very very helpful, I am using Kendo grid for it, my Kendo grid is as below:
@(Html.Kendo().Grid() .Name("LookupGrid") .EnableCustomBinding(true) .AutoBind(true) .Columns(columns => { columns.Bound(p => p.Id).Hidden(); columns.Bound(p => p.Code).Width(120); columns.Bound(p => p.Description).Width(280); columns.Bound(p => p.CreatedDate).ClientTemplate("#=DateFormat(CreatedDate)#").Width(130); columns.Bound(p => p.CreatedBy).Width(150); columns.Bound(p => p.ModifiedDate).ClientTemplate("#=DateFormat(ModifiedDate)#").Width(140); ; columns.Bound(p => p.ModifiedBy).Width(150); columns.Bound(p => p.Status).Width(100); columns.Bound(p => p.IsValid).Width(100).Hidden(); columns.Command(command => { command.Edit().UpdateText("OK").CancelText("Cancel");}).Width(100); columns.Bound(p => p.LookupTableId).Hidden(); columns.Bound(p => p.ForeignKeyId).Hidden(); }) .ToolBar(toolbar => { toolbar.Create().Text("Add New"); }) .Editable(editable => { editable.Mode(GridEditMode.PopUp).TemplateName("\_EditLookupCode").DisplayDeleteConfirmation(false); }) .Pageable() .Resizable(resize => resize.Columns(true)) .Sortable() .Scrollable() .Resizable(resize => resize.Columns(true)) .Filterable(x => x.Extra(false).Operators(O => O.ForString(str => str.Clear().StartsWith("Starts With")))) .HtmlAttributes(new { style = "heig
-
Hi all, I have a Kendo Grid as below, it creates a Popup that will submit the Data entered by using into a Controller Action method, my need is, I have a jQuery function that will be called at RequestStart, which has some validations, what I want is, to prevent calling of the calling of the Controller Action method if Validation fails like in the jQuery method <2, or < 3 or etc, any help would be very very helpful, I am using Kendo grid for it, my Kendo grid is as below:
@(Html.Kendo().Grid() .Name("LookupGrid") .EnableCustomBinding(true) .AutoBind(true) .Columns(columns => { columns.Bound(p => p.Id).Hidden(); columns.Bound(p => p.Code).Width(120); columns.Bound(p => p.Description).Width(280); columns.Bound(p => p.CreatedDate).ClientTemplate("#=DateFormat(CreatedDate)#").Width(130); columns.Bound(p => p.CreatedBy).Width(150); columns.Bound(p => p.ModifiedDate).ClientTemplate("#=DateFormat(ModifiedDate)#").Width(140); ; columns.Bound(p => p.ModifiedBy).Width(150); columns.Bound(p => p.Status).Width(100); columns.Bound(p => p.IsValid).Width(100).Hidden(); columns.Command(command => { command.Edit().UpdateText("OK").CancelText("Cancel");}).Width(100); columns.Bound(p => p.LookupTableId).Hidden(); columns.Bound(p => p.ForeignKeyId).Hidden(); }) .ToolBar(toolbar => { toolbar.Create().Text("Add New"); }) .Editable(editable => { editable.Mode(GridEditMode.PopUp).TemplateName("\_EditLookupCode").DisplayDeleteConfirmation(false); }) .Pageable() .Resizable(resize => resize.Columns(true)) .Sortable() .Scrollable() .Resizable(resize => resize.Columns(true)) .Filterable(x => x.Extra(false).Operators(O => O.ForString(str => str.Clear().StartsWith("Starts With")))) .HtmlAttributes(new { style = "heig
I don't understand why you keep posting queries related to Kendo UI controls here in ASP.NET forum section. Again, to get quick answer to your query, you should post it at Telerik dedicated forums: Forum threads about Grid Kendo UI for jQuery[^] Or atleast at JavaScript forums section: JavaScript Discussion Boards[^] You'd likely get less response or perhaps nothing at all when posting queries to wrong forum section.
-
Hi all, I have a Kendo Grid as below, it creates a Popup that will submit the Data entered by using into a Controller Action method, my need is, I have a jQuery function that will be called at RequestStart, which has some validations, what I want is, to prevent calling of the calling of the Controller Action method if Validation fails like in the jQuery method <2, or < 3 or etc, any help would be very very helpful, I am using Kendo grid for it, my Kendo grid is as below:
@(Html.Kendo().Grid() .Name("LookupGrid") .EnableCustomBinding(true) .AutoBind(true) .Columns(columns => { columns.Bound(p => p.Id).Hidden(); columns.Bound(p => p.Code).Width(120); columns.Bound(p => p.Description).Width(280); columns.Bound(p => p.CreatedDate).ClientTemplate("#=DateFormat(CreatedDate)#").Width(130); columns.Bound(p => p.CreatedBy).Width(150); columns.Bound(p => p.ModifiedDate).ClientTemplate("#=DateFormat(ModifiedDate)#").Width(140); ; columns.Bound(p => p.ModifiedBy).Width(150); columns.Bound(p => p.Status).Width(100); columns.Bound(p => p.IsValid).Width(100).Hidden(); columns.Command(command => { command.Edit().UpdateText("OK").CancelText("Cancel");}).Width(100); columns.Bound(p => p.LookupTableId).Hidden(); columns.Bound(p => p.ForeignKeyId).Hidden(); }) .ToolBar(toolbar => { toolbar.Create().Text("Add New"); }) .Editable(editable => { editable.Mode(GridEditMode.PopUp).TemplateName("\_EditLookupCode").DisplayDeleteConfirmation(false); }) .Pageable() .Resizable(resize => resize.Columns(true)) .Sortable() .Scrollable() .Resizable(resize => resize.Columns(true)) .Filterable(x => x.Extra(false).Operators(O => O.ForString(str => str.Clear().StartsWith("Starts With")))) .HtmlAttributes(new { style = "heig
-
-
I don't understand why you keep posting queries related to Kendo UI controls here in ASP.NET forum section. Again, to get quick answer to your query, you should post it at Telerik dedicated forums: Forum threads about Grid Kendo UI for jQuery[^] Or atleast at JavaScript forums section: JavaScript Discussion Boards[^] You'd likely get less response or perhaps nothing at all when posting queries to wrong forum section.
The reason is, Telerik allows only members or licensed user to post queries, that's very sad, and I am not a member and as organization I am working in is big, so not sure on whose credentials license is registered with. Thanks, Abdul Aleem "There is already enough hatred in the world lets spread love, compassion and affection."
-
The reason is, Telerik allows only members or licensed user to post queries, that's very sad, and I am not a member and as organization I am working in is big, so not sure on whose credentials license is registered with. Thanks, Abdul Aleem "There is already enough hatred in the world lets spread love, compassion and affection."
I got you. But if you are working in an organization, you should have a team license for it. Why use a paid third-party products when you can't get a full support from them? Go ask your boss and ask for the credentials so you would be able to contact their support or post to their forums when you have problems specific to their products. PS: Their site states that Community questions can be directed to the: KenduUI - Stack Overflow[^]
-
I am not familiar with that, I am new to MVC, can you please help me with that please? Thanks, Abdul Aleem "There is already enough hatred in the world lets spread love, compassion and affection."