A
A
Anton Gribov2015-11-27 22:37:54
ExtJS/Sencha
Anton Gribov, 2015-11-27 22:37:54

How to create custom control on ext.net mvc?

I need to create a date and time field. Now it looks like this

@X.Container().Items(X.Panel().Layout(LayoutType.HBox).Items(
    X.Label(field.Name), 
    X.Panel().Layout(LayoutType.HBox).Width(200).Items(
         X.DateFieldFor(valueExpression).FieldLabel(null), 
         X.TimeFieldFor(valueExpression).FieldLabel(null))

But it doesn't work the way it should. I want to create my own control class that inherits, for example, Field. And it should work like a normal, standard control.
Which methods from the base classes of components and/or Builders should be overridden first? And how to form the layout of your own control from the standard ones?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question