Jump to content
Software FX Community

rvillamilj

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by rvillamilj

  1. I had no luck with that either. I ended up writing my own grid based on a Repeater, much more customizable and it wasn't as hard as I thought it would be! Good luck, Ricardo.
  2. Well, that's exactly the goal, to completely hide the title cell when there's only one item in the group. I created my own solution using a highly customized Repeater control, it wasn't hard at all, but it would've been nice to use the gridfx. I'll post some pictures once I can get back to fix the colors to make it more user friendly. Thanks, Ricardo.
  3. Hi Stephen, yes, I had thought of those pitfalls and they way I've been handling it is by having alternate colors by group, not by row. So if I have three items in one group, all three items have the same color and the next group (or single item outside the group) will have a different color and so on. Thanks! Ricardo
  4. Hi, Is there a way to not show a group header if the group only contains one item? I'm trying to group by orders with products in each order but then if I have a single product order I'd like to just display it without the ' + order: 123 (1) ' header. Please advise, thanks! Ricardo V.
  5. rvillamilj

    Group Title

    Hi, is there any way you can customize the group title? I'd like it to show some data based on the items contained in it, not just the field name and the count. The Group.Title property is read only. I wish I could do something like this in the DataBound event handler: foreach (GridItemGroup grp in Grid1.Groups) { double groupAmount = 0; foreach (GridItem item in grp.Items) { groupAmount += Convert.ToDouble(item.DataValues["crmID"]); item.Style.BackColor = currColo; } grp.Title = groupAmount.ToString(); } Thanks!
  6. Another thing that may help you help me is that I can't modify the grid on the designer since I get this error message, I've tried removing the grid then readding it without any options and I always get: Error Creating Control - selectedGrid Exception has been thrown by the target of an invocation. I'm thinking it could be related to the assemblies registered in my aspx page, this is what gets auto added when I add a GridFX control: <%@ Register Assembly="GridFX.WebForms" Namespace="GridFX.WebForms" TagPrefix="chartfx7" %><%@ Register Assembly="GridFX.WebForms" Namespace="GridFX.WebForms" TagPrefix="GridFX" %> And these are the dlls in my Bin folder: ChartFX.Base.dll ChartFX.WebForms.Adornments.dll ChartFX.WebForms.Base.dll ChartFX.WebForms.Dhtml.dll ChartFX.WebForms.dll ChartFX.WebForms.Gauge.dll GridFX.WebForms.dll GridFX.WebForms.dll.refresh GridFX.WebForms.xml Thanks! Ricardo V.
  7. Hi, thanks, this is the code where I build a list and databind it to my grid. The grid I want to group is selectedGrid. I'm building a proof of concept for work, so this code is pretty basic, but it's crucial to be able to determine if we can use this functionality of the grid before we decide to purchase GridFX or Infragistics, any help is highly appreciated! protected void OnAddSelectedClick(object sender, EventArgs e) { List<ProductOffering> selected = new List<ProductOffering>(); foreach (GridViewRow row in availableGrid.Rows) { ProductOffering po = new ProductOffering(); po.SolomonGR = row.Cells[1].Text; po.OfferingName = row.Cells[3].Text; po.CRMID = Int32.Parse(row.Cells[4].Text); selected.Add(po); } selectedGrid.DataSource = selected; selectedGrid.DataBind(); }
  8. Hi, I just downloaded and have been learning how to use the Grid FX control, so far it looks pretty good. My biggest need is grouping, and I haven't been able to get it to work, when I try to collapse or expand the group I get a popup with the message: There was a problem while processing your request. The specific error message was: Exception type: System.InvalidCastExceptionMessage: Unable to cast object of type 'GridFX.WebForms.GridItem' to type 'GridFX.WebForms.GridItemGroup'.Stack Trace: at GridFX.WebForms.CellContainerCommandArgs`1.a(Object A_0) This is my markup: <GridFX:Grid ID="selectedGrid" runat="server" Motif="xPExplorer" Palette="xPExplorer"> <DataFields> <GridFX:TextField DataPath="salutation_id" UniqueID="salID" Title="Salutation"> <Grouping Enabled="true"></Grouping> </GridFX:TextField> <GridFX:TextField DataPath="EmailAddress" Title="Email" UniqueID="email"></GridFX:TextField> </DataFields> <Border Type="none" /> <TitleBar Visible="false"></TitleBar> <ToolBar Visible="false"></ToolBar> <Grouping Enabled="True"> <RootLevel Expanded="false" Field="salID"></RootLevel> </Grouping></GridFX:Grid> I'm databinding the grid to a List<T> and when I don't do the grouping it works great. If I enable the FloatingBar I can collapse/expand the group using one of the buttons for this, but I'm looking to disable the floating bar and just use the + or - sign. Thanks!
×
×
  • Create New...