Replies: 11 comments 16 replies
|
How about this one? |
|
Ah ok, I think it's similar to where I first found it. The issue is some tables have huge records, loading them all doesn't make sense, what helped was a search on the database. Maybe we need a |
|
I just googled, will this https://select2.org/data-sources/ajax work in http://6pac.github.io/SlickGrid/examples/example-select2-editor.html ? |
|
Certainly. However you'd need to modify the editor to work with the Select2 Ajax loading code. You could put together a new example and submit it to the repo. |
|
Sure, let me give it shot. Let's leave this issue open first. Thank you. |
|
@6pac I actually finished half the example, but facing an old issue (and I'm not keen to re-visit my old messy code). Let's assume that we have 100k rows of What is the best way in your opinion to provide the formatter with the proper values when loading the HTML for the first time? |
|
They approach I have taken in the past is to store the data source for the
dropdown (a DataView or a js object) as a member of the column object.
You could do this for both AJAX and non-AJAX datasources, the only
difference being that the AJAZ datasource would have rows dynamically added
to it by code.
…_____
From: bilogic [mailto:notifications@github.com]
Sent: Thursday, 18 February 2021 3:01 AM
To: 6pac/SlickGrid
Cc: Ben McIntyre; Mention
Subject: Re: [6pac/SlickGrid] Select field that does an AJAX (#578)
@6pac <https://github.com/6pac> I actually finished half the example, but
facing an old issue (and I'm not keen to re-visit my old messy code).
What is the best way in your opinion to provide the formatter with the
proper values when loading the HTML for the first time?
-
You are receiving this because you were mentioned.
Reply to this email directly, view
<#578 (comment)> it on
GitHub, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABDEVKMJLQHXFG6FQALBRDS7
P4NXANCNFSM4XX5YHYQ> .
<https://github.com/notifications/beacon/AABDEVKAXZU4OG7K4UTTTD3S7P4NXA5CNFS
M4XX5YHY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF2ENZFA
.gif>
|
|
The other option is to use jQueryUI Autocomplete since jQueryUI is a dependency anyway but that would work only for 1 value not multiple. I'm moving this issue as a "Discussion" (the new GitHub tab) since this is not an issue but really a Discussion |
|
Thanks @ghiscoding I'm not really able to connect the approaches to the problem. For the a
Normally, what we want to edit is the When we load the example, this is basically what happens:
I could go on about my thought process, but boiled down, I think the issue lies with
I'm more than happy to code the example, but I think I could really use your expertise/help to architect this. Thank you. |
|
If you looke at and uses What you want is to tweak the formatter so it checks for a local lookup, then gets AJAX of that fails, so somthing like: |
|
ok, but I think that will still incur high overheads (i.e. a lot of AJAX calls) in I'm thinking, is there a way for |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I have a heavily customized SlickGrid based off from mleibman.
One of heavily stuff was implementing a dropdown column that does a database lookup, i.e. a select that list its values based on a lookup back to the database table.
I looked around but thought it is easier and faster to ask, Is there anything similar in this repo? Thank you.
All reactions