What is the use XRender? Where it can be useful?

  1. #1

    What is the use of XRender? Where it can be useful?

    What is the use Builder extensions from Ext.Net. Where it is useful?

    I want to persist the controls that has been created through ajax calls.
    Can i achieve it using XRender?
    Last edited by vjsrinath; Feb 07, 2012 at 7:09 AM.
  2. #2
    Hi,

    It is useful when you need to render controls on the fly (on user's demand). It works during DirectEvent/DirectMethod.
  3. #3
    Just to ensure others are aware, there are XRender samples in the Examples Explorer, see

    https://examples1.ext.net/#/XRender/Basic/Add_Items/
    Geoffrey McGill
    Founder
  4. #4

    Thanks guys

    I thought XRender remembers all the controls created by them. But that's wrong. We need to have a good mechanism on server side in order remember the controls created dynamically. Initially i was thinking that XRender meant for that.
    I've some more doubts
    • What is the Extension function called "ToBuilder()" available for all controls?
    • What's the main use of this?
    • What is actually this one does?
    Last edited by vjsrinath; Feb 13, 2012 at 8:29 AM.
  5. #5
    Quote Originally Posted by vjsrinath View Post
    I thought XRender remembers all the controls created by them. But that's wrong. We need to have a good mechanism on server side in order remember the controls created dynamically. Initially i was thinking that XRender meant for that.
    Yes, it doesn't recreate controls. It just generates a correct JavaScript during DirectEvent/DirectMethod to render/update controls to client.

    Quote Originally Posted by vjsrinath View Post
    I've some more doubts
    • What is the Extension function called "ToBuilder()" available for all controls?
    • What's the main use of this?
    • What is actually this one does?
    The Builder class is the special class to create controls via methods. These methods return a Builder instance, it allows to build a chain.

    Builders are mainly used in Razor.

Similar Threads

  1. [CLOSED] DirectMethod/XRender Issue
    By logicspeak in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 26, 2011, 5:43 AM
  2. DirectMethod Not Found. (using XRender)
    By aespinoza in forum 1.x Help
    Replies: 0
    Last Post: Jun 26, 2010, 9:25 PM
  3. [1.0] XRender with child controls
    By lukasw in forum 1.x Help
    Replies: 9
    Last Post: Apr 21, 2010, 6:16 AM
  4. [CLOSED] XRender UserControl NamingContainer
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 27
    Last Post: Jan 21, 2010, 4:10 PM

Posting Permissions