Dear Telerik,
I have the fallowing problem reported by my QA team on a page with moltipale comboboxs the value of the combo shows up as the combo syncs with server data the it disappears and is synced.
As I was checking this I see that the fields .value() and text(). of the kendo ui ComboBox have this strange behavior. They sync with each other. When I change the text in the combo box value is set to the text current value. This can be seen an the kendo ui demo basic usage , by writing "Item 4" in the combo and the value() and the text() of the combo will both be "Item 4". This could cause problem if the data arrived at the server when a code is expected. In my view .text should not be synced to the .value. If there selection of the value.
here is a disction of this :
http://stackoverflow.com/questions/18870746/avoid-combobox-sending-values-that-arent-on-the-list
Yours,
Ariel
Hello,
Please give me an idea how to do multiple nested subgrids. please see the attachment for more details.
I have a main grid (one row), a subgrid1 (9 rows) and below the subgrid1 with 5 hyperlinks.
If a user clink on a hyperlink then a subgrid2 will show the data. If the user click on the different hyperlink then the subgrid2 will be updated.
My question:
how to add 5 hyperlinks below subgrid1.
how to show subgrid2 when a user click on a hyperlink.
Thank you!!!
Hi,
I have one dropdownlist and one grid in my form.I fill grid from dropdownlist change event with script.I initialize the data from page load in the controller.I create dynamic grid with columns.In dropdownlist item support has diffrent column count and names think about like table.When I selected the item on dropdownlist the grid data will come but columns number will not change how can I change the columns from selected item?.I get the columns and data from controller.Data will come but columns will not come and change.And also the view page(.cshtml) not trigger when grid read the data.How can I solve this issue changing the columns selecting from dropdownlist
And my view page source codes is here.
Can any one help?
<
div
id
=
"DropDown"
>
@(Html.Kendo().DropDownList()
.Name("DropDownList")
.HtmlAttributes(new { style = "width: 350px" })
.DataTextField("text")
.DataValueField("value")
.Filter("startswith")
.OptionLabel("--SELECT--")
.DataSource(source =>
{
source.Custom()
.Type("aspnetmvc-ajax")
.Transport(transport =>
{
transport.Read("CodesDropDownList", "GlobalSettings");
})
.Schema(schema =>
{
schema.Data("Data")
.Total("Total");
});
})
.Events(e =>
{
e.Change("onChange");
})
)
</
div
>
<
div
id
=
"DynmicGrid"
>
@(Html.Kendo().Grid<
dynamic
>()
.Name("grid")
.AutoBind(false)
.Columns(columns =>
{
foreach (DataColumn column in Model.Columns)
{
var c = columns.Bound(column.ColumnName);
c.Title(column.Caption);
}
})
.Pageable(pager => pager.Refresh(true))
.Sortable()
.ToolBar(toolbar => toolbar.Create())
.Editable(ed => ed.Mode(GridEditMode.PopUp))
.Selectable(selectable =>
{
selectable.Mode(GridSelectionMode.Single);
selectable.Type(GridSelectionType.Row);
})
.Navigatable()
.DataSource(dataSource => dataSource
.Ajax()
.Model(model =>
{
var id = Model.PrimaryKey[0];
foreach (var keyColumn in Model.PrimaryKey)
{
var field = model.Field(keyColumn.ColumnName, keyColumn.DataType);
field.Editable(false);
}
model.Id(id.ColumnName);
})
.Read(read => read.Action("Read", "GlobalSettings").Data("additionalData"))
.Update(update => update.Action("UpdateRecordINGrid", "GlobalSettings"))
.Create(read => read.Action("CreateNewRowDataINGrid", "GlobalSettings").Data("additionalData"))
)
.Events(e =>
{
})
)
</
div
>
var
ddlItem;
function
onChange() {
ddlItem =
this
.value();
var
grid = $(
"#grid"
).data(
"kendoGrid"
);
grid.dataSource.read();
}
function
additionalData(e) {
return
{ item: ddlItem }
}
I am using rad tree view in my project. Where i need to get all the child node details when i select the parent node alone without expanding for the first time.
i found in forum that GetItemByPath() (http://docs.telerik.com/devtools/wpf/controls/radtreeview/how-to/get-item-by-path.html) is the only option.
Please guide me on this..
Thanks in advance..
Hi,
Is it possible to have cascaded dropdown list in batch edit? If yes, can you provide us a sample?
Thanks,
I am using a grid that is inside a content pane for a single page application website. My problem is that once I put the grid inside the Dojo ExpandoPane with splitter:true for resizing capability, I lose the sticky column headers when I scroll down.
Here's the HTML I'm using for the grid inside the ExpandoPane... (grid-container is inside a BorderContainer)
<div id="grid-container" dojotype="dojox.layout.ExpandoPane" data-dojo-props="region:'bottom',splitter:true" class="resultsContainer">
<div id="grid" class="k-content"></div>
</div>
And the css...
#grid-container {
padding: 0;
height: 40%;
}
#grid {
height: auto;
width: 100%;
display: inline-table;
}
And populating the grid...
$("#grid").kendoGrid({
columns: columns,
navigatable: true,
dataSource: results
});
I can get a grid that works as intended if I fix the grid height to 100% as shown below, but I lose the nice resize capability of the ExpandoPane, plus you have to scroll all the way to the right of the grid for the vertical scrollbar.
#grid {
height: 100%;
width: 100%;
display: inline-table;
}
So is there any way I can have the resize functionality while retaining the sticky column headers?
Hi,
I'm trying to implement an imagebrowser and I want to have one controller for several editors with imageBrowser. but I want to use different root in each one.
how can I make the "path" send a prefix with the file name?
or how can I send more data with the read request (or any other request the imageBrowser allow)?
Thanks