Hello,
As a part of an application I'm developing, I'm writing a very basic XML viewer. It gets an xsd schema and an xml file, and should display the xml contents in gridview, so the user can expand each row to discover its inner properties.
I've tried using telerik's grid view for the mission, and I had three problems:
1. It adds 'redundant' columns to the grid - for example I have 'name' and 'address' properties, and it adds a column named 'name_id' which contains indices of the rows. I didn't understand why it does that and how can I disable that, so I tried hiding this extra column (which doesn't appear in the xsd schema), which leads me to my second problem:
2. I can access columns and rows of the 'main' grid, the one that contains the first level data, but how can I access the inner grids, the ones that open up when the user expands a row? I have an event handler for expanding rows, but I couldn't find a way to get the inner gridview from its arguments.
3. How can I change the font dynamically? I want the user to be able to resize the font. I tried using the font property of the gridview object, but it doesn't do anything(!). In this forum I saw people talking about doing it in the grid xml, for the specific table which font is to be determined, but I can't do it dynamically, I think.
Thank you,
Shai
As a part of an application I'm developing, I'm writing a very basic XML viewer. It gets an xsd schema and an xml file, and should display the xml contents in gridview, so the user can expand each row to discover its inner properties.
I've tried using telerik's grid view for the mission, and I had three problems:
1. It adds 'redundant' columns to the grid - for example I have 'name' and 'address' properties, and it adds a column named 'name_id' which contains indices of the rows. I didn't understand why it does that and how can I disable that, so I tried hiding this extra column (which doesn't appear in the xsd schema), which leads me to my second problem:
2. I can access columns and rows of the 'main' grid, the one that contains the first level data, but how can I access the inner grids, the ones that open up when the user expands a row? I have an event handler for expanding rows, but I couldn't find a way to get the inner gridview from its arguments.
3. How can I change the font dynamically? I want the user to be able to resize the font. I tried using the font property of the gridview object, but it doesn't do anything(!). In this forum I saw people talking about doing it in the grid xml, for the specific table which font is to be determined, but I can't do it dynamically, I think.
Thank you,
Shai