We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

GridGruopingControl - Plus Minus Images shown in Grouping

Thread ID:

Created:

Updated:

Platform:

Replies:

73627 May 13,2008 08:37 AM Jun 30,2008 03:12 AM ASP.NET Web Forms (Classic) 8
loading
Tags: GridGroupingControl
-
Asked On May 13, 2008 08:37 AM

Hi, I have an ASP.NET Server Control that inherits Syncfusion.Web.UI.WebControls.Grid.Grouping.GridGroupingControl.
When grouping data, the plus image and the minus image are not shown. I'm using GridGroupingControl.AutoFormat = "Office 2003 Blue".
Does something need to be set, when using the GridGroupingControl as a WebControl, in order to display the plus and minus images? Thanks.


Janagan [Syncfusion]
Replied On May 15, 2008 04:27 AM

Hi MB,

Thanks for posting your query to us.

You can display the plus minus image by setting showcaptionplusminus property to true as mentioned in the code below:



mainTD.ChildGroupOptions.ShowCaptionPlusMinus = true;



Please refer the sample in the link below which illustrates the above:

http://websamples.syncfusion.com/samples/Grid.Web/6.2.0.40/Grid_ASP_caption/main.htm


Please try running the sample and let me know if this helps.

Thanks,
Janagan.

-------------------------------------

Regards,
Janagan.



-
Replied On May 15, 2008 05:39 AM

Unfortunately this didn't work for me. My problem is that an X is being displayed instead of the plus/minus image that is supposed to be displayed.
I'm using the GridGroupingControl as an ASP.NET Server Control. The image being displayed instead of the plus/minus image is attached. Is there a solution to this problem pls?



Image.zip

Janagan [Syncfusion]
Replied On May 16, 2008 06:43 AM

Hi MB,

Thanks for the update.

I am afraid that I am not able to reproduce the issue of captionplusminus image. Also,I have created a sample to test this issue and please refer the sample in the link below:

http://websamples.syncfusion.com/samples/Grid.Web/6.2.0.40/Grid_ASP_caption/main.htm


Please try running the sample and if still the issue exists, could you please try reproducing it in the above sample and send us the modified sample and also the OS details so that we could analyse further and sort out the cause to provide you a better solution?

Thanks,
Janagan.


-
Replied On May 16, 2008 08:41 AM

Hi, attached please find the modified sample.
The modification is that instead of directly using the GridGroupingControl in the page, the GridGroupingControl is now an ASP.NET Server Control. Such a Server Control is then used in the page. I'm using Syncfusion 6.1. My OS is Windows XP.
As you can see in the attached project, the + and - signs used in grouping, are not being shown, and instead an X is being shown. Thanks.



WebApplication2.zip

Janagan [Syncfusion]
Replied On May 19, 2008 10:15 AM

Hi MB,

Thanks for the update.

I am able to reproduce the issue of captionplusminus image. The issue mentioned here is suspected to be a defect and we have forwarded this to the development team.We will update you on 22/05/2008 with more details.

Regards,
Janagan.



-
Replied On June 13, 2008 02:26 AM

Hi, any updates on the above issue please?




Rajarajeswari S [Syncfusion]
Replied On June 28, 2008 03:19 PM

Hi,

Sorry for the delay in responding you,


It is possible to have custom plus/minus image in our GidControl instead of having plus/Minus symbol. Please refer the below code snippet which illustrates this:

protected void GridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
//change GroupCaptionPlusMinusButton as Image
if (e.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionPlusMinusCell)
{
e.Style.CellType = "Image";
if (e.Style.Description == "+")
{
e.Style.ImageUrl = "Plus.gif";
}
else
{
e.Style.ImageUrl = "Minus.gif";
}
}
}

Please refer the sample from the below link which fixes the issue wit hthe above code:


Plus_Minus.zip

Please let me know if this helps you out.

Regards,
Raji


-
Replied On June 30, 2008 03:12 AM

That worked fine. Thanks.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;