|
humi
|
 |
« on: March 20, 2009, 05:59:52 AM » |
|
How to hack in a custom in-grid editor. I am attaching an Auto Suggest feature to the editor and it uses the element ID to find the field. I got the ID of the editor to be assigned this way. The developers have already made a way for this.
This is a custom Editor type that I added to the EDITORS object in Sigma.Editor.
Will some kind of custom in-grid editors be in SigmaGrid 2.2?
-humi
|
|
|
|
« Last Edit: March 26, 2009, 10:09:37 AM by humi »
|
Logged
|
|
|
|
|
asherw
|
 |
« Reply #1 on: March 23, 2009, 07:47:11 AM » |
|
Hi Humi,
I also need to add autocomplete to my grid cells. I have autocomplete scripts that works with forms (text box, etc.) and I want to use it on grid cells. It uses id. I have not make any attempt to try it and ran into your post, perhaps I will try it tonight and see if it works.
Asher
|
|
|
|
|
Logged
|
|
|
|
|
asherw
|
 |
« Reply #2 on: March 23, 2009, 07:53:29 AM » |
|
Thank you. I am sure a lot of folks want this (autosuggests) feature. It really helps users with editing the grid.
|
|
|
|
|
Logged
|
|
|
|
|
humi
|
 |
« Reply #3 on: March 23, 2009, 10:10:59 AM » |
|
Ok. Problem Solved. (for SigmaGrid 2.1.02)
Next I need to add a Grid Event to trigger the creation of the autoSuggest object to the editor. The editor is created on a "which cell is being edited" basis. So each time you edit a cell, a new editor is created and the old one deleted.
The editor is created and made active in the df4 function. Find it by doing a search in the grid_all.js for the following:
You create a Grid Event as the following at the end of the df4 function.
Now in your grid file, use the following to create the autoSuggest object for the editor.
This code works for me. Only need to create the editor like in my previous post.
Notes: You may need to have z-index for the autoSuggest div to be "1" or more. I could attach the autoSuggest.js that I am using with this if someone would like.
|
|
|
|
« Last Edit: April 30, 2009, 02:05:23 PM by humi »
|
Logged
|
|
|
|
zaheer
Newbie

Posts: 1
|
 |
« Reply #4 on: May 06, 2010, 11:23:36 PM » |
|
hi,
i need complete code for autoSuggest with autoSuggest.js please send me.
Thanks
|
|
|
|
|
Logged
|
|
|
|
|
prabhuraj
|
 |
« Reply #5 on: February 07, 2011, 01:12:37 AM » |
|
can u post the complete code for auto complete
|
|
|
|
|
Logged
|
|
|
|
|
prabhuraj
|
 |
« Reply #6 on: February 07, 2011, 01:21:29 AM » |
|
i cant find the code , i have searched in js file..... plz give me a complte js file and code..its urgent
|
|
|
|
« Last Edit: February 07, 2011, 01:41:42 AM by prabhuraj »
|
Logged
|
|
|
|
|
humi
|
 |
« Reply #7 on: February 11, 2011, 05:12:56 AM » |
|
You may use whatever polling JavaScript you wish...
Attached are the files I use for Auto Suggest editor. They can be used with the example a few posts above.
|
|
|
|
« Last Edit: February 16, 2011, 06:37:09 AM by humi »
|
Logged
|
|
|
|
|
humi
|
 |
« Reply #8 on: February 21, 2011, 06:26:01 AM » |
|
parabhuraj, What you have posted looks correct... however, this grid editor is for SigmaGrid version 2.1.02... I think they have re-made the grid.js file and renamed the functions. You may use this link to download the version I made this for: http://www.sigmawidgets.com/download/sigma_grid2.1.02_release.zipOr... you can try to find the renamed function in the newest version.
|
|
|
|
|
Logged
|
|
|
|
|
prabhuraj
|
 |
« Reply #9 on: February 22, 2011, 04:07:50 AM » |
|
After a long time....I got the code working. Thank you humi.
So here i post the working code for "Auto Suggest" Feature. Auto Suggest feature for Sigmagrid
I think it will be usefull for many people.
Plz look at the attachment below. you will find the files.
Once again i thank you "Humi". Thk u friend.
|
|
|
|
« Last Edit: February 22, 2011, 04:18:01 AM by prabhuraj »
|
Logged
|
|
|
|
|
humi
|
 |
« Reply #10 on: February 22, 2011, 04:57:29 AM » |
|
prabhuraj,
Thanks for making working demo to download... Now I don't have to.
|
|
|
|
|
Logged
|
|
|
|
|
prabhuraj
|
 |
« Reply #11 on: February 22, 2011, 08:41:55 PM » |
|
hai humi,
We have another "2 more" issues with the style in auto suggest feature div...
1. even we dont have matching records to display in suggest div , the empty div loads.
2. and when clicking the selected element it works fine but in IE it gives an page error:
"Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus."
Do you have fixed this...if u have solution plz post it here.
thank you.
|
|
|
|
« Last Edit: February 22, 2011, 10:53:02 PM by prabhuraj »
|
Logged
|
|
|
|
|
humi
|
 |
« Reply #12 on: February 24, 2011, 10:42:15 AM » |
|
It sounds like you didn't change the Z-index in the CSS file - needs to be more than 1 for layer on top of the SigmaGrid.
Let me know if it is something else.
|
|
|
|
|
Logged
|
|
|
|
|
prabhuraj
|
 |
« Reply #13 on: February 24, 2011, 08:21:21 PM » |
|
hai humi,
the problem is the empty div appears when we have "no matching" suggestion.
BUt now i find out a solution for that. now it is fixed. i will attach the modified autosuggest.js and autosuggest.css have a look.
the 2nd issue remains unfixed
when clicking the higlighted element in suggestion list , it works fine, but in IE it gives an page error:
"Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus."
any ideas, help me yar
thank u.
|
|
|
|
« Last Edit: February 25, 2011, 04:03:26 AM by prabhuraj »
|
Logged
|
|
|
|
|