We are evaluating the trial version of the Kendo MVC extensions and determining if we should move forward and purchase or not.
I'm trying a simple example of a grid of phone numbers and their type (work, home, cell). We are using pop-up editing, and using an editor template for our phone view model. The problem we are experiencing is that if the user doesn't change the default value that is displayed in a Kendo DropDownList within the pop-up, the value does not get posted back to the server. If I use the exact same editor template with the Kendo Window rather than the Grid pop-up, the default value of the DropDownList will be posted back.
Is this a bug with the Kendo Grid pop-up editor?
I'm trying a simple example of a grid of phone numbers and their type (work, home, cell). We are using pop-up editing, and using an editor template for our phone view model. The problem we are experiencing is that if the user doesn't change the default value that is displayed in a Kendo DropDownList within the pop-up, the value does not get posted back to the server. If I use the exact same editor template with the Kendo Window rather than the Grid pop-up, the default value of the DropDownList will be posted back.
Is this a bug with the Kendo Grid pop-up editor?
7 Answers, 1 is accepted
0
Dave
Top achievements
Rank 1
answered on 14 Aug 2012, 03:48 PM
I'm having similar issues, but only for inserts (where the text is submitted, not the value). Edits work for me. One thing I made sure of was to add the OptionLabel property to the DropDownList; I'm not sure if it's just this, or this in combination with my metadata that has helped. Eg:
@(Html.Kendo().DropDownList() .Name("DefaultPoolId") .OptionLabel("select pool ...") .DataValueField("Id") .DataTextField("Name")
0
G_P
Top achievements
Rank 1
answered on 15 Aug 2012, 01:26 PM
I have to admit that it is disconcerting to see the number of threads in the Kendo forums with no replies whatsoever from the Kendo/Telerik team. This definitely gives me pause about recommending the purchase, if we are totally on our own for working through issues.
0
Dave
Top achievements
Rank 1
answered on 15 Aug 2012, 01:28 PM
Agreed, although my big grid issue question I only reported yesterday, so I can't really complain about that one yet.. But I don't have time to wait for an answer, am going back to the client components and the manual edit/insert method.
0
Hello,
Atanas Korchev
the Telerik team
I would like to jump in the discussion by saying that Telerik does not guarantee replies to forum posts. The Kendo forums are a community resource.
Although we reply occasionally the forums are not the official channel to receive support. The trial license gives access to the premium support services. It gives you 5 support tickets which will be addressed by Telerik staff.
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
G_P
Top achievements
Rank 1
answered on 17 Aug 2012, 01:49 PM
I added a support ticket yesterday. It says there is a 5 day turnaround guarantee, is that just for the trial or is it the same for the purchased product support?
0
Hello,
Atanas Korchev
the Telerik team
The trial support comes with 72 hours response time which is three days. We usually reply earlier.
You can check the support options page which explains in detail what the response times are.
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
G_P
Top achievements
Rank 1
answered on 24 Aug 2012, 02:22 PM
OK, after opening a support ticket and a bit of back-and-forth, I have received a reason for this and the fix.
I am posting this here to help those who may run into the same issue since there is no feedback loop to get the info to the public once the discussion moves to the support tickets. This is a big problem in my view that should be addressed, as people will continue to run into the same issues, possibly not find solutions in the forums, and cause Telerik to re-answer the same support ticket questions.
So, for our example of a grid of Phone numbers and their type (home, work, cell, etc.) in our grid declaration we were not defining what the default value for the phone type should be, so it was null and not getting posted back (even though the editor template displayed in the pop-up had a dropdownlist with a default selected value).
The code that fixed it:
.DataSource(dataSource => dataSource
.Ajax()
.Model(model =>
{
model.Id(p => p.Id);
model.Field(p => p.Type).DefaultValue("Home"); <-- this line was what we needed
})
I am posting this here to help those who may run into the same issue since there is no feedback loop to get the info to the public once the discussion moves to the support tickets. This is a big problem in my view that should be addressed, as people will continue to run into the same issues, possibly not find solutions in the forums, and cause Telerik to re-answer the same support ticket questions.
So, for our example of a grid of Phone numbers and their type (home, work, cell, etc.) in our grid declaration we were not defining what the default value for the phone type should be, so it was null and not getting posted back (even though the editor template displayed in the pop-up had a dropdownlist with a default selected value).
The code that fixed it:
.DataSource(dataSource => dataSource
.Ajax()
.Model(model =>
{
model.Id(p => p.Id);
model.Field(p => p.Type).DefaultValue("Home"); <-- this line was what we needed
})