How to toggle Edit and Save Cancel in a jqGrid? - jqgrid

I asked this question at jquery forum cf: my question, but was asked to come here and look for Oleg.
I've done a lot of research online and tested a bunch of code either mine or from the web, but so far have had no luck. I keep on reading that I need to use the oneditfunc function. As you see in my question at the jquery forum, I added those action buttons in gridComplete. Where do I declare and define the oneditfunc function?
The example at http://www.ok-soft-gmbh.com/jqGrid/ActionButtons.htm does look like what I am looking for, but I can't use the pre-defined 'actions' formatter, I have to use buttons which bear the texts Edit, Save and Cancel.
There is an example at http://www.trirand.com/blog/jqgrid/jqgrid.html# under Row Editing (new) > Custom Edit, which I followed to create mine you've seen in my original question at jquery forum. Unfortunately, those buttons don't toggle.
It just doesn't make sense to display the S(ave) and C(ancel) buttons when the rows are not even in edit mode. So I do want to fix this by toggling them. Any ideas to share? I am sure this is going to help a lot of people as no working examples can be found online. Thank you!

For those who are looking to solve this problem. I have solve it and I have posted my solution at http://forum.jquery.com/topic/jqgrid-inline-editing-buttons .

Related

How do I create a Vuetify multistep form?

I recall seeing such a thing a few months ago, but now that I'm looking at the API, I can't find it. I'm talking about a form which has multiple sections that show one at a time. Anybody know about this?
You can use the v-stepper component I guess. Here's the Stepper Documentation.
There is also a stepper as well as Expansion Panel. Maybe you're talking about it Expansion Panel Documentation.

Laravel Query issue

I have make the survey site. User post the question and other user ans them the question.My code work perfectly but the views is not good. All the question shows the user.How we can one by one show the question. User press the next button then show the next question if press the previous button show the previous question.
Any Idea for this problem Or suggest me related site
The easiest way to do this is with Javascript or similar.
But, I too did find this way interesting as well using php only and please check whether they could help.
How to display only one data at a time in an online quiz
OR
One quiz item per page (php/mysql quiz program)

MVC3 How to implement result browser like twitter/facebook do it (without paging)

I'm looking for leads on how to implement a (search-)result browser without using paging. But more like how twitter/facebook do it.
At first only 10 or so results need to be displayed but when scrolling down, more results (if any) should be added asynchronously. I've found examples with a [more] button at the end but I would like the browser to automatically fetch more when the bottom of the pane is reached.
I'm having trouble finding the right examples. Probably because I don't know what keywords to google on...
Hope you can help me out in the right direction!
Kind regards,
Paul
I advise you read following article regarding this subject:
Infinite Scroll in ASP.NET MVC
There is also a sample application available here.
Refer to the Replace paging with jQuery and subsonic continuous scrolling method blog post.
Have a look at the following pages:
On Scroll down how to make ajax call and get the respone data
create-a-dynamic-scrolling-content-box-using-ajax
I believe that should help you!

jquery - can't select text on complex page - how do I debug this?

I'm not able to select text on a page that has a lot of jquery and css stuff going on. I've commented out many of the mousedown event handlers that seem like obvious culprits, but I still haven't found the bug.
The question is... what's the best way to debug this? Is there a better way to debug this than commenting out all event handlers until I find the problem? Is there some sort of event inspector I can use?
FYI, the page is:
http://www.musiclessons.com/youtube/#6NxVucKQHG8 - you can't select any text below the video
there it is:
$('#youtube-list').disableSelection ();
found in the following file, loaded by your page:
http://musiclessons.com/youtube/js/youtube.js?v=9
and here's what it's about:
http://forum.jquery.com/topic/disableselection
as for your question on an efficient way of debugging this: i don't really know. was looking through the css files for some 'user-select' property (see Is there a way to make text unselectable on an HTML page?), then read some of the js, before stumbling upon the above.
I am not sure why you need to select the text to debug, perhaps you can update the question with that.
For now, if you need to copy the text or something like that, you can always inspect with firebug or whatnot and select the text from there.

Link to a specific image/slide in gallerific

I'm having problems with something which seems like an easy task, and most probably a stupid question. It will probably be my all time low experience in programming but I would really appreciate any help!
I'm using Galleriffic to display my portfolio site, and I am looking for a way to directly link to an image+description not being the first in the gallery. I would like it to link from other webpages, or from plain text/pdf documents.
In short, I would like it to link to a webaddress of slide 5 with something like:
Slide 5
but doing it this way obviously doesn't work.
Although others have tried to explain:
https://stackoverflow.com/a/7910501/1074297
jquery cycle link from external page to specific slide?
I can not seem to accomplish it, and it does not help at all that I am not a programmer.
not sure if it is too late, have been search the solutions for whole day, final found out the example 4 in the official website actually make the #link show on the address....so you can actually link the specific image ('slide'') from external page...amazing!!!!!
check this out
http://www.twospy.com/galleriffic/example-4.html#5
You can find the script after all the or just before ... and place it to your template...it works well for me, hope it helps, good luck

Resources