Hi,
We are using ASPxTreeList to show hierarchial data.Our requirement is to disable selection checkbox (not hide).
For selection checkbox to disable ,we have tried in the event HtmlRowPrepared of ASPxTreeList
code snippet:
foreach (TableCell cell in e.Row.Cells)
{
if (cell is DevExpress.Web.ASPxTreeList.Internal.TreeListSelectionCell)
{
(cell.Controls[0] as WebControl).Visible = false; //This is working
(cell.Controls[0] as WebControl).Enabled = false; //This is not working
}
}
The selection checkbox is not getting disabled. visible false is working but enable false is not working.
The problem for this solutino is provided in below example but the example link is also not working .
https://www.devexpress.com/Support/Center/Example/Details/E2011
Could you please suggest if I am missing something here or any workaround to disable selection checkbox.
Thanks
Hello,
Would you please provide me with the problematic page markup and code behind illustrating your current progress? It will allow me to research the project locally and I will do my best to find the cause of the incorrect behavior.
Hi,
we just need to disable selection checkbox in the ASPxTreeList.
we are using HTMLRowPrepared event for this
cell.Controls[0] as WebControl).Enabled = false
As said earlier, visible false is working but enable false is not working.
We followed the same logic as provided in the below support example, but the RunOnline link is also not working for us to verify the solution.
https://www.devexpress.com/Support/Center/Example/Details/E2011
Hello,
I may need additional time to research this issue. I will update the thread as soon as possible.