The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Telerik esDataSource Example - in VB?

Last post 07-25-2008, 6:28 AM by rotep. 2 replies.
Sort Posts: Previous Next
  •  07-25-2008, 6:17 AM 10379

    Telerik esDataSource Example - in VB?

    Hi (Mike),

    i'm having trouble converting your provided example (http://community.entityspaces.net/forums/post/2597.aspx) to VB.NET.

    In the codefragment below (copied from post), I haven't got a clue how to convert line 2. The portion = new GridSortBLOCKED EXPRESSION is invalid in VB.NET and won't convert in any syntaxconverter.

    Code:
    1    // Initial Rad Grid Sorting
    2    GridSortExpression expression = new GridSortBLOCKED EXPRESSION;
    3    expression.FieldName = EmployeesMetadata.PropertyNames.LastName;
    4    expression.SortOrder = GridSortOrder.Ascending;
    5    this.RadGrid1.MasterTableView.SortExpressions.AddSortExpression(expression);
  •  07-25-2008, 6:22 AM 10380 in reply to 10379

    Re: Telerik esDataSource Example - in VB?

    Come on Rotep, if you look right below the post you linked to the answer is clearly spelled out

    Thanks for this!  One item, it looks like the formatter did something to the GridSortExpression line:

       // Initial Rad Grid Sorting
       GridSortExpression expression = new GridSortBLOCKED EXPRESSION;

    Should be

       // Initial Rad Grid Sorting
       
    GridSortExpression expression = new GridSortExpression();

     


    Regards,

    Scott Schecter
    EntitySpaces | My Site
  •  07-25-2008, 6:28 AM 10381 in reply to 10379

    Re: Telerik esDataSource Example - in VB?

    Wow i'm stupid. BLOCKED EXPRESSION by the forum probably ;-)

     

    Never mind, your example works perfectly.

View as RSS news feed in XML