Kendo ToolTip: How to cache your ajax response?

Today I had a task to make ToolTip that cache the response from ajax request. But the problem is that KendoUI ToolTip doesn’t supports option for enabling the cache. By default they set “false” value to “cache” property in $.ajax method. Also by default you can’t chose the type of request (POST/GET). Now I’ll show you how I resolved the problem.

Continue reading

jQuery 1.9.1 == “My PopUp doesn’t close”

With new version of jQuery 1.9.1 maybe you will have a problem when you are updating your data using popup editing or you destroying data, because in the new version of jQuery the successful query returns response different than empty. This makes dataSource doesn’t work properly and the solution is:

  1. Make function that returns empty object if ModelState is valid else returns ModelState.ToDataSourceResult()
  2. Pass ModelState to the function

public JsonResult ModelStateToJsonResult(ModelStateDictionary modelState)
{
return Json(modelState.IsValid ? new object() : modelState.ToDataSourceResult());
}

[AcceptVerbs(HttpVerbs.Post)]
public JsonResult MyUpdateAction([DataSourceRequest]DataSourceRequest request, myViewModel model)
{

//...
return ModelStateToJsonResult(ModelState);
}

Single-Page Application with Kendo UI

Recently single page applications popularity are growing and this is the reason that i wrote this post. Kendo released new version before week ago and there are some new features like ColorPicker, Tooltip, Multiselect and possibility to make Single-Page Application with their framework. In this post I will show you the pros and cons of SPA(Single-page application) and a simple demo using Kendo UI framework.

SPA architecture

SPA architecture

What is SPA?

Shortly SPA is combinations of HTML, JavaScript and CSS that retrieves code once. Applications has only one page that’s separated in different parts. When user interacts the script will load different parts to the screen without making requests to the server (in some cases it’s possible to have AJAX requests). This makes SPA Continue reading

New spring season at Telerik Academy 2013 – 2014

What is the academy?

telerik-academy-logo1-300x72[1]

Telerik Academy Logo

The Software Academy is part of international company Telerik. Telerik Academy has many courses like C# Part 1, C# OOP, HTML5, CSS3, JavaScript, Quality programming code, XAML and many more. The main idea of the academy is to improve knowledges of bulgarian software engineers for free. Now the academy has more than 10 000 users. You can enjoy in the academy as regular student or online student.

About new season

Telerik Academy opens new season at spring for first time – Spring season 2013 – 2014. This is opportunity to study online and improve your developer skills for free. The idea of spring season is Continue reading