PDA

View Full Version : Is there any way load column editor from partial view ?



ismailkocacan
Sep 02, 2015, 1:45 PM
I want to load column editor from a partial view.
Because when increase the "Editor" in codes then harder the maintenance code

field2.csHtml

@(Html.X().ComboBox()
)


myGrid.csHtml


@(Html.X().GridPanel()
.ColumnModel
(
Html.X().Column()
.Text("field1")
.DataIndex("field1"),

Html.X().Column()
.Text("field2")
.DataIndex("field2")
.Editor
(
// How to load here editor component from partial view (field2.csHtml)?
)
)

any idea or alternative methods ?

ismailkocacan
Sep 02, 2015, 1:57 PM
I found that PartialViewResult component rendering questions (http://forums.ext.net/showthread.php?24702-CLOSED-PartialViewResult-component-rendering-questions&p=108542&viewfull=1#post108542) named topic

I'm looking now.

ismailkocacan
Sep 04, 2015, 9:39 PM
I'm using custom control instead of a view.
That "Creating Razor helper methods for custom controls (http://forums.ext.net/showthread.php?27672-Creating-Razor-helper-methods-for-custom-controls&p=123140&viewfull=1#post123140)" named tutorial very helpful.