Forum Replies Created
-
Author
-
There is a property called ‘white-space’ in jqx-grid-column-header class which is set as “nowrap”. Setting the property value to “normal” wraps up the text in grid column header.
Regards,
HarikalaPrasathHi Peter,
What if I want to do dynamic wrapping of text in column headers??
In my application,I don’t know the column header texts upfront since am reading it from a file.So Is there any API to enable dynamic text wrapping ??
Regards,
HarikalaPrasathIt worked.
thanks… 🙂
Less than half time…the browser being used is : webkit 1.10.2
Platform : Linuxi just provided the settings object for your information.
i haven’t created an object with such specifications manually.I have a local json object. To provide it to the grid i am using the data adapter as specified in your examples.
source=
{
datatype : ‘json’,
localdata : data
};
dataAdapter = new $.jqx.dataAdapter(source);the only change is, I have my settings for the grid not provided as such inside “$(“#jqxgrid”).jqxGrid();” instead ive put it into an object and then called the jqxgrid with that object.
$(“#jqxgrid”).jqxGrid(gridSettings);
gridSettings :{
width: “100%”,
theme: “BaseTheme”,
source: dataAdapter,
rowsheight: 28,
enablehover: false,
scrollbarsize: 40,
pageable: true,
pagershowrowscombo: false,
pagerheight: 60,
pagesize: 16,
selectionmode: “none”,
columnsheight: 32,
columns: [
{ text: ‘Name’, dataField: ‘Name’, cellsrenderer: CellsRenderer, width: 686.4 },
{ text: ‘Value’, dataField: ‘Value’, width: 171.6 }
]
}So, with this being the only difference, initialization would not be a problem… ?
P.S.: I am using jqWidgets2.4.2.Thanks a lot. It would be still more better if the dataAdapter can handle this kind… for example when creatin the object source i can give name of field and the value in it….
like,
var source =
{
datatype: “csv”,
datafields: [
{ name: ‘Browser’ , value:’Browser’, type: ‘string’},
{ name: ‘Share’ , value:’Share’, type: ‘int’},
{ name: ‘legend’ , value:’Browser’ + ‘Share’, type: ‘string’}
],
url: ‘../sampledata/mobile_browsers_share_dec2011.txt’
};for adding two values from the data the type can be int and for concatenation as in my case, string…
And Also, a demo and documentation for data Adapter would be appreciated…
This doesn’t works in my case…
I have a pie chart. where the display text is also from other fieldData : json data….
[{“name”: “Name1”, “value”:30},{“name”: “Name2”, “value”:30},{“name”: “Name3”, “value”:40}]
This is my data.
I want the legend as “Name1 – 30” – something like this…In the example you provided, the display text is considered as a string… In pie and donut it is not that way i believe. sorry that i dint mention the type of chart earlier
Thanks & Regards,
Harikala prasathOctober 18, 2012 at 12:59 pm in reply to: array as datafield in a line chart array as datafield in a line chart #9695just a sample for making it clear:
$.each(……..,func(){
array_obj =
{
Id: obj.Id,
Values : [0,1,2,3,4]
}
sampleData.push(array_obj);
});this sampleData is my source
I need a line chart with the category axis Id,
and the line series with 4 lines(for this sample),October 17, 2012 at 10:06 am in reply to: value display in bar chart value display in bar chart #9595I mean the details of the entity being displayed when it is clicked.
Outside the Graph it is possible to detect the event and write custom function. is it possible within the chart?October 17, 2012 at 8:45 am in reply to: value display in bar chart value display in bar chart #9590Is there a way to make the tooltip functionality by click event and disable the tooltip?
disabling the tooltip can be achieved through the tooltip property. but the same functionality on click?October 11, 2012 at 10:45 am in reply to: Grid last row not fully displayed Grid last row not fully displayed #9278yeah. i got that. i just thought there would be some way to make that possible.
Thanks…October 11, 2012 at 10:36 am in reply to: Grid last row not fully displayed Grid last row not fully displayed #9274but, i couldnt give the rowheight in percentages.
October 11, 2012 at 10:20 am in reply to: Grid last row not fully displayed Grid last row not fully displayed #9271Sorry, I dint report an issue, i was just asking for a suggestion.
Thanks, anyway.Thank You…
Thanks a tonne….
But i still dont get just 1 hint. what if i use touchmode:true in a widget running on a smartphone? -
AuthorPosts