I am struggling to get the Telerik MVC Grid to display number formatted according to Indian standards. Basically, I have a number, for example - 55555555555 and I want it to be displayed by Telerik MVC grid as 55,55,55,55,555. So I tried to use the pattern "##,##,##,##,###". This worked well for the above example. However, if I use 555555555 (two 5's less than the earlier example), then it displays as 555,555,555 instead of 55,55,55,555. I am not sure why this happens.
How do I have a Telerik MVC grid display number according to Indian number formatting as mentioned at start?
You can localize all values on the grid by setting the .Localizable("hi-IN") on the grid itself.
Telerik MVC Grid Localization
There is a jquery globalization plugin available at https://github.com/jquery/globalize#format. That makes the task of formatting very easy particularly if the formatting is to be done at client side.
regards,
Nirvan.
Related
I would like to be able to add some custom text within the built in pager area of Telerik's Grid component for Blazor. It would also be nice to be able to change the predefined text, but the image below shows what I would like to accomplish.
I have found several resources showing how to do this using other Telerik products, but I haven't been able to find anything for Blazor. Here is an example I found for Kendo UI for Angular Changing the text of the paging area in the grid and another one I found but for ASP.NET AJAX Change label text of pager item. However, these did not help me much.
Does anyone know of a way I can accomplish this?
If you want custom markup within the Pager, they have a logged item for that - https://feedback.telerik.com/blazor/1557339-pager-template
If you just want to update the label/s, you should be able to do this through the localization strings - https://docs.telerik.com/blazor-ui/globalization/localization
I want to make the grid editable by using different types of editors based on row value in kendo mvc. Please suggest some suitable approach.
I tried with Javascript event handling but that did not worked.
I am trying to build a edit mode filtering in wpf devX grid. This functionality is inbuilt in v13 but I am on v9.
Scenario :
I have a grid which by default shows a checkbox based / list based filter dropdown. I want to replace it with a textbox based filter where user can enter any input including regex and it does the filtering. This needs to be done only for selective columns not for all.
Any help would be appreciated.
ASP ListView can be easily made to change the view of item on lick, like display a table but when the item is clicked expand it and show details in some custom format that differs from table. (e.g. some multiline text)
Have anyone seen any free control, or a tutorial to make one with similar behavior but for winforms?
A quick web search found this: http://www.componentowl.com/better-listview.
I'm sure a further search would reveal more at various budgets and functionality.
I have read through some articles on this topic but I am still cautious about this. I am all along using ASP:Textbox but I would like to know what are the things an input textbox cannot possibly perform without using a ASP:Textbox or takes much more effort to pull off?
I have a Jquery tooltip sample which uses HTML input textbox and I am not sure if I should change all my ASP:Textboxes to HTML textboxes, the things which I need to perform on this textboxes are RequiredFieldValidation as well as storing their values into the database.
Anyone can advice me on this rookie question. Thanks.
The asp.net textbox IS a html input box from jQuerys point of view. Everything special about it is done on the server (including viewstate validation). The question you need to ask, is what value does giving it a server side reference bring to your app? Generally the answer is easy server side reference, but does that apply in your case?
As far as i know there is no visible server side programming difference between a HTML input box and an ASP Textbox. ASP.NET Validators would work perfectly both ways.
As for your tooltip concern. Jquery doesn't care if your using an ASP Textbox since your ASP textbox will end up as an HTML textbox anyways.
And for the advice - i don't recommend you changing all your ASP Textbox to HTML input boxes, its just a waste of time. You should use the CSSClass / class property to display the tooltip instead. That way it would work on your regular HTML input box and ASP Textboxes + other page elements.