PDA

View Full Version : [CLOSED] Using HTML elements



mcfromero
Jan 10, 2013, 1:02 PM
Hi,

We are going to update our project to Ext 2.x using Razor.

Also, we want to use only EXT "controls" components (Button, Combobox, Gridpanel) but with making the page layout with HTML (using "div", "fieldset", "table/tr/td" instead of Html.X().Panel(), Html.X().FieldSet()).

Is there some known problem or bug?


I also would to like if there is a document or site when shows what is the generated html for the controls something like:


Html.X().Panel() renders 'div'
Html.X().FieldSet() renders 'fieldset'




Thank you

Daniil
Jan 10, 2013, 3:08 PM
Hi @mcfromero,

Could you clarify why do you want to use a <div> instead of a Panel, etc.?



Is there some known problem or bug?


Well, I don't know any. But Ext.NET/ExtJS layout supports only Ext.NET/ExtJS widgets. So, layouting will be totally on your responsibility.



I also would to like if there is a document or site when shows what is the generated html for the controls something like:


Html.X().Panel() renders 'div'
Html.X().FieldSet() renders 'fieldset'




Unfortunately, there is no such a document. At least, I have not seen anything similar.

To know it you can inspect HTML elements rendered by Ext.NETcontrols using Developer Tools or FireBug.

mcfromero
Jan 11, 2013, 12:11 PM
Hi


Could you clarify why do you want to use a <div> instead of a Panel, etc.?

We were just thinking about that hoping to have more control of the html. But we realized that will be better using all Ext Components

Thank you

Daniil
Jan 11, 2013, 12:52 PM
That is a good decision.

But this doesn't mean that you can't use HTML elements:)