jsonmap in struts2 jquery grid - grid

What is "jsonmap" attribute in struts2 jquery gridcolumn tag?
Please tell me about jsonmap.
Is it used to develop grid dynamically?

Jsonmap Defines the json mapping for the column in the incoming json string
some more information can be found here: http://www.trirand.com/jqgridwiki/doku.php?id=wiki:retrieving_data

Related

Produce a "type" attribute in the "script" tag when using Scripts.Render in ASP.NET MVC 4

Is it possible to configure Scripts.Render in ASP.NET MVC 4 to produce a "type" attribute in the "script" tag?
If so, how?
Thanks in advance,
Ryan
The 1.1-alpha1 update has support doing your own tag formatting with the Scripts/Styles helpers.
There's a new DefaultTagFormat property which is by default set to:
"<script src="{0}"></script>"
There's also a RenderFormat method which takes in the tag format as well. You should be able to add the type attribute via either of these two mechanicsms.

ASP.Net DataList HTML5 conformance

In trying to make my ASP.Net 4.0 site validate to HTML5 the best I can with the current specification. I have a DataList that always adds cellspacing="0" I've tried different ways of removing the cellspacing="0". I have added a CSS style sheet which does flow over.
Anyone know how to make the DataList conform to the HTML 5 validation?
Actual Code:
Validation Error Message: The cellspacing attribute on the table element is obsolete. Use CSS instead.
Generated Code:
I am not a big fan of DataList - many time, the markup generates is table based and hence semantically incorrect. So I will suggest to use some alternate control such as Repeater or ListView if possible.
Now, if you are in situation where you have plenty of data lists... one of the solution would be to have your own custom DataList control to explicitly override cellspacing attribute such as
public class MyDataList : DataList
{
protected override Style CreateControlStyle()
{
var s = new TableStyle();
s.CellSpacing = -1;
return s;
}
}
You can then probably use ASP.NET Tag Mapping to substitute built-in data-list with your implementation across all pages from config.

BulletedList in asp.net

How I can give separate style to custom image of Bulletdlist in .net?
It could be done just by using CSS, for this you may check this out.
To dynamically change any CSS attribute (C#.NET) do the following;
bulletedList.Style["cssProperty"] = "newValue";

How to specify in QTP's Object Repository, that I want to find Web Button object by title

I have rich web application with a lot of dynamic stuff (used ExtJS 3.0). I want to find Web Button using HP QuickTest Pro 10. This web button have only one property , that can uniquely identify it: title. But if I define that object in Object Repository with Description Property Title= it doesn't find it.
Please, advise me what can I do in that situation? I've tried to use object.title=Some value as well, but it doesn't helped.
Thanks!
Title is a DOM property not a QTP property, you can use DOM properties for identification by appending attribute/ to the property name.
Try adding a new property "attribute/title" to the button class, and make that an identification property in the object identification configuration.
The "attribute/" prefix allows you to use any attribute that you can access via the Object property.

MvcConrib Grid's Sortable property don't seems to to do any effect

I need a way to generate the header texts in the grid as sortalbe link.
Do I need to use custom renderer to get this behavior?
You need to use GridSortOptions and call the .Sort(YourModel.GridSortOptions) method on the grid and then handle the OrderBy in your controller action.
See this link: http://www.jeremyskinner.co.uk/2010/03/14/mvccontrib-grid-part-6-sorting/
Thanks,
Hal

Resources