Telerik Forums
UI for ASP.NET MVC Forum
1 answer
183 views
I just updated my solution to the latest release of Kendo and the MVC wrappers. Everything is working exactly as it did before except the tool tip which is now throwing the following error. Does anyone know why this has started and what the solution is? Included first is my code, and then the error thrown.

<div id="quick-menu">
    <ul>
        <li id="qm-progress">
            <a href="#">@this.GetTermProvider().GetValue("PROGRESS_LEGEND")</a>
        </li>
        <li id="qm-status">
            <a href="#">@this.GetTermProvider().GetValue("STATUS_LEGEND")</a>
        </li>
        <li id="qm-message">
            <a href="#">@this.GetTermProvider().GetValue("MESSAGES")</a>
        </li>
    </ul>
</div>

<script id="qm-progress-template" type="text/x-kendo-template">
    @Html.Action("QuickMenuProgress", "Shared")
</script>


@(Html.Kendo().Tooltip()
      .For("#qm-progress")
      .Filter("a")        
      .ContentTemplateId("qm-progress-template")
      .Position(TooltipPosition.Top)
      .Deferred()
      .Width(250)
      .Height(100)
)


@(Html.Kendo().Tooltip()
      .For("#qm-status")
      .Filter("a")        
      .ContentTemplateId("qm-status-template")
      .Position(TooltipPosition.Top)
      .Deferred()
      .Width(250)
      .Height(100)
)

<script id="qm-status-template" type="text/x-kendo-template">
    @Html.Action("QuickMenuStatus", "Shared")
</script>

------------------------------

Server Error in '/' Application.Key cannot be null.
Parameter name: keyDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ArgumentNullException: Key cannot be null.
Parameter name: key

Source Error: 

Line 19:
Line 20:
Line 21: @(Html.Kendo().Tooltip()
Line 22: .For("#qm-progress")
Line 23: .Filter("a")
Source File: c:\EPM\v6.0\Source\Presentation\Web\Views\Shared\QuickMenu.cshtml    Line: 21 

Stack Trace: 

[ArgumentNullException: Key cannot be null.
Parameter name: key]
System.Collections.Hashtable.ContainsKey(Object key) +149
System.Collections.Hashtable.Contains(Object key) +38
System.Collections.Specialized.OrderedDictionary.set_Item(Object key, Object value) +136
Kendo.Mvc.UI.WidgetBase.AppendScriptToContext(String script) +263
Kendo.Mvc.UI.WidgetBase.WriteDeferredScriptInitialization() +110
Kendo.Mvc.UI.WidgetBase.WriteHtml(HtmlTextWriter writer) +82
Kendo.Mvc.UI.WidgetBase.ToHtmlString() +115
Kendo.Mvc.UI.Fluent.TooltipBuilder.ToHtmlString() +52
System.Web.HttpUtility.HtmlEncode(Object value) +91
System.Web.WebPages.WebPageExecutingBase.WriteTo(TextWriter writer, Object content) +48
System.Web.WebPages.WebPageBase.Write(Object value) +53
ASP._Page_Views_Shared_QuickMenu_cshtml.Execute() in c:\EPM\v6.0\Source\Presentation\Web\Views\Shared\QuickMenu.cshtml:21
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +271
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +121
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +191
System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +763
System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +383
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +432
System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +39
System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +78
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +388
System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +72
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +303
System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +155
System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +184
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +137
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +66
System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +48
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +50
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +152
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +59
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +68
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +50
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +152
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +59
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +65
System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +39
System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +48
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +50
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +152
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +59
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +66
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +38
System.Web.Mvc.<>c__DisplayClassa.<EndProcessRequest>b__9() +51
System.Web.Mvc.<>c__DisplayClass4.<Wrap>b__3() +41
System.Web.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Func`1 func) +69
System.Web.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Action action) +123
System.Web.Mvc.ServerExecuteHttpHandlerAsyncWrapper.EndProcessRequest(IAsyncResult result) +133
System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +1743

[HttpException (0x80004005): Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.]
System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +3544
System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage) +151
System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm) +122
System.Web.HttpServerUtilityWrapper.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm) +61
System.Web.Mvc.Html.ChildActionExtensions.ActionHelper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter) +985
System.Web.Mvc.Html.ChildActionExtensions.Action(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues) +112
System.Web.Mvc.Html.ChildActionExtensions.Action(HtmlHelper htmlHelper, String actionName, String controllerName) +46
ASP._Page_Views_Shared__RootLayout_cshtml.<Execute>b__d(TextWriter __razor_template_writer) in c:\EPM\v6.0\Source\Presentation\Web\Views\Shared\_RootLayout.cshtml:153
System.Web.WebPages.HelperResult.WriteTo(TextWriter writer) +42
Kendo.Mvc.UI.<>c__DisplayClass7.<set_InlineTemplate>b__6(TextWriter writer) +128
Kendo.Mvc.UI.HtmlElement.WriteTo(TextWriter output) +213
Kendo.Mvc.UI.<>c__DisplayClass5.<WriteTo>b__3(IHtmlNode child) +45
Kendo.Mvc.Extensions.EnumerableExtensions.Each(IEnumerable`1 instance, Action`1 action) +194
Kendo.Mvc.UI.HtmlElement.WriteTo(TextWriter output) +333
Kendo.Mvc.UI.Splitter.WriteHtml(HtmlTextWriter writer) +82
Kendo.Mvc.UI.WidgetBase.ToHtmlString() +115
Kendo.Mvc.UI.Fluent.WidgetBuilderBase`2.ToHtmlString() +62
System.Web.HttpUtility.HtmlEncode(Object value) +91
System.Web.WebPages.WebPageExecutingBase.WriteTo(TextWriter writer, Object content) +48
System.Web.WebPages.WebPageBase.Write(Object value) +53
ASP._Page_Views_Shared__RootLayout_cshtml.Execute() in c:\EPM\v6.0\Source\Presentation\Web\Views\Shared\_RootLayout.cshtml:93
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +271
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +121
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +191
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer) +52
System.Web.WebPages.<>c__DisplayClass7.<RenderPageCore>b__6(TextWriter writer) +333
System.Web.WebPages.HelperResult.WriteTo(TextWriter writer) +42
System.Web.WebPages.WebPageExecutingBase.WriteTo(TextWriter writer, HelperResult content) +44
System.Web.WebPages.WebPageBase.Write(HelperResult result) +52
System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +195
System.Web.WebPages.WebPageBase.PopContext() +342
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +200
System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +763
System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +383
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +432
System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +39
System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +78
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +388
System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +72
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +303
System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +155
System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +184
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +137
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +66
System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +48
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +50
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +152
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +59
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +68
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +50
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +152
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +59
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +65
System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +39
System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +48
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +50
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +152
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +59
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +66
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +38
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +930
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +188

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.33440
Rosen
Telerik team
 answered on 03 Dec 2013
1 answer
107 views
I know this may be outside the scope of things here. 

I have a telerik Ajax.net website that is used in a similar way to the likes of wetransfer.com 

after a a recent pen test the security guys were able to get around the filters in place and spoof some files onto the server and gain remote access. 

Obviously not a good thing. So the site has been taken off line, 

I was looking to upgrade the site using kendo and was wondering if you had any advice on how I can try and prevent this sort of tampering or point me in the right direction to try and secure the site. 

The site is a great idea for helping transfer large files to groups of people and getting past email restrictions so any ideas would be greatly received. 

Dimiter Madjarov
Telerik team
 answered on 02 Dec 2013
1 answer
686 views
Hi

Is it possible to configure the Treeview checkboxes so that when a node's children are all deselected, the node is not deselected also? I need the CheckChildren functionality turned on so that children are automatically selected when their parent is. But I don't want the parent removed from the selection when its children are unchecked.

To illustrate I have set up a jsbin . I'd like to be able to select nodes a, b1 and b2. However b2 only shows checked when any of c1, c2 and c3 are checked. I can use CheckChildren(false) to allow selection of b1 and b2 individually, but I have much more data than this example so manually checking all the nodes would become too much for the user.

Here is how I am currently placing the treeview on the page (Model.Items is a list of TreeViewItemModel instances):

@Html.Kendo().TreeView().Name("treeview").BindTo(Model.Items).ExpandAll(true).Checkboxes(c => c
        .Enabled(true)        
        .CheckChildren(true)
        )

Any thoughts?
Petur Subev
Telerik team
 answered on 02 Dec 2013
1 answer
448 views
Hi,

I have a grid which is displaying a custom styled template looking like this with kendo default theme installed (See "fleetlist-kendo-default.PNG")
At this point the following is installed:
<link rel="stylesheet" href="@Url.Content("~/Content/Kendo/kendo.common.min.css")">
<link rel="stylesheet" href="@Url.Content("~/Content/Kendo/kendo.default.min.css")">
However, when I change the theme to Bootstrap so that it can match the rest of my Bootstrap-themed application (Bootstrap 3.x) the template and its styling seems to get overriden (See "fleetlist-kendo-bootstrap.PNG")
At this point the following is installed:
<link rel="stylesheet" href="@Url.Content("~/Content/Kendo/kendo.common-bootstrap.min.css")">
<link rel="stylesheet" href="@Url.Content("~/Content/Kendo/kendo.bootstrap.min.css")"/>
On the other hand, if I apply the flat theme, it works again.
What can I do? :)

Regards,
Nicklas
Dimo
Telerik team
 answered on 29 Nov 2013
1 answer
428 views
On page load we build a grid based on a DataTable model, we have a for each loop to generate the columns. Then from a kendo dropdown list we select a new ID which on selection, fires the dataSource.read method, passing the new ID. This returns a different dataset with different columns. The grid refreshes and shows the correct number of items/rows but the old columns remain and the grid is empty. The grid is not displaying the new columns.

I have tried to destroy and empty the grid before dataSource.read but then get a dataSource is undefined console error. See setup code below:

Grid:
@(Html.Kendo().Grid(Model)
    .Name("Grid")
    .Columns(columns =>
    {
        foreach (System.Data.DataColumn column in Model.Columns)
        {
            columns.Bound(column.ColumnName).Hidden(column.ColumnName == "CustID").Title(column.ColumnName.ToString().Replace(" ", ""));
        }
        columns.Bound("CustID").Title("").ClientTemplate("<a href='/Customers/Customer/#: CustID #'>More Details</a>");
    })
    .Pageable()
    .Sortable()
    .Filterable()
    .DataSource(dataSource => dataSource
        .Ajax()
        .PageSize(15)
        .ServerOperation(false)
        .Model(model =>
            {
                foreach (System.Data.DataColumn column in Model.Columns)
                {
                    model.Field(column.ColumnName, column.DataType);
                }
            })
        .Read(read => read.Action("CustomerDataRead", "Customers", new { _CustomerListID = 18 }))
    )
)
The dropdown list select function:
function select(e) {
    var dataItem = this.dataItem(e.item.index());
    if (dataItem.CustomerListID == "") {dataItem.CustomerListID = -1}
    //$('#Grid').data().kendoGrid.destroy();
    //$('#Grid').empty();
    $("#Grid").data("kendoGrid").dataSource.read({ _CustomerListID: dataItem.CustomerListID});
}
In the select event above, I pass the ID to the read method. 

The grid refreshes, but the old columns do not update but the number of items returns is correct. See this screenshot:
http://prntscr.com/26yio5

If the dataset returned by dataSource.read has the same columns as the original grid, the grid refreshes OK and the data is displayed.

If I destroy and empty the grid, the dataSource.read method fails:
"Uncaught TypeError: Cannot read property 'dataSource' of undefined "

How to update the grid with new columns in each subsequent dataSource.read






Daniel
Telerik team
 answered on 29 Nov 2013
1 answer
82 views
Can't tab to focus the content pane of an editor generated by a client side template
Dimiter Madjarov
Telerik team
 answered on 29 Nov 2013
1 answer
419 views
Hello,

I have Kendo selectable Grid being created in razor.
After row is selected user can delete the selected row. But since the grid has multiple pages, after deletion -  reloading contents of data I need the selection to be put on the next row, preserving the current page number...

How can I achieve that?

Thank you for your prompt answer.

Shabtai
Dimiter Madjarov
Telerik team
 answered on 28 Nov 2013
1 answer
120 views

When I have the data source CRUD set in the Razor version of the Scheduler control AND I define events for Save and Remove the call to the Read and Destroy calls are duplicated.

Is this the correct behavior?

01.<input type="hidden" id="scheduleID" required data-required-msg="Please select a schedule."/>
02. 
03.@(Html.Kendo().Scheduler<DOTTReportsWebViewer.Models.TaskViewModel>()
04.    .Name("scheduler")
05.    .Editable(e=>e
06.                .Confirmation(false)
07.                .Update(false)
08.                .Resize(false)
09.     )
10.    .Date(DateTime.Now)
11.    .StartTime(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, 00, 00))
12.    .Views(views =>
13.    {
14.        views.DayView();
15.        views.WeekView(weekView => weekView.Selected(true));
16.        views.MonthView();
17.        views.AgendaView();
18.    })
19.    .Timezone("Etc/UTC")
20.    .DataSource(d => d
21.        .Model(m => {
22.            m.Id(f => f.TaskID);
23.            m.Field(f => f.OwnerID).DefaultValue(1);
24.        })
25.         
26.        .Read("Tasks_Read", "Subscriptions")
27.        .Create("Tasks_Create", "Subscriptions")
28.        .Destroy("Tasks_Destroy", "Subscriptions")
29.        .Update("Tasks_Update", "Subscriptions")
30.         
31.    )
32.    .Events(events => events
33.            .Save("scheduler_save")
34.            .Remove("scheduler_remove")
35.            )
36.     
37.     
38.)
39.     
40. 
41.<script type="text/javascript">
42.    
43.    function scheduler_save(e) {
44.        
45.        var scheduler = $("#scheduler").data("kendoScheduler");
46.         
47.        if ($("#scheduleID").val() != '') {
48.            scheduler.removeEvent($("#scheduleID").val());
49.        }
50.        $("#scheduleID").val(e.event.uid);
51.    }
52.     
53.    function scheduler_remove(e) {
54.        $("#scheduleID").val('');
55.         
56.    }
57. 
58.</script>

Rosen
Telerik team
 answered on 28 Nov 2013
1 answer
183 views
Hi,

I’ve following method which I’m using to build data source
for Kendo UI grid. I want to set default page number like default page size but
I can’t see an option in DataSourceBuilder.

Any idea?

public static Action<DataSourceBuilder<T>>DataSourcer<T>(string action, string controller, int total, string area, string jsParamFuncName = "",
int? defaultPageSize = null)     
where T : class 
{
if
(!defaultPageSize.HasValue)
defaultPageSize = int.Parse(ApplicationConfigurationDataHelper.GetByKey(ApplicationConfigurationConstants.DefaultPageSize).Value);
  
return
dataSource => dataSource.Ajax().Read(read =>  {                            
read.Action(action,
controller, new { area });                       
if (!string.IsNullOrEmpty(jsParamFuncName))                                                
{
      read.Data(d => jsParamFuncName);                                                
}                              
}) .Total(total)                        
.PageSize(defaultPageSize.Value)                    
.Events(e => e.Change(JsFunctionNameConstants.EmptyGridMessage));
}
Vladimir Iliev
Telerik team
 answered on 28 Nov 2013
3 answers
204 views
Greetings,

I would like to extend a Kendo.Mvc.UI.Fluent builder in my own html helper method and would like to know the easiest way to do this. To use a very simple scenario, I have many @Kendo.Button components that optionally need to be hidden. Until now I have created HtmlHelper functions and send in my custom parameters for various controls. I would like to start extending the WidgetBuilder itself.

For example is something like this easy to accomplish:

public class MyButtonBuilder : Kendo.Mvc.UI.Fluent.ButtonBuilder
{
    public bool Visible { get; set; }
     
    public override void Render()
    {
        if(Visible==false)
            //Do something to return empty HTML
        else
            base.Render();
    }
}



Thanks
Atanas Korchev
Telerik team
 answered on 27 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?