Telerik Forums
UI for ASP.NET MVC Forum
3 answers
166 views
Problem 1:
I can't seem to get a grid in a Editor Template to work in a popup editor window of a grid.  I have attached a sample of this issue.  If you select the Grid Editor Menu Item you will see that it crashes.  If you remove the Html.Partial statement from the TopLevelItem Editor, you will see that it works.  To demostrate that the template works fine, I added a Direct Edit Menu ITem that calls the Template which led me to my second problem....

Problem 2:
If you use the Direct Edit menu item at first glance everything looks ok.  If you pay close attention to the dropdown for ItemType (not the one in the grid, that is itemtype2 and works fine), it doesn't select the correct default value.  Upon forther inspection, it doesn't seem to behave in the same manner as when inside the Grid Popup editor.  If you post it back, only the ID is trying to be return (inspect the Request object's Forms collection) but not the entire model.  The Item Type is null.  Again, this works fine inside a Grid Popup.

My intial thought was to host the editor in my own window using custom actions on the grid, but then I ran into problem 2.

Any thoughts on this?  Is this a bug?  Unintended use?
Vladimir Iliev
Telerik team
 answered on 12 Mar 2013
1 answer
167 views
i 've used kendodropdownlist to asp.net page having master page but it's not working .
but same dropdownlist working on without master page.
please help me out .
Daniel
Telerik team
 answered on 12 Mar 2013
1 answer
133 views

Hi,

We are facing an issue with an editor template  being used in a grid column. The editor template is supposed to show the phases of treatment of a patient in an application which we are building.

The first time when the page loads, the grid shows correctly with patent id in the first column and the editor template showing 'pre - treatment' in the second column (as a dropdown list).

However, when we try to add a new row to the grid with a button click, in addition to a new row being added, it is observed that in the initial row as described above, the editor template changes from dropdown list to textbox, with the value (pre - treatment) being lost.

We are attaching a code sample for your kind reference.

Rosen
Telerik team
 answered on 12 Mar 2013
1 answer
354 views
I have a minimal grid embedded in an .ascx file, which is embedded in a .aspx file.

<div class="grid-wrapper">
    <div id="equipment-data">
        <!-- grid will appear here -->
    </div>
</div>

$('#equipment-data').kendoGrid({
    toolbar: ["create", "save", "cancel"],
 
    columns: [
        { field: "ItemName", title: "Equipment", width: 260 },
        { field: "SerialNumber", title: "Unit #" }
    ]
});

Clicking on the 'add record', 'save', or 'cancel', causes the page to scroll to top, and the correct action is never taken. This code work in a minimal setup in a new project. The problem is this is a legacy project, and I need to figure out why I can't get the grid to work in this existing page.

The javascript console does not show any errors, even when the buttons are clicked. There seems to be no indication of why it isn't working.

EDIT: I attached attached to the click event breakpoint in chrome, and in my minimal example that works, the first handler for the click of the button is the jQuery click handler which then dispatches to a kendo handler. On my project that doesn't work, the jQuery handler is never called. Yet I recieve no errors about jQuery missing, and indeed the kendo grid renders and sorts fine (which I thought it would not do without jQuery. I am using the jQuery  1.8.3.

Thanks,
~S
Shea
Top achievements
Rank 1
 answered on 12 Mar 2013
1 answer
3.4K+ views
Hi,

This must be something already discussed, but I couldn't find a solution.

We need to implement a Reset button on the view with KendoGrid, which needs to clear/empty the grid (datasource). It's only clearing the UI element, but not deleting the record.

Tried jquery empty(), but doesn't look like its supported. That may be the option to use, but couldn't find any so far...

$("#gridId").data("kendoGrid").dataSource.empty();

Want to see if anyone had such scenario and have had any luck implementing the functionality?

Input on any appropriate approach is much appreciated.

Thanks,
Balwant
Balwant
Top achievements
Rank 1
 answered on 11 Mar 2013
3 answers
562 views
This question arose while configuring grids, but it's a more general question, which is why I'm posting it here. Here's the situation.

I was trying to set up a grid hierarchy using server binding and couldn't get the subgrid data to show up. Then I switched to using curly braces, @{ ... }, to surround the grid instead of parentheses, @( ... ), and it worked beautifully. So, here's the question: What is the difference between the syntax for the two grids below? (They both result in the same output.)

Grid with Parentheses:
@(Html.Kendo().Grid(Model)   
    .Name("JobCodesGrid")
    .Columns(columns =>
    {
        columns.Bound(m => m.RegionID).Title("Region");
        columns.Bound(m => m.JobCodeText).Title("Job Code");
    })
)

Grid with Curly Braces:
@{Html.Kendo().Grid(Model)   
    .Name("JobCodesGridBraced")
    .Columns(columns =>
    {
        columns.Bound(m => m.RegionID).Title("Region");
        columns.Bound(m => m.JobCodeText).Title("Job Code");
    })
    .Render();
}

Why is it better, if that's true, to use curly braces for a hierarchy scenario (with subgrid in DetailTemplate) than parentheses?

Thanks for any help!

Ken

Dimiter Madjarov
Telerik team
 answered on 11 Mar 2013
1 answer
1.2K+ views
I am using Html.Kendo().DatePicker()
I have a requirement to disable the previous dates (i.e dates > today)

Is it posisble, if so how? Also what if the model contains a value > today

Is it possible to achieve both with Kendo datePicker
Dimiter Madjarov
Telerik team
 answered on 11 Mar 2013
1 answer
436 views
Hi

When using the MVC wrappers to bind a treeview to a model I have certain nodes that I don't want to have enabled.  When I set the appropriate property the node is given the correct "k-state-disabled" style. However the associated checkbox with the node remains enabled and is still selectable by the user.

Is this expected behaviour and if so is there a method that I could use to disable the checkbox.

Thanks
Alex Gyoshev
Telerik team
 answered on 11 Mar 2013
1 answer
134 views
Hi,

I want to create an asp.net MVC page where I want to display image and give next and previous buttons to display the next and previous images similar to viewing a photo album. I get these images as byte array from WCF call, can any one please point met to a right telerik control for this and really appretiate if you can please give a code sample.

Thanks in Advance
SA
Sebastian
Telerik team
 answered on 11 Mar 2013
11 answers
200 views
Hi,

I've got an issue about the display of a grid in a splitter.

If I add a grid in my display, everything is broken ... Any idea ? :(
Daniel
Top achievements
Rank 1
 answered on 11 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?