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

[Solved] Showing dropdown on AJAX Editing

5 Answers 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kapil Koli
Top achievements
Rank 1
Kapil Koli asked on 04 Mar 2010, 02:09 PM
Hi,
I am using Q1 2010 Telerik extensions for MVC.
I have used telerik grid with ajax editing in my application.
I have couple of queries as follows:
  1.     On Edit click, I want to show drop down in one column.
  2.     Second thing is I want to keep one column as it is even if I click on Edit. That means I don't want the text box in a particular column on Edit button click.

How can be this achieved?

Thanks in advance,
Kapil

5 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 04 Mar 2010, 02:18 PM
Hi Kapil Koli,

Check the following forum threads:
http://www.telerik.com/community/forums/aspnet-mvc/grid/using-a-dropdown-list-when-editing-a-grid.aspx
http://www.telerik.com/community/forums/aspnet-mvc/grid/how-to-avoid-editing-pk.aspx
Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Kapil Koli
Top achievements
Rank 1
answered on 05 Mar 2010, 06:52 AM
I visited the link below, as you have said.
http://www.telerik.com/community/forums/aspnet-mvc/grid/using-a-dropdown-list-when-editing-a-grid.aspx


But it won't solve my problem as it's not supposed with Q1 2010.
Am I right?
Second thing, where are the changes made to show the drop down?
Means How do I know that I have to show drop down for a column or a text box?
Rather where do I need to make changes for showing drop down list for editing?

regards,
Kapil
0
Atanas Korchev
Telerik team
answered on 05 Mar 2010, 08:10 AM
Hello Kapil Koli,

There is a sample project attached in that forum thread. Please download it and review the code. Check the
Models folder and Order partial class. Also check ~/Views/Shared/EditorTemplates. For more info about ASP.NET MVC 2.0 templates check this series of blog posts.

All the best,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Kapil Koli
Top achievements
Rank 1
answered on 05 Mar 2010, 08:56 AM
Thank you Atanas.
But unfortunately, I couldn't make my question clear.
Actually I had downloaded the sample and had explored everything but failed to know that -
from where do our Ajax editing come to know that it has to show drop down for countries and text box for ship address?

Example is perfect for my requirement but I am not understanding - where to make changes in my code to show the drop down list while editing?

Appreciating your response.

Regards,
Kapil
0
Atanas Korchev
Telerik team
answered on 05 Mar 2010, 11:41 AM
Hi Kapil Koli,

This is how ASP.NET MVC 2 templates work. Please check the aforementioned blog posts by Brad Wilson. He explains nicely how to work with templates.

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Kapil Koli
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Kapil Koli
Top achievements
Rank 1
Share this question
or