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

  • SEARCH
  • Home
  • 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 8179871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:05:39+00:00 2026-06-07T00:05:39+00:00

I use DevExpress v10.2.3 grouping gridview with asp.net mvc 4. I can get datas

  • 0

I use DevExpress v10.2.3 grouping gridview with asp.net mvc 4. I can get datas from database and show them. But I cant change ant constraint for example: sort by column. When I clicked to sort I get following pop up page.This page is opened When I every click to fire script. Any idea about this? May be this is an easy error, but I cant see it.

Thanks.

enter image description here

partialView

@Html.DevExpress().GridView(
settings =>
{
    settings.Name = "gvGrouping";
    settings.CallbackRouteValues = new { Controller = "Customer", Action = "PartialCustomers" };
    settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);

    settings.Columns.Add("sno");
    settings.Columns.Add("Name");
    settings.Columns.Add("City");
    settings.Columns.Add("Ilce");
    settings.Columns.Add("Sokak").GroupIndex = 0;

    settings.Settings.ShowGroupPanel = true;

    settings.CustomCallback = (sender, e) =>
    {
        int layoutIndex = Int32.Parse(e.Parameters);
        DevExpress.Web.Mvc.MVCxGridView grid = (DevExpress.Web.Mvc.MVCxGridView)sender;

        grid.BeginUpdate();
        try
        {
            grid.ClearSort();
            switch (layoutIndex)
            {
                case 0:
                    grid.GroupBy(grid.Columns["Sokak"]);
                    break;
                case 1:
                    grid.GroupBy(grid.Columns["Sokak"]);
                    grid.GroupBy(grid.Columns["City"]);
                    break;
                case 2:
                    grid.GroupBy(grid.Columns["Name"]);
                    break;
            }
        }
        finally
        {
            grid.EndUpdate();
        }
        grid.ExpandAll();
    };
}).Bind(Model).GetHtml()

View

@model IEnumerable<mvc4devex.Models.Customers>
@{
    ViewBag.Title = "Customers";
}


<label for="GroupBy">GroupBy:</label>
<select id="GroupBy" onchange="gvGrouping.PerformCallback(this.value);">
    <option value="0">Sokak</option>
    <option value="1">Sokak, City</option>
    <option value="2">Name</option>
</select>
&nbsp;
<input type="button" value="Collapse All Rows" onclick="gvGrouping.CollapseAll();" />
&nbsp;
<input type="button" value="Expand All Rows" onclick="gvGrouping.ExpandAll();" />
<br /><br />
@Html.Partial("_PartialCustomers", Model)
  • 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-07T00:05:40+00:00Added an answer on June 7, 2026 at 12:05 am

    This issue is caused for either of the following reasons:

    • The GridView Extension defined in a separate PartialView contains additional tags;

    • The Action specified within the CallbackRouteValues.Action property is implemented incorrectly (should return the PartialView with the GridView).

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

Sidebar

Related Questions

I use Devexpress ASP.NET component. My question is; Can i use Devexpress Exporting Code
i use Devexpress 8.1 and i can't change font color of the gridview but
I have two app. The one use XAF (devexpress framework), the second use asp.net
Is it possible to use the event RowGetButtonVisibility in ASP.NET MVC? In normal ASP.NET
I am developing asp.net project in c#.In my application i use Devexpress htmleditors and
I use a TcxExtLookupComboBox from Devexpress and try to implement a custom datasource. I
I use ObjectDataSource and bind IEnumerable[Person] to my DevExpress GridView class Person { private
Can I use DevExpress related DxCore to extend VS functionality to add new dialogs/toolwindows
What would be a good 3rd party control package for ASP.NET, easy to use
i use DevExpress TreeList. Does anyone can put some example, how to create simple

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.