[CLOSED] Custom TextFieldfor helper

  1. #1

    [CLOSED] Custom TextFieldfor helper

    Hi all,

    i created, following the code on this thread http://forums.ext.net/showthread.php...bel-in-MVC-4-0, my custom controls.
    I would like to create also for this controls the equivalent ControlFor version.

    Can you provide some examples about this?

    Thanks

    Best regards
    Last edited by geoffrey.mcgill; Jan 03, 2014 at 3:05 AM. Reason: [CLOSED]
  2. #2
    Hello!

    Yes, it seems there are some internal methods are used. I have to discuss it with my colleagues.
  3. #3
    Hi Baidaly,

    thanks for your answer.
    Effectively i tried to use code form ext.net source but, as you said, BaseControl.SetControlFor() for example is declared internal.

    I wait some news.

    Thanks and best regards
  4. #4
    Hi Baidaly,

    but if i temporarily modify the source code and i remove "internal" access modifier you think creates problems?

    Thanks

    Best regards
  5. #5
    Well, removing "internal" should not cause problems.
  6. #6
    Finally, we decided to open access to the BaseControl's SetControlFor and the BuilderFactory's InitFieldForBuilder methods which might be used to create Razor "For" helpers for custom controls. It is done in the revision #5584.

    Also you encouraged us to write the "Creating Razor helper methods for custom controls" tutorial:
    http://forums.ext.net/showthread.php?27672

    Hope this helps.

    Thank you for the request!
  7. #7
    Hi Daniil,

    thanks for your example and for your source code change.

    Ext.Net support is very good!

    I try your sample soon
    You can close this thread


    Many thanks and happy new year
  8. #8
    Thank you, @infonext!

    Thanks for your interest in Ext.NET!

    Happy New Year!
    Last edited by Daniil; Jan 09, 2014 at 4:30 AM.

Similar Threads

  1. Replies: 0
    Last Post: Oct 14, 2013, 2:35 PM
  2. Replies: 2
    Last Post: Feb 19, 2013, 9:28 PM
  3. Replies: 3
    Last Post: Feb 21, 2012, 7:46 AM
  4. Replies: 2
    Last Post: Jan 09, 2012, 7:18 AM
  5. [CLOSED] Custom event in custom tree panel not being generated
    By anup in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Dec 31, 2011, 8:45 PM

Posting Permissions