Jump to content
Software FX Community

klimekt

Members
  • Posts

    30
  • Joined

  • Last visited

Everything posted by klimekt

  1. I don't see the timeout settings in the new version, where should I be looking?
  2. I thought I would check in again now that it's been almost a year since I last checked, has this feature been added yet?
  3. The grid displays results of user designed queries, so there is no way to predict the dataset structure at design time. It has to be flexible enough to display whatever is throw at it. If you could provide me with a hotfix that would keep my development going until the service pack is available. Thanks, Tomasz
  4. I'm trying to create a grid that's databound at runtime. I've set the grid datasource to <In Code> and I followed the example in the resource center, using the DataSourceSelecting event and assigning the grid datasource to the defaultview of a table in a dataset. When I do this I get the right number of rows in the grid, but there is only one empty column, no data is displayed. If I assign the same defaultview to a standard gridview control it displays the table content correctly. Do I have to define each column in the table manually to accomplish this? I couldn't figure out how to do this since it doesn't seem possible to create a new datafield in the code, only imagefield. Any help would be appreciated. Tomasz
  5. Yes, that'll be fine, thanks. Please drop me an email let me know when it's available. Tomasz
  6. Has an ability to modify / extend the timeout popup been added to gridfx yet? Thanks, Tomasz
  7. I've sent several email to the support email and still haven't received any reply.
  8. There is no ajax on this page, the only assemblies included are gridfx related.
  9. No clues? I would really like to get this to work, it's pretty much production ready except for this one annoying problem.
  10. My current version is 1.0.2994.21460 The only code pertaining to the grid is: Protected Sub Grid4_ItemDeleted(ByVal sender as object, ByVal e As GridFx.WebForms.GridItemDeletedEventArgs) Dim grid4 as GridFX.WebForms.Grid = sender grid4.databind() End Sub I also set page.maintainscrollpositiononpostback = true in pageload, not sure if this has any effect on the grid. As I said, if I remove the databind I get the index out of bounds error, if I leave it in I get the load state error after deleting the last item and clicking anything that causes a callback. Here's the markup for this grid: <GridFX:Grid ID="Grid4" runat="server" DataSourceID="SqlDataSource5" Motif="Elegant" Palette="Professional" OnItemDeleted="grid4_itemdeleted" Width="330px" > <DataFields> <GridFX:NumberField DataPath="uid" IsKey="True" ReadOnly="True"> </GridFX:NumberField> <GridFX:NumberField DataPath="threshold" ReadOnly="True"> </GridFX:NumberField> <GridFX:LookupField DataPath="PrRng_ID" Title="Metric" UniqueID="PrRng_ID1" ReadOnly="True"> <LookupDataSource ControlID="SqlDataSource6" TextDataPath="ProcessType" ValueDataPath="ID" /> <Input ControlType="DropDown" /> <Grouping> <IntervalMarkup> <GridFX:DistinctValuesInterval IncludeFieldTitleInTitle="False" Title="{Value} " /> </IntervalMarkup> </Grouping> </GridFX:LookupField> <GridFX:LookupField Title="Notification Type" UniqueID="Notification Type" DataPath="threshold" ReadOnly="True"> <LookupItems> <GridFX:LookupItem Text="On Any Threshold Change" Value="0" /> <GridFX:LookupItem Text="<FONT COLOR='GREEN'>On Green (Meets Standard)</FONT>" Value="1" /> <GridFX:LookupItem Text="<FONT COLOR='YELLOW'>On Yellow (Marginal)</FONT>" Value="2" /> <GridFX:LookupItem Text="<FONT COLOR='RED'>On Red (Substandard)</FONT>" Value="3" /> <GridFX:LookupItem Text="<FONT COLOR='BROWN'>On Brown (No Data Expected)</FONT>" Value="4" /> <GridFX:LookupItem Text="On Black (Unreported)" Value="5" /> <GridFX:LookupItem Text="Always" Value="9" /> </LookupItems> <Input ControlType="DropDown" /> </GridFX:LookupField> <GridFX:TextField DataPath="location_name" ReadOnly="True" Title="Location"> <Format> <DigitalPanel Height="50px" Width="200px"> </DigitalPanel> </Format> </GridFX:TextField> </DataFields> <Border Type="None" /> <ToolBar Visible="False"> </ToolBar> <FloatingBar Enabled="False" /> <Columns> <GridFX:FieldColumn Field="location_name"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="Notification Type"> </GridFX:FieldColumn> <GridFX:TemplateColumn Style-Header-Bold="False" Style-Header-FontSize="X-Small" Style-Header-ForeColor="ControlText" Style-Header-Italic="False" Style-Header-Underline="False" Width="80px"> <ItemTemplate> <GridFX:CommandButton ID="UnSubButton" runat="server" ButtonType="Push" Command="DeleteItem" Font-Size="X-Small" Text="Unsubscribe" /> </ItemTemplate> </GridFX:TemplateColumn> </Columns> <Grouping Enabled="True"> <RootLevel Expanded="True" Field="PrRng_ID1"> </RootLevel> </Grouping> <Paging Enabled="False"> </Paging> <ItemStyles> <MainStyle FontFamily="Verdana" ForeColor="Black" /> </ItemStyles> <EmptyData Description="Select a subscription and click the Subscribe botton" Heading="No {DataNoun.PluralTitle} Found"> <Image Visible="False" /> </EmptyData> <DataNoun PluralLower="alert subscriptions" PluralTitle="Alert Subscriptions" SingularLower="alert subscription" SingularTitle="Alert Subscription" /> <Filtering Enabled="False"> </Filtering> <Selection Enabled="False" /> </GridFX:Grid> Please let me know if you need any further information and thanks in advance for your efforts to solve this. Tomasz
  11. I have two different gridfx controls on the page and they both exhibit this problem. I use the design time delete functionality, however I do have an item deleted handler for each grid that databinds the grid. For some reason I had to do this, without the databind I get the following error on delete: "Index out of range. Must be non-negative and less then the size of the collection. Parameter name: Index" With the databind in the item deleted handler the delete works fine, but upon the delete of the last item I get an error as described before. The "failed to load viewstate" error occurs after the page load event, but before any of the other events I use (databinding, databound, rendering) are called.
  12. I have a grid that has a Delete Item button in each row. This works well except when I delete the last item in the grid and then click a button on the page I get following error: "Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request." Any idea what's causing this?
  13. I was hoping to do this on the design side, but this works very well also, thanks!
  14. I'd like to create a field that has a hyperlink based on the data value, but I'd like the actual text of the link to say something like "Click here to view" instead of the field value. How can I override the text being displayed?
  15. That might work, I could set KeepExpansion=true whenever I update the row values and set KeepExpantion=false whenever a record is added, removed or modified in a way that would affect its grouping. Actually, now that I think about it I don't really need all the groups to remain in the same state, I just need the group that contains the current row to remain expanded so that the row remains visible. If you can send me the sample code I can modify it to suit my needs. Thanks! Tomasz
  16. Thanks Stephen, that works for me. Hardcoding is bad, mmmkay? How about being able to refresh the grid without losing the current view? I have a custom command button that changes one the values in the current row but the row doesn't update until I bind it again, at which point the groups collapse back to the default state. Is there a better way to do this?
  17. Yes, please. This code is still in development right now but we'll need this error gone before we can go into production. Thanks! Tomasz
  18. Is there a way to set the timeout during grid load? My grid is reading from a list of files that can take longer then 10 seconds to complete. Once in a while I get the "Continue Waiting?" popup. I'd like to increase the timeout so this popup doesn't show so quickly. How can I do this? Also, how can I update the grid values (databind the grid) without losing the current view? If I call the databind() method the grid gets redrawn in it's original view, if I had any groups expanded or rows selected, these selections are lost. Is there another update method that would let me keep the current grid view? Thanks, Tomasz
  19. My grid keeps throwing the following error: ** Events ** --------------- Event code: 3005 Event message: An unhandled exception has occurred. ... Exception information: Exception type: jz Exception message: Image CommandButtonsSelectItemEnabled had no resource file and could not be generated. Request information: Request URL: http://localhost:3420/chartfx2.0/user/GridFXResource.axd?v=10297926016&t=4&m=0&p=33&i=189 Request path: /chartfx2.0/user/GridFXResource.axd ... Stack trace: at jb.b(qc A_0, Nullable`1 A_1, Nullable`1 A_2, gd A_3, Boolean A_4, au A_5) at GridFX.WebForms.GridResourceHandler.d(HttpRequest A_0) at GridFX.WebForms.GridResourceHandler.c(HttpContext A_0) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Strange thing is, I never see this error during execution, it doesn't trip the debugger, the only way I know this error occours is because I have the error email notification enabled in the web.config and after running the page I get an email with the information above. Therefore, I cannot pinpoint exactly where the problem is. I'm running the newest hotfix version of gridfx, not sure if the hotfix upgrade caused this? Any help would be appreciated. Tomasz
×
×
  • Create New...