RadFilter changeExpressionFieldName: ownerIndex

2 posts, 0 answers
  1. Calvin Ang
    Calvin Ang avatar
    1 posts
    Member since:
    Dec 2009

    Posted 03 May 2013 Link to this post

    Hi there,

    The documentation for RadFilter indicates that the following client-side function is available:

    changeExpressionFieldName(ownerIndex, fieldName)

    Method which changes the field name of the expression at the level specified by theownerIndex parameter to the value of the fieldName parameter.

    I was able to try out this function by plugging in the end of the ID of  the "LI" element corresponding to the expression to be changed for ownerIndex, e.g., "0_0."

    Is there a more elegant way to determine the owner index of a given expression? 

  2. Eyup
    Eyup avatar
    3935 posts

    Posted 08 May 2013 Link to this post

    Hi Calvin,

    Thank you for contacting us.

    Currently, there is no more convenient approach than the suggested one:
    function changeFieldName() {
        var filter = $find("<%= RadFilter1.ClientID %>");
        filter._filterCommandInternal("ChangeExpressionFieldName", "0_0", "OrderDate");

    You can also access and traverse the expressions collection object:
    Or get the OrderIndex of the expression by its element id:

    Additionally, please note that for the coming Q2 2013 release, our developers have re-builded the RadFilter control which will expose many new properties and will provide richer and much more convenient interface to be customized.

    Hope this helps.

    All the best,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top