Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8100299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:42:25+00:00 2026-06-05T22:42:25+00:00

We want to use Orchard for a website. We are creating a custom module/widget

  • 0

We want to use Orchard for a website. We are creating a custom module/widget for that cms and in that module we want to use a GridView from DevExpress to show data. We got most of it working, but we can’t get callbacks to work. With that i mean things like navigating through pages, sorting rows and moving columns.

If we look in the console we can see that the javascript and ajax callbacks are never executed, we can’t figure out why that is so. I have found some topics on the DevExpress site and this site about using DevExpress with Orchard, but i couldn’t find anything usefull (for my case) in those. We also noticed that the methods of our controller are never called, but cannot figure out why not.

I found that sometimes jQuery can cause problems for DevExpress controls, so i tried removing all jQuery scripts, but that didn’t make a difference. Someone also suggested to put a callbackpanel around te gridview, but that didn’t work either. I have tried many more things (which i mostly forgot already) but nothing worked so far.

I have also asked the same question on the DevExpress website end the Orchard forums but i’m not getting any answers there, so i thought i’d try my luck here.

I have made an example project in case you want to see what i’m trying to do. The file is 40MB because i added the entire cms to itwith example daabase, including our module. The module is called GridViewTest You can find the source here:http://www.obec.nl/download/Orchard-DevExpress.zip.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:42:26+00:00Added an answer on June 5, 2026 at 10:42 pm

    I have finally found a solution. It turned out to be a pretty simple one (like usual) and i want to share it here, in case other people want to use DevExpress with Orchard:

    In your Orchard module, you have to create a Routes.cs file (in the root of the module). There you have to add this:

    using System.Collections.Generic;
    using System.Web.Mvc;
    using System.Web.Routing;
    using Orchard.Mvc.Routes;
    
    namespace CentralStationDataView
    {
        public class Routes : IRouteProvider
        {
            public void GetRoutes(ICollection<RouteDescriptor> routes)
            {
                foreach (var routeDescriptor in this.GetRoutes())
                {
                    routes.Add(routeDescriptor);
                }
            }
    
            public IEnumerable<RouteDescriptor> GetRoutes()
            {
                return new[] 
                {
                    new RouteDescriptor 
                    {
                        Priority = 5,
                        Route = new Route(
                            "AreaName",
                            new RouteValueDictionary
                            {
                                { "area", "AreaName" },
                                { "controller", "ControllerName" },
                                { "action", "ActionName" }
                            },
                            new RouteValueDictionary(),
                            new RouteValueDictionary 
                            {
                                { "area", "AreaName" }
                            },
                            new MvcRouteHandler())
                    }
                };
            }
        }
    }
    

    You can make the AreaName up as you like, it doesn’t matter (as far as i know) what you call it. Make sure that you don’t add the “Controller” suffix to the ControllerName.
    Then, in your GridView settings you have to add this:
    settings.CallbackRouteValues = new { area = “AreaName”, Controller = “ControllerName”, Action = “ViewDataPartial” };
    These values have to all be exactly the same as the values in the Routes.cs file. The “area” property was critical for me, i already had the Routes.cs file and everything, but i didn;t add the area property to the CallbackRouteValues.

    The second part of the solution is that you have to make a partial view with only and i stress, only, the GridView inside it. So no scripts, no extra html elements, no text, nothing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want use some data from a website with web service. i have a
I want to use some ASP.NET based CMS for creating my website and don't
We're creating a page in Orchard CMS using the 'List' Content Type. We want
I'm new to Orchard CMS. I want to use Glimpse in Orchard cms and
I want use php curl with oauth to get the JSON data from twitter
I'm working on building a custom module in Orchard CMS, and I have the
I want use from multiple upload image in codeigniter but problem is here that
I want use variables from inherits in asp code My code looks like that
I want use page that has this form: <form method=post action=modules.php?name=search> <input onkeypress=FKeyPress(this); onkeydown=FKeyDown(this);
I have a transaction log file in CSV format that I want use to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.