Hi there,
I am working on an application where multiselect is a must. Conveniently, the selection behavior can be found on the igniteUI page here: http://www.igniteui.com/grid/selection in the second example (multiple row selection). Unfrotunately, when I attempt to set up my application to have multiple row selection my application does everything but select what I need it to.
When I left click, if there isn't anything else selected, it will select that first item, after that though, it won't change the selection in anyway unless I hold control or shift while trying to select. While holding control I have to double click to get the selection to change, admittedly the ctrl + double click has the expected behavior a ctrl+single click would have but that isn't the behavior that I need. For the shift click instead of selecting all of the rows between the last row and the newly clicked row the application simply selects the first row...
I've attached my code, a controller, a view, and a static class that I am using to do most of gridModel instantiation (I had this issue before I moved the code there it used to be in my controller, then in my view and then I decided I didn't like either of those so I moved it to this static class), but I don't think anything but lines 27-34 in CustomGridModel is effecting it. I do have other features that I am adding to the gridModel as you can see but I tried disabling all of them and got the same result.
Any ideas? Or do you need any more information?
Thanks in advance!
Hello Douglas,
I prepared a MVC sample, where the grid is created through the GridModel, to test multiple selection. It works correctly on my side. What is the product version that you're currently using? Did you get any errors on the client, when you attempt to select multiple rows? Please refer to the attached sample and feel free to modify it if it doesn't reproduce correctly the scenario of your issue, then send it back to me.
If you have any further questions, feel free to contact me.
Regards,Tsanna
Thanks for the quick response and sample application.
Unfortunately, this isn't compatible with IE 11 which I thought was interesting which is currently the supported browser that my company uses for all web based endeavors. I debugged it in firefox and that worked fine. Apparently this isn't a new issue... http://www.infragistics.com/community/forums/t/92128.aspx
But! Onto questions!
I'm currently being lazy and haven't implemented the repository pattern yet for this application. Would that potentially effect me?
My initial datasource is just an empty list. (It will be eventually be a large collection but for now... it remains empty) With new entries being added to the list via signalR and nServiceBus Would this potentially effect me?
I also have disabled all user based editing so that rows can only be edited or added via programmatic triggers. No user interaction allowed. The rows are only updated by the data coming through signalR alone. That means that I have to autocommit my changes. So you guessed it... Would that potentially break how the selection works?
I'll see if I can modify this code at some point here to more closely match mine but I might not get to that until tomorrow.
If you don't know the answers to the above. No worries but I would appreciate any further insights you might have.
Thank you for your help,
Douglas
Apparently 10025 kb is over 10 MB...
So I am doing three sets of packages instead of two. here is the second
Packages Part 3
God I hope this is the last one
If this doesn't work or if you have any issues let me know and we can figure something out. Sorry I had to resort to this workaround of getting you files but the file size limit and not being able to drop stuff onto one drive or github or something similar do to company restrictions makes this difficult. (Don't worry I am allowed to send you these files)
Thanks
Doug
There is no need to send me the packages, since the NuGet restores them. The problem was that your primaryKey was not correct, hence primaryKeys values were not correct as well. Please note that primaryKey columns should have unique values, otherwise the grid features (like Selection) won't work properly. Attached is your sample with some modifications for your reference.
If I can provide you with further assistance, please let me know.
Hi Tsanna,
That fixed the issue I had been working on but I found out today that there is another more subtle issue that still exists.
In that example application, if you enable multiselect AND updating then select a row, and then click that row again, while in internet explorer (no error occurs in firefox) the application throws a fatal exception. It can't find a given record or property. As if it is doing a search for the row to unselect it.
My company only supports internet explorer for our web applications so this is a relatively big issue. Could you take a second look at that example application and see if you can replicate this issue by uncommenting lines 39-45 and line 49 in CustomGridModel.CS to activate the gridUpdating feature?
I haven't seen anything like it in known issues or limitations and I didn't realize at first that it still was applicable to the application you had sent me I thought it was a new problem I had created in my more complex version of the app but I tested it and the problem is in both places.
Any help would be appreciated,
Thanks,
Here is the error: 0x800a139e - JavaScript runtime error: The specified record or property was not found. Verify the criteria for your search and adjust them if necessary.
recordOrpropertyNotFoundException
It fails in my version of IE: 11.0.9600.18349
and doesn't in firefox V46
I am also facing this issue in my igGrid. I am not even using multi select into the grid. When I add the record into the grid, sometimes it generates this error. It is not generated every time, it is random. And, I am facing this issue in Chrome as well.