­
ASP.NET MVC

JSONResult Return Null Value Interpreted As Error in MVC 5

18:09
In my recent upgrade from MVC 3 to MVC 5, I encountered another issue/bug in system which JSONResult return null is working properly in MVC3 became an error in MVC5. So, the code below, return Json(null, JsonRequestBehavior.AllowGet); should be changed to, return Json(string.Empty, JsonRequestBehavior.AllowGet); It should return empty string to avoid being recognized as error. Cheers! In my recent upgrade from MVC 3 to...

Read More...

Customization

Telerik Kendo - Customize Export Excel Grid

18:55
Export Excel features has been introduced by Telerik Kendo since early of 2015. There will be a lot of customization if we need to handle the format we want. To customize the cell value in our preferred format, We need to make changes at excelExport event. From here, we just call the saveAsExcel() method to trigger the event and export according to our...

Read More...

Customization

Telerik Reporting - Customization in Handle Error Function

18:08
If you need to customize the error message in Telerik Report HTML5 Viewer, you are required to do the following tweaking to make it work. The best recommended way is hide/toggle the message and handle your own error message display according to the situation. This is related to the reason we want to hide the error message required when parameters are not fulfilled....

Read More...

Custom Parameter Editor

Telerik Report - Custom Parameter Editors

23:27
There are many ways we can customise the Telerik Report Parameter in HTML5 mode. Sample of customizing a dropdown list from the parameters There are many ways we can customise the Telerik Report Parameter in HTML5 mode. Sample of customizing a dropdown list from the parameters ...

Read More...

ASP.NET

How to allow multiple web application share same authentication token

19:53
One of my research project requires me to make all the web applications to be authenticated under one single authentication token. In order to allow them to be authenticated, I have made a finding on this topic and each of the web applications have to implement same Machine Key to make it workable.  You may search through the website via google :- Machine...

Read More...

ASP.NET MVC

Remove the text in Grid Column Inline Command in Kendo UI for ASP.NETMVC

19:52
I have came across the issue about how to remove the default text in the update, edit and delete button in Kendo Grid for ASP.NET MVC. So, this is the solution I found, To remove the text in Edit button, we set it to empty text E.g.  command.Edit().Text(" "); You could also include some additional CSS to remove the default margin of the...

Read More...

Bower

How to create .bowerrc

19:49
Recently when I was first encountered bower I found that I am required to create a .bowerrc file. If you still haven't install Git for Windows, you probably can try this in your CLI: echo "" > .bowerrc Alternatively, by using Git, touch .bowerrc The solution link to stackoverflow: Link Recently when I was first encountered bower I found that I am required...

Read More...

Chart

Set own font in Kendo Chart

19:46
How to set our own font in Kendo Chart? You can override it with a simple css rule. .k-chart text, .k-gauge text {     font: inherit !important; } This will override the text in both charts and gauges How to set our own font in Kendo Chart? You can override it with a simple css rule. .k-chart text, .k-gauge text {     font: inherit !important; } This...

Read More...

AutoComplete

Kendo UI AutoComplete - Display All Items

19:45
Regarding the topic, I am noted that Kendo UI AutoComplete is not designed to show all items. As mentioned in the following forum topic, http://www.telerik.com/forums/how-to-display-all-items-in-the-autocomplete-widget In order to resolve this, we leverage the use of Kendo ComboBox, the different between them is the Kendo ComboBox provides a down-arrow on the right side where you can click on it when you want to find...

Read More...

ASP.NET MVC

[Share] Telerik SignalR Grid Sample Project

19:39
Below is the link I get from Telerik on the project I working on SignalR Grid. http://www.telerik.com/support/code-library/binding-to-signalr Below is the link I get from Telerik on the project I working on SignalR Grid. http://www.telerik.com/support/code-library/binding-to-signalr ...

Read More...

JavaScript

How To enforce Mongoose Collection Name

19:37
By defining '{ collection: ''} at the end of Schema definition, we can make the MongoDB Object Oriented Collection Name as we wanted it to be. For example, var UserInfo = new Schema({ username : String, password : String }, { collection: 'userinfo' }); By defining '{ collection: ''} at the end of Schema definition, we can make the MongoDB Object Oriented Collection...

Read More...