I have a Grid with a command button that open a Dialog. This dialog has a Tabstrip with each tab loading content from a controller that returns a view. The tabstrip is built using the ASP.Net MVC Html wrapper.
<p>@(Html.Kendo().Dialog()<br> .Name("viewDetailsDialog")<br> .Title("Details")<br> .Content(<br> Html.Kendo().TabStrip()<br> .Name("viewDetailsTabstrip")<br> .Items(tabstrip => {<br> tabstrip.Add().Text("Tab 1")<br> .HtmlAttributes(new { @class= "tab_bar" })<br> .Selected(true)<br> .LoadContentFrom("Tab1Content", "MyController");<br><br> tabstrip.Add().Text("Tab 2")<br> .HtmlAttributes(new { @class = "tab_bar" })<br> .Selected(false)<br> .LoadContentFrom("Tab2Content", "");<br><br> )<br> .ToHtmlString()<br> )<br> .Closable(true)<br> .Width(900)<br> .Height(600)<br> .Modal(true)<br> .Visible(false)</p><p></p><p></p>
The dialog is opened via a JS function that's called by the Grid's Custom Command button. The details that need to be displayed in each tab in the dialog is unique to the row.
How do I modify the LoadContentFrom URL and pass query string parameters that are picked by the Tab1Content method on MyController?

Hi All.
I am new to using the Telerik controls. I am exploring using the Grid Control and have figured out how to codoe popup window to create a new record.
The following code works below for the first Create button on the toolbar. On the grid toolbar - I want to have two "Create" buttons (see code below). I want both buttons to implement "Create" but displays a different custom popup form for each button.
Is there a way to implement a conditional "Create"? What is the best approach to implement this functionality?
Thank you,
Debby
<div id="divGridUser">
@(Html.Kendo().Grid(Model)
.Name("GridTest")
.Columns(columns =>
{
columns.Bound(p => p.UserId);
columns.Bound(p => p.UserType);
columns.Bound(p => p.UserName).Title("User Name");
columns.Bound(p => p.Provider).Title("Provider");
})
.ToolBar(toolbar =>
{
toolbar.Create().Text("Add Provider To Role").HtmlAttributes(new { id = "Provider"});
toolbar.Create().Text("Add Inside User Role");
})
.Editable(et => et.Mode(GridEditMode.PopUp).TemplateName("Users_Command"))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Model(model => model.Id(p=>p.UserId))
.Read(read => read.Action("UsersCommand_Read", "Popup"))
.Create(upd => upd.Action("UsersCommand_Create", "Popup"))
)
.HtmlAttributes(new { style = "height:550px;" })
.Pageable(pageagble => pageagble.Input(true).Numeric(false))
.Sortable()
.Filterable()
.Scrollable(scr => scr.Endless(true))
)
</div>
Hello,
I am facing an issue with the TabStrip (Q2 2015). Here is the declaration:
01.@(Html.Kendo().TabStrip()02. .Name("documents")03. .Scrollable(false)04. .Items(tabstrip =>05. {06.tabstrip.Add().Text("Documents")07. .Selected(true)08. .LoadContentFrom("LoadDocumentsTabView", "Documents");09. 10. tabstrip.Add().Text("Marketing Material")11. .LoadContentFrom("LoadMarketingMaterialTabView", "Documents", new { area = "Documents");12. 13.tabstrip.Add().Text("Contracts Agreements")14. .LoadContentFrom("LoadContractsAgreementsTabView", "Documents");15. })16. )Let's focus on the first tab, which is "Documents". This is the method called on the controller:
1.public PartialViewResult LoadDocumentsTabView()2.{3. return PartialView("~/Areas/Documents/Views/Tabs/_Documents.cshtml");4.}The problem with this is that the TabString doesn't show anything. When I set breakpoints in my controllers, everything is called as expected.
Am I missing a configuration somewhere?
Thanks for any help.

Hi,
I'm very new to kendo and I've been having issues finding some documentation for this. Basically I have the following grid:
@(Html.Kendo().Grid<SylectusTL.Models.User.User>()
.Name("UserList")
.Columns(columns =>
{
columns.Bound(c => c.user_name).Title("User Name");
columns.Bound(c => c.full_name).Title("Name");
columns.Bound(c => c.main_phone).Title("Phone");
columns.Bound(c => c.email).Title("E-Mail");
columns.Bound(c => c.admin).Title("Admin");
columns.Bound(c => c.active).Title("Active");
columns.Bound(c => c.last_login).Title("Last Login").Format("{0:MM/dd/yyyy}");
})
.Pageable(pageable => pageable
.Refresh(true)
.PageSizes(new int[] { 10, 20, 50 })
.ButtonCount(5))
.Sortable()
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Users_Read", "Account"))
)
)
What I would like to do is make the user name a link that calls my controller and passes the user id to it. I'm having issues finding a way to use the models user_name parameter for the link text and the models user_id parameter in the url.

See attached, how do I prevent these from being generated?
The only thing in each folder is "Kendo.Mvc.resources.dll" and I have no need for localization in this project

I found my self constructing a complex Worksheet server side in C#. Most of the spreadsheet methods are not chainable, as I had become accustomed to in my experience with LINQ processing and client side javascript. I'm paying it forward with this code, some simple CellSelection extension methods that made constructing my worksheets easier. The methods are not comprehensive -- only made the ones I needed. For example:
I'm working a project which will allow users to update several database tables with an Excel file. Using the Kendo Spreadsheet widget, I can import the file's information into the Kendo Spreadsheet widget, or I can create one with information bound to the tables I want to update and export that data, but I've yet to find a solution that will accomplish both.
Ideally, I'd like the user to be able to export a .xlsx file from the bound tables, edit that file to create new entries, and them import it back into the widget to view and save to the database. This would allow existing controllers to be utilized and provide a smooth one stop interface for the user.
Hi,
I'm trying to refresh tooltip in grid but it's not working. Here's what I'm doing:
I have an MVC Grid and I initialize the tooltip like this:
var tooltip = $("#classesAvailableGrid").kendoTooltip({
filter: ".comment",
position: "top",
width: 180,
content: function (e) {
var dataItem = $('#classesAvailableGrid').data('kendoGrid').dataItem(e.target.closest('tr'));
var id = dataItem["Id"];
var text = $('#com-' + id).data('tooltiptext');
return text;
}
}).data("tooltiptext");
This works fine.
The functionality I'm seeking is when I click the cell where I have the tooltip I prompt the user with a popup input field where he can update the tooltip message. On success I save the new message to database but then I want to update the tooltip as well. I am able to update the data attribute but the actual message that is displayed on hover is still the same.
var request = $.ajax({
url: '/Controller/ActionMethod',
type: 'POST',
data: JSON.stringify(msg),
contentType: 'application/json; charset=utf-8'
}).success(function (data) {
if (0 >= data.error.length) {
if (data.icon) {
if (el.find('i').length) {
el.find('i').attr('data-tooltiptext', inputValue);
/*console.log(selectedTooltip);
selectedTooltip.tooltip.options.content = inputValue;
selectedTooltip.tooltip.refresh();*/
//$("#classesAvailableGrid").data('tooltiptext').refresh();
}
else {
var i = '<i id="com-' + el.data('rid') + '" class="fa fa-comment comment" data-tooltiptext="' + inputValue + '" aria-hidden="true"></i>';
el.find('div').append(i);
}
}
else {
el.find('div').empty();
}
swal({
title: data.title,
text: data.success,
type: "success",
timer: 1000,
});
}
else {
swal(data.title, data.error, "error");
}
}).error(function (data) {
});
I have tried several things but none have worked. Any help would be appreciated!
Thank you,
Jokull
