This is a migrated thread and some comments may be shown as answers.

Grid GridEditMode.Popup bugs

4 Answers 281 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 13 Jun 2012, 12:31 AM
Hi guys,

A few things things I've noticed in the demo asp.net mvc kendo ui solution with the grid.

1. When using ajax as the communication method and GridEditMode.Popup the window that pop's up will not close.

2. When using server editing as the communication method and  GridEditMode.Popup the popup window always puts itself below the grid rather than centering itself on the screen as the ajax one does. I also have it as being selectable and the row selected is deselected when it posts back and popups up the window which makes it hard to know which row i'm editing.

3. I've also had no success getting the editing in either of these grid editing modes to have a datetimepicker / datetime property on my view model that is a nullable datetime recognised as being nullable. They keep insisting to have an entry so any help there also would be awesome. I've put in a EditorTemplate specifically for the popup window and that's showing fine its just not realising that its ok not to have a datetime in the nullable property.

4. Whilst I"m here.. I also put a html input button in the grid popup template that is called "Now" and using javascript it puts the current datetime into the datetime textbox when pressed. In the ajax version of the grid this works the first time the popup window is used but does not work on subsequent editing. When used with the server grid version it works every time. I'd much rather use the ajax one as its quicker, and more user friendly but at this stage its not working as expected so causing me (see point 1 and this point.)

All of this behaviour except point 4 can be seen in the demo solution you provide, just adjust the properties as described above, but you can easily inc the LastSupply datetime in the demo so you have a datetime in the grid.

Cheers,

Mark



4 Answers, 1 is accepted

Sort by
0
Mike
Top achievements
Rank 2
answered on 12 Jul 2012, 08:18 PM
I would also like to add that if I decorate a property on my view model with [Display(AutoGenerateField = false)], the property will still show up in the Add and Edit popup windows for a grid.
0
G_P
Top achievements
Rank 1
answered on 02 Aug 2012, 08:24 PM
We are encountering the [Display(AutoGenerateField = false)] issue as well. Any updates on this or a workaround?
0
G_P
Top achievements
Rank 1
answered on 03 Aug 2012, 01:53 PM
OK - thanks to Chad's post here: http://www.kendoui.com/forums/mvc/grid/grideditmode-popup-displaying-fields-that-it-shouldn-t-be.aspx 

This works:

[ScaffoldColumn(false)] 

For the record, the following do NOT work:

[Display(AutoGenerateField = false)]
[UIHint("Hidden")]
[HiddenInput(DisplayValue = false)]
0
virak
Top achievements
Rank 1
answered on 15 Aug 2012, 04:01 AM
Hi everyone,

I have found an issue regarding to the GridEditMode.Popup. After adding a new record to the grid and later click on Edit Button of the new record row then the popup will show normally, but if I click on Cancel or Close button on the Popup then the new record loss from the Grid.

Can anyone tell me how to solve this problem?

Thanks.
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Mike
Top achievements
Rank 2
G_P
Top achievements
Rank 1
virak
Top achievements
Rank 1
Share this question
or