When Clicking on Navigation Buttons, Save Form data to Grid and Server - jqgrid

In jqGrid, the edit form can be configured to [display or hide the previous and next navigation buttons][1].
I want to save the Form data to the Grid and Server when the user clicks on the navigation buttons.
I am going to try this:
jQuery("#list_klanten").jqGrid('FormToGrid',rowid);
jQuery("#list_klanten").saveRow(rowid);

Related

How to prevent creating a new record from dashboard grid?

I have a dashboard that holds a few views (grids) I need to disable/hide the add + button from some grids, is there an option to controlling dashboard some of the grids will have the add + button and some will not?
Entity ribbon buttons can be customized for Main grid, Subgrid & Form. There are different (+) Add New buttons available from Main grid, Associated grid, Subgrid and Form. They can be customized/hide/delete from Ribbon workbench, or custom script action can also be applied to return boolean values for Enable/Display rules for hiding them.
Views in Dashboard does not have a separate Ribbon, they use either Main grid or subgrid ribbon only. When you hide it - it will be hidden from all the views in all the places, for example: wherever subgrid is embedded. So there is no special way to hide/remove only from Dashboard view.
If the dashboard is containing views from same entity - you cannot hide for some views & show from some. Also there is no form scripting for Dashboard to write custom javascript, even if we write some script in Dashboard ribbon button, they cannot access the components in any supported way.

Kendo Grid - Pop up Editor issue

We are using pop up editor in the Kendo Grid control to edit the record.
My kendo grid has the below extra Controls as below.
Kendo dropdownlist
Div control
Add button
Remove button
A dropdown which has list of values that user will select and press the ADD button which is next to it.
then those values will be added to div control dynamically at runtime.
click on update in the editor, My controller updation action is getting fired.
Now i want to remove the items from the div tag using the Remove button. this time my controller update method is not firing.
I suspect that the changes in div is not firing the change event as the div control items dynamically added and removed.
How can i trigger the change event in the Remove button click function in jquery once i removed the div elements.
Please help me on this, trying this since 2 weaks.

How to hide/show JQGrid inline navigation button from javascript

Hide and show Add and Cancel button programmatically in JQGrid
You can make Add and Cancel button hidden of visible in the same way like any other elements on the HTML page. You can use jQuery.show, jQuery.hide or jQuery.css with "display", "none" or "display", "" parameters. Thus the only thing which you need is to get DOM elements which represent the buttons. You can get the elements by id for example.
jqGrid assigns ids to all standard buttons. The ids of buttons added by inlineNav will be build from grid id as prefix and strings "_iladd" (for Add button), "_iledit" (for Edit button), "_ilsave" (for Save button) and "_ilcancel" (for Cancel button). So if you have the grid with id="mygrid" then $("#mygrid_iladd").hide() can be used to hide the Add button and $("#mygrid_ilcancel").hide() to hide the Cancel button. To hide both buttons you can use $("#mygrid_iladd,#mygrid_ilcancel").hide().

ModalPopupExtender From AJAX ToolKit in asp.net4.0

i have one image button on page,on click event of this imagebutton i have called one ModalPopupExtender, having definition as
(Panel3 contains one gridview and one button whereas gridview gets filled in codebehind)
But when i click the imagebutton, for 1st time it displays Panel3 with only button for 2seconds and then page gets reloaded automatically and again Panel3 displays with gridview,why this is happning i do not understand
i need to do is, as soon as i click on ImageButton the popup should be displayed with gridview and button....please help me as soon a possible

UPDATE (Event) PROBLEM WITH AJAX ACCORDION CONTROL

I Have three records which I want to display in three Accordion Panes
which (every pane) will have a Header and a content ( Two label controls, 1 text box and 1 checkbox and 1 link button)
I am able to display data on the accrodion from database but when I am trying to Update the text in textbox by clicking link button the LINKBUTTON doesnot fire and unabel to make the update. How can we create Update event working ??
I am creating the Accordion Panes and Content controls statically and directly assigning the values to the controls from Code behind in Page Load.
I was able to do it using the "ItemCommand" event of the Accordion Panel by using the Command Name property of a Link Button which will update the Text Boxes.
It works for me now but I felt JQUERY will be a better option which has no postback, css issues..

Resources