Forum Replies Created
-
Author
-
June 24, 2021 at 3:59 pm in reply to: Displaying chevrons etc in data Displaying chevrons etc in data #120439
I have found in cellsrenderer it is no good to just return the value because it will not be aligned in the row. You must return something like a div with something like margin: 5px.
Also if you don’t return a div and just return the value it seems to display safely but if you refresh your data it will end up running an embedded potential XSS script. I tried to make a demo of this but I can’t seem to embed the script in JSFiddle or even type it in here without it getting mangled.
So it only seems safe if you return a div.
Rather than make me create a div with formatting etc it would have been better for you to have provided a boolean switch on the column specifying to HTML encode the data value or not.
June 8, 2021 at 1:33 pm in reply to: Displaying chevrons etc in data Displaying chevrons etc in data #120345Can you please explain how your modified example is working because the cellsrenderer is not doing any extra processing. Just returning the value passed to it. So how is this different than just binding to the data field:
cellsrenderer: (row, columnfield, value) => {
return value;
}All of this is important for XSS protection because what if someone enters a script into a data value. Your other controls such as text input field seem to cope with this ok without me having to Html encode the data.
XSS is a big topic and it would be useful if you one have an article explaining how your controls are affected by it and which ones may need Html encoding or not.
March 24, 2021 at 6:27 pm in reply to: Repeating hyperlink on sort Repeating hyperlink on sort #114947I used a div with margin but it is trial and error to get it to line up with the grid text
March 24, 2021 at 5:06 pm in reply to: Repeating hyperlink on sort Repeating hyperlink on sort #114944The text rendered does not match the other columns. It is not aligned properly and is in the top left corner of the cell. It is not aligned in your demo either.
How do you make it match the alignment of the rest of it?
March 21, 2021 at 12:27 pm in reply to: Shift click on a window and grid behind gets rows selected Shift click on a window and grid behind gets rows selected #114922Thank you. I put on v12 and the problem seems to be fixed.
March 12, 2021 at 1:16 pm in reply to: When is the earliest I can call savestate When is the earliest I can call savestate #114848Thanks I did not realize about the ready function and I got it to work better using that
February 16, 2021 at 8:44 pm in reply to: You see list bullet points before tabs displays You see list bullet points before tabs displays #114567–
January 15, 2021 at 12:36 pm in reply to: How to wrap column headers How to wrap column headers #114233I think you should have a much better system than this. You don’t know how the user will resize the columns. It would be better to have an auto wrap feature for the text.
December 5, 2020 at 6:46 pm in reply to: Setting the text color when the cell is selected Setting the text color when the cell is selected #113747Thanks I got it working in the end. It was the css being applied in the wrong order.
December 3, 2020 at 6:02 pm in reply to: Setting the text color when the cell is selected Setting the text color when the cell is selected #113736I looked at your example but I still can’t make it work
My css is like this:
.red_text {
color: red !important;
}In the cellclassname function I do:
return “red_text”;The text is red on all rows but when I select the row the text is black.
Why is it not overriding the selected text black color with the red?
Thanks
November 20, 2020 at 10:24 am in reply to: jqxToolBar resizing – don't want wrap – want excess menu button jqxToolBar resizing – don't want wrap – want excess menu button #113652Any news on this yet?
Do only certain themes work and what about custom themes?
November 16, 2020 at 11:56 pm in reply to: jqxToolBar resizing – don't want wrap – want excess menu button jqxToolBar resizing – don't want wrap – want excess menu button #113633Your resizable demo here is still not working properly:
https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtoolbar/index.htm#demos/jqxtoolbar/javascript-toolbar-resizable.htmIf you select a theme of “Light” the buttons shrink down as the window is made narrower and it has the problems I explained above.
If the select a theme of “Material” the buttons do not shrink and they seem to appear correctly on the overflow dropdown menu. This is how I would expect the control to work.
So why is the theme affecting it?
And when I am using it I don’t get any of the above but just the buttons wrapping onto the next row which I can only see one pixel of.
November 16, 2020 at 11:46 pm in reply to: SHIFT-click is firing rowdoubleclick event SHIFT-click is firing rowdoubleclick event #113632I have upgraded to v11 but this is still a problem
November 16, 2020 at 11:46 pm in reply to: jqxGrid half a row at bottom & hover highlighting out of alignment jqxGrid half a row at bottom & hover highlighting out of alignment #113631I have upgraded to v11 and it seems to be fixed.
Thanks
November 16, 2020 at 5:08 pm in reply to: SHIFT-click is firing rowdoubleclick event SHIFT-click is firing rowdoubleclick event #113629Any way to stop the shift click going through the window and selecting on the grid behind?
-
AuthorPosts