This is a migrated thread and some comments may be shown as answers.
How come i can't see command buttons?
5 Answers 47 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kyle Pike
Top achievements
Rank 1
Kyle Pike asked on 10 Aug 2010, 03:51 PM
Can someone PLEASE Tell me why the damn command buttons aren't rendering?

I have searched the forums high and low, and the documentation (ha!) and the uber-informative "demos"

I still can't figure out

1. why the command button column does not render - NOTHING in the documentation sheds any light on this
2. how can one specify which method gets executed when they click the command button - i have several grids under one controller so
public ActionResult SelectionServerSide(string id) isn't going to work

here is the code of my grid. nothing revolutionary - just doesn't work

Html.Telerik().Grid(Model)
        .Name("Grid")
        .Columns(columns =>
        {
            columns.Command(commands => commands.Select()).Title("Select");
            columns.Bound(o => o.ProviderRecruitment_ID).Width(30).Title("ID");
            columns.Bound(o => o.Status).Width(120).Title("Recruit Status");
            columns.Bound(o => o.Recruiter).Width(80).Title("Recruiter");
            columns.Bound(o => o.First_Name).Width(120).Title("First Name");
            columns.Bound(o => o.Last_Name).Width(120).Title("Last Name");
        })
        .Scrollable(scrolling => scrolling.Enabled(true))
        .Sortable(sorting => sorting.Enabled(true))
        .Pageable(paging => paging.Enabled(true))
        .Filterable(filtering => filtering.Enabled(true))
        .Footer(true)
        .Editable(settings => settings.Enabled(true))
        //.ToolBar(commands => commands.Insert())
        .DataKeys(keys => keys.Add(c => c.ProviderRecruitment_ID))





RAD ceases to be RAPID when you have to spend days combing forums to get basic functionality



5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 11 Aug 2010, 08:28 AM
Hi Kyle Pike,

Perhaps you have missed the following examples:
Server selection
Server editing
Those examples show how to configure the grid.

In your case you have defined only a select command which appears fine (see attached project). In order to add edit and delete commands you need to specify them in the Command column:

columns.Command(commands =>
{
    commands.Edit();
    commands.Delete();
}).Title("Select");


Server editing configuration is covered in the server editing help topic.

I hope this helps,
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
Kyle Pike
Top achievements
Rank 1
answered on 11 Aug 2010, 01:50 PM
I have read both of those topics, however, you didn't answer my question.

What is causing the code i posted to not render the Select command button - or the entire command column as it may be?

How do i remedy this obviously undocumented "feature"?

thank you.
0
Atanas Korchev
Telerik team
answered on 11 Aug 2010, 01:52 PM
Hello Kyle Pike,

I've sent you a sample project based on your code. The 'Select' command is visible in it. Did you try that project? Does the Select button appear in the sample project? What is different in your case?

Sincerely yours,
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
Kyle Pike
Top achievements
Rank 1
answered on 11 Aug 2010, 02:05 PM
Sample project works fine, and i can't determine any differences between the two.

What causes the column to not render?
0
Atanas Korchev
Telerik team
answered on 11 Aug 2010, 02:16 PM
Hi Kyle Pike,

It can be due to invalid HTML (mixed or unclosed tags) as well as some CSS conflict between the grid and your web application's CSS file(s). I cannot be precise without reproducing the problem locally. If possible you can provide a live url. If not you could open a support ticket and attach a running project so I can debug it.

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
Kyle Pike
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Kyle Pike
Top achievements
Rank 1
Share this question
or