Jump to content
Software FX Community

John1grid

Members
  • Posts

    20
  • Joined

  • Last visited

John1grid's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I set up a grid with master-detail feature. It is similar to the real estate example "DataBind_MasterDetail.aspx".It works fine in a web page, but my application is based on user controls.When I use the exact same grid and ObjectDataSource code in a user control it does not work correctly.It displays data correctly in the master grid. But when the user clicks the "+" on a row you get the grid's "wait" message repeatedly. You never get a display of the detail data.I wonder how to fix it or even how to debug what is happening after the user clicks the "+". John ***** protected override void OnPreRender(EventArgs e) { if (PopulateOnPrerender) { Grid1.ToolBar.Buttons.ChangePalette.Visible = false; Grid1.ToolBar.Buttons.ClearFiltering.Visible = false;Grid1.ToolBar.Buttons.ShowHiddenColumns.Visible = false; Grid1.ToolBar.Buttons.ToggleHighlighting.Visible = false; //lblCompany_ID.Text = UserContext.Session.Company_ID; //lblWarehouse_ID.Text = UserContext.Session.Warehouse_ID;lblCompany_ID.Text = "1"; lblWarehouse_ID.Text = "1";lblFinished_MIN.Text = "5/15/2007"; lblFinished_MAX.Text = "5/25/2007";lbl_UserID.Text = "";lblSortDesc.Text = "y"; } } **** <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Productivity_Warehouse_ByDay_ViewControl.ascx.cs" Inherits="FastFetchMgr.WebSite3._5.Controls.WH.Productivity_Warehouse_ByDay_ViewControl" %> <% @ Register Assembly="GridFX.WebForms" Namespace="GridFX.WebForms" TagPrefix="GridFX" %><% @ Register Assembly="ChartFX.WebForms" Namespace="ChartFX.WebForms" TagPrefix="chartfx7" %>< table style="width: 860px" > <tr> <td> <GridFX:Grid ID="Grid1" runat="server" DataSourceID="MasterDatasource1" DataParameterField="Finished" Width="98%" Motif="Outlook2007" > <Columns> <GridFX:FieldColumn Field="Finished" Title="Day"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="Avg_PickDurationSecPerPickLin" Title="SecPerPickLin"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="Avg_PickDurationSecPerQtyToPick" Title="SecPerQtyToPick"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="Sum_PickDurationSec" Title="SecPickDuration"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="Sum_Ph1SecondsAmortized" Title="Ph1Sec"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="NumPickTicket" Title="PickTicket"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="SumNumPickLin" Title="PickLin"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="SumQtyToPick" Title="ToPick"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="SumQtyPicked" Title="Picked"> </GridFX:FieldColumn> </Columns> <DataFields> <GridFX:DateTimeField DataPath="Finished" IsKey="True"> </GridFX:DateTimeField> <GridFX:TextField DataPath="Avg_PickDurationSecPerPickLin"> </GridFX:TextField> <GridFX:TextField DataPath="Avg_PickDurationSecPerQtyToPick"> </GridFX:TextField> <GridFX:TextField DataPath="Sum_PickDurationSec"> </GridFX:TextField> <GridFX:TextField DataPath="Sum_Ph1SecondsAmortized"> </GridFX:TextField> <GridFX:TextField DataPath="NumPickTicket"> </GridFX:TextField> <GridFX:TextField DataPath="SumNumPickLin"> </GridFX:TextField> <GridFX:TextField DataPath="SumQtyToPick"> </GridFX:TextField> <GridFX:TextField DataPath="SumQtyPicked"> </GridFX:TextField> </DataFields> <TitleBar Title="Picking Status" Visible="true" Style-HorizontalAlign="Left"> <Image Icon="Box1" /> </TitleBar> <ItemDetails> <ContentTemplate> <GridFX:Grid ID="Grid2" runat="server" DataSourceID="DetailDatasource1" Width="100%"> <Columns> <GridFX:FieldColumn Field="PickTicket" Title="PickTicket"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="PickDurationSecPerPickLin" Title="SecPerPickLin"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="PickDurationSecPerQtyToPick" Title="SecPerQtyToPick"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="PickDurationSec" Title="SecPickDuration"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="Ph1SecondsAmortized" Title="Ph1Sec"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="NumPickLin" Title="PickLin"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="QtyToPick" Title="ToPick"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="QtyPicked" Title="Picked"> </GridFX:FieldColumn> </Columns> <DataFields> <GridFX:TextField DataPath="PickTicket"> </GridFX:TextField> <GridFX:TextField DataPath="PickDurationSecPerPickLin"> </GridFX:TextField> <GridFX:TextField DataPath="PickDurationSecPerQtyToPick"> </GridFX:TextField> <GridFX:TextField DataPath="PickDurationSec"> </GridFX:TextField> <GridFX:TextField DataPath="Ph1SecondsAmortized"> </GridFX:TextField> <GridFX:TextField DataPath="NumPickLin"> </GridFX:TextField> <GridFX:TextField DataPath="QtyToPick"> </GridFX:TextField> <GridFX:TextField DataPath="QtyPicked"> </GridFX:TextField> </DataFields> <ToolBar Visible="False"> </ToolBar> <Border Type="None" /> </GridFX:Grid> </ContentTemplate> </ItemDetails> </GridFX:Grid> <asp:ObjectDataSource ID="MasterDataSource1" runat="server" TypeName="FastFetchMgr.Library.Manager.MgtPickLineManager" SelectMethod="GetPickTicketAmortizePh1SumByDay" EnablePaging="false"> <SelectParameters> <asp:ControlParameter Name="Company_ID" ControlID="lblCompany_ID" PropertyName="Text" /> <asp:ControlParameter Name="Warehouse_ID" ControlID="lblWarehouse_ID" PropertyName="Text" /> <asp:ControlParameter Name="Finished_MIN" ControlID="lblFinished_MIN" PropertyName="Text" /> <asp:ControlParameter Name="Finished_MAX" ControlID="lblFinished_MAX" PropertyName="Text" /> <asp:ControlParameter Name="sSortDesc" ControlID="lblSortDesc" PropertyName="Text" /> </SelectParameters> </asp:ObjectDataSource> <asp:ObjectDataSource ID="DetailDataSource1" runat="server" TypeName="FastFetchMgr.Library.Manager.MgtPickLineManager" SelectMethod="GetPickTicketAmortizePh1OneDay"> <SelectParameters> <asp:ControlParameter Name="Company_ID" ControlID="lblCompany_ID" PropertyName="Text" /> <asp:ControlParameter Name="Warehouse_ID" ControlID="lblWarehouse_ID" PropertyName="Text" /> <asp:ControlParameter ControlID="Grid1" Name="Finished" PropertyName="DataParameterValue" Type="DateTime" /> </SelectParameters> </asp:ObjectDataSource> </td> </tr> <tr> <td> </td> </tr> <tr> <td> <asp:Label ID="lblFinished_MAX" runat="server" Visible="False"></asp:Label> <asp:Label ID="lblWarehouse_ID" runat="server" Visible="False"></asp:Label> <asp:Label ID="lblFinished_MIN" runat="server" Visible="False"></asp:Label> <asp:Label ID="lblCompany_ID" runat="server" Visible="False"></asp:Label> <asp:Label ID="lbl_UserID" runat="server" Visible="False"></asp:Label> <asp:Label ID="lblSortDesc" runat="server" Visible="False"></asp:Label> </td></tr> </ table>
  2. I need to run the example Real Estate Application to learn how Grid FX works. I can get the main page but clicking any link causes an error. Can anyone suggest how to fix it? Below is the error page. Server Error in '/Real Estate' Application. -------- Failed to map the path '/'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Failed to map the path '/'. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [invalidOperationException: Failed to map the path '/'.] System.Web.Configuration.ProcessHostConfigUtils.MapPathActual(String siteName, VirtualPath path) +261 System.Web.Configuration.ProcessHostMapPath.MapPathCaching(String siteID, VirtualPath path) +580 System.Web.Configuration.ProcessHostMapPath.GetPathConfigFilenameWorker(String siteID, VirtualPath path, String& directory, String& baseName) +19 System.Web.Configuration.ProcessHostMapPath.System.Web.Configuration.IConfigMapPath.GetPathConfigFilename(String siteID, String path, String& directory, String& baseName) +37 System.Web.Configuration.HostingPreferredMapPath.GetPathConfigFilename(String siteID, String path, String& directory, String& baseName) +77 System.Web.Configuration.WebConfigurationHost.GetStreamName(String configPath) +166 System.Configuration.Internal.DelegatingConfigHost.GetStreamName(String configPath) +10 System.Configuration.BaseConfigurationRecord.InitConfigFromFile() +249 [ConfigurationErrorsException: An error occurred loading a configuration file: Failed to map the path '/'.] System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) +245611 System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors) +40 System.Configuration.Configuration..ctor(String locationSubPath, Type typeConfigHost, Object[] hostInitConfigurationParams) +412 System.Configuration.Internal.InternalConfigConfigurationFactory.System.Configuration.Internal.IInternalConfigConfigurationFactory.Create(Type typeConfigHost, Object[] hostInitConfigurationParams) +29 System.Web.Configuration.WebConfigurationHost.OpenConfiguration(WebLevel webLevel, ConfigurationFileMap fileMap, VirtualPath path, String site, String locationSubPath, String server, String userName, String password, IntPtr tokenHandle) +961 System.Web.Configuration.WebConfigurationManager.OpenWebConfigurationImpl(WebLevel webLevel, ConfigurationFileMap fileMap, String path, String site, String locationSubPath, String server, String userName, String password, IntPtr userToken) +84 System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(String path) +36 ow.a() +25 GridFX.WebForms.GridResourceHandler..cctor() +451 [TypeInitializationException: The type initializer for 'GridFX.WebForms.GridResourceHandler' threw an exception.] GridFX.WebForms.GridResourceHandler.b(Control A_0) +0 GridFX.WebForms.Grid.d(Object A_0, EventArgs A_1) +392 System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2063056 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2247 ----- Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434
  3. PDyer, Now that I have a license for gauges, this technique actually works. Thank you. Steve
  4. AndreG Maybe some of my questions could be answered by the Real Estate example project. However I am unable to run any of the pages. Maybe you can suggest how to resolve this error that occurs for every page: Server Error in '/Real Estate' Application. Failed to map the path '/'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Failed to map the path '/'. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [InvalidOperationException: Failed to map the path '/'.] System.Web.Configuration.ProcessHostConfigUtils.MapPathActual(String siteName, VirtualPath path) +261 System.Web.Configuration.ProcessHostMapPath.MapPathCaching(String siteID, VirtualPath path) +580 System.Web.Configuration.ProcessHostMapPath.GetPathConfigFilenameWorker(String siteID, VirtualPath path, String& directory, String& baseName) +19 System.Web.Configuration.ProcessHostMapPath.System.Web.Configuration.IConfigMapPath.GetPathConfigFilename(String siteID, String path, String& directory, String& baseName) +37 System.Web.Configuration.HostingPreferredMapPath.GetPathConfigFilename(String siteID, String path, String& directory, String& baseName) +77 System.Web.Configuration.WebConfigurationHost.GetStreamName(String configPath) +166 System.Configuration.Internal.DelegatingConfigHost.GetStreamName(String configPath) +10 System.Configuration.BaseConfigurationRecord.InitConfigFromFile() +249[ConfigurationErrorsException: An error occurred loading a configuration file: Failed to map the path '/'.] System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) +245611 System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors) +40 System.Configuration.Configuration..ctor(String locationSubPath, Type typeConfigHost, Object[] hostInitConfigurationParams) +412 System.Configuration.Internal.InternalConfigConfigurationFactory.System.Configuration.Internal.IInternalConfigConfigurationFactory.Create(Type typeConfigHost, Object[] hostInitConfigurationParams) +29 System.Web.Configuration.WebConfigurationHost.OpenConfiguration(WebLevel webLevel, ConfigurationFileMap fileMap, VirtualPath path, String site, String locationSubPath, String server, String userName, String password, IntPtr tokenHandle) +961 System.Web.Configuration.WebConfigurationManager.OpenWebConfigurationImpl(WebLevel webLevel, ConfigurationFileMap fileMap, String path, String site, String locationSubPath, String server, String userName, String password, IntPtr userToken) +84 System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(String path) +36 ow.a() +25 GridFX.WebForms.GridResourceHandler..cctor() +451[TypeInitializationException: The type initializer for 'GridFX.WebForms.GridResourceHandler' threw an exception.] GridFX.WebForms.GridResourceHandler.b(Control A_0) +0 GridFX.WebForms.Grid.d(Object A_0, EventArgs A_1) +392 System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2063056 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2247 Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434
  5. AndreG, Thank you. Still when I adapt this code I am not able to get numeric labels on y-axis. Two things could help. 1) Identify the specific place in the grid definition that causes numeric labels on y-axis, (or refer me to documentation about this issue) and 2) Provide the complete html for the page and the code-behind the page (or the complete project file). Since the demo project does show the y-axis correctly I would like to setup this exact project and then morph it into mine, e.g. start with something that works. I would need to see the ObjectDataSource(s) etc. and any code-behind that may be involved. Actually I recommend you provide this support for all users for all demo projects. Some other vendors of components show all the code for their demo projects and provide a downoad of complete projects and databases that allow users to run the projects on their own computers. Steve
  6. When the user selects and expands dispaly of a graph, I want to have numbers labelling the scale on the y-axis. But now there are no numbers. Online demo shows a scale on the y-axis but I could not find anthing in documentation. *** my example grid *** <GridFX:Grid ID="Grid2" runat="server" DataSourceID="GetQtyPickedPerSecondAvgAllUsersDataSource" Width="100%"> <Columns> <GridFX:FieldColumn Field="MPL_UserID" Title="User"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="QtyPickedPerSecond" Title="QtyPickedPerSecond"> </GridFX:FieldColumn> </Columns> <DataFields> <GridFX:TextField DataPath="MPL_UserID" Title="User" ReadOnly="true"> <Format> <DigitalPanel Width="200px" Height="50px"> </DigitalPanel> </Format> </GridFX:TextField> <GridFX:NumberField DataPath="QtyPickedPerSecond" ReadOnly="true"> <Format Decimals="2" Display="Gauge"> <GaugeMarkup> <chartfxgauge:horizontalgauge id="HorizontalGauge1" runat="server" backcolor="Transparent" height="18px" width="60px"> <Border Visible="False"></Border> <Titles> <ChartFXGauge:Title Text="%v" Visible="False"> <Layout Alignment="BottomCenter"></Layout> </ChartFXGauge:Title> </Titles> <Scales> <ChartFXGauge:LinearScale Color="Transparent" ColorTransparency="0" FillerVolume="0.9" Max="1000" Min="0" Size="0.95" Thickness="0.9"> <Indicators> <ChartFXGauge:Filler UseRangeColor="Section" Value="0"></ChartFXGauge:Filler> </Indicators> <Bar Color="Transparent"> <Border Thickness="0.05"></Border> </Bar> <Sections> <ChartFXGauge:Section Bar-Color="255, 0, 0" Bar-Visible="False" Max="0.4" Min="-Infinity"> </ChartFXGauge:Section> <ChartFXGauge:Section Bar-Color="255, 255, 0" Bar-Visible="False" Max="0.7" Min="0.4"> </ChartFXGauge:Section> <ChartFXGauge:Section Bar-Color="124, 252, 0" Bar-Visible="False" Max="Infinity" Min="0.7"> </ChartFXGauge:Section> </Sections> <Tickmarks Visible="False"> </Tickmarks> </ChartFXGauge:LinearScale> </Scales> </chartfxgauge:horizontalgauge> </GaugeMarkup> </Format> </GridFX:NumberField> <GridFX:ChartField CollapsedMode="Full" DataSourceID="GetQtyPickedPerSecondAvgAllDatesDataSource" UniqueID="Chart"> <Chart> <Series> <chartfx7:SeriesAttributes Text="Amount"></chartfx7:SeriesAttributes> </Series> <DataSourceSettings> <Fields> <chartfx7:FieldMap DisplayName="QtyPickedPerSecond" Name="QtyPickedPerSecond" Usage="Value"></chartfx7:FieldMap> <chartfx7:FieldMap DisplayName="DatePicked" Name="DatePicked" Usage="XValue"></chartfx7:FieldMap> </Fields> </DataSourceSettings> <AllSeries PointLabelOrganizer-AutoArrange="True" PointLabelOrganizer-Enabled="True" PointLabels-BackColor="Transparent" PointLabels-BorderColor="Transparent"> </AllSeries> <LegendBox Border="None" Visible="False"> </LegendBox> <Titles> <chartfx7:TitleDockable Text="Qty Picked Per Second"></chartfx7:TitleDockable> </Titles> </Chart> </GridFX:ChartField> </DataFields> <ToolBar Visible="False"> </ToolBar> <Border Type="None" /> <ItemDetails> <ContentTemplate> <GridFX:FieldContainer ID="ChartField1" runat="server" Field="Chart"> </GridFX:FieldContainer> </ContentTemplate> </ItemDetails> <TitleBar Title="User" Visible="True" Subtitle="Picking" Style-HorizontalAlign="Left"> <Image Icon="Index" /> </TitleBar> </GridFX:Grid>
  7. Stephen, I'm trying to use master/detail technnique with ObjectDatasource (where the code to get the data is defined in the program, not the grid designer). It works if my child datasource has no parameters. But I need to give the child a parameter value that depends on which grid row the user selected. The parameter should be the value of one of the datafields. If you can send an example it would be fine. Or you could look at my code to see if I am using the wrong approach. The Real Estate example that comes with Grid FX uses an AccessDataSource rather than ObjectDatasource. It does not try to pass a parameter value from the grid to the program code as I need to do. I tried lots of changes. Below is one version. I get an error when the page loads. ObjectDataSource 'GetQtyPickedPerSecondAvgAllDatesDataSource' could not find a non-generic method 'GetQtyPickedPerSecondAvgAllDates' that has parameters: MPL_UserID. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test4.aspx.cs" Inherits="FastFetchMgr.WebSite3._5.Test4" %> <%@ Register Assembly="GridFX.WebForms" Namespace="GridFX.WebForms" TagPrefix="GridFX" %> <%@ Register Assembly="ChartFX.WebForms" Namespace="ChartFX.WebForms" TagPrefix="chartfx7" %> <%@ Register Assembly="ChartFX.WebForms.Gauge" Namespace="ChartFX.WebForms.Gauge" TagPrefix="ChartFXGauge" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <br /> <asp:Panel ID="CommentPanel" runat="server" CssClass="SampleComment" Width="90%" HorizontalAlign="Justify"> </asp:Panel> <br /> <br /> <GridFX:Grid ID="Grid1" DataParameterField="MPL_UserID" runat="server" DataSourceID="GetQtyPickedPerSecondAvgAllUsersDataSource" Width="100%"> <Columns> <GridFX:FieldColumn Field="MPL_UserID" Title="User"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="QtyPickedPerSecond" Title="QtyPickedPerSecond"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="Chart" Title="Picking Record"> </GridFX:FieldColumn> </Columns> <DataFields> <GridFX:TextField DataPath="MPL_UserID" Title="User" ReadOnly="true"> <Format> <DigitalPanel Width="200px" Height="50px"> </DigitalPanel> </Format> </GridFX:TextField> <GridFX:NumberField DataPath="QtyPickedPerSecond" ReadOnly="true"> <Format Decimals="2" Display="Gauge"> <GaugeMarkup> <ChartFXGauge:HorizontalGauge ID="HorizontalGauge1" runat="server" BackColor="Transparent" Height="18px" Width="60px"> <Border Visible="False"></Border> <Titles> <ChartFXGauge:Title Text="%v" Visible="False"> <Layout Alignment="BottomCenter"></Layout> </ChartFXGauge:Title> </Titles> <Scales> <ChartFXGauge:LinearScale Color="Transparent" ColorTransparency="0" FillerVolume="0.9" Max="1000" Min="0" Size="0.95" Thickness="0.9"> <Indicators> <ChartFXGauge:Filler UseRangeColor="Section" Value="0"></ChartFXGauge:Filler> </Indicators> <Bar Color="Transparent"> <Border Thickness="0.05"></Border> </Bar> <Sections> <ChartFXGauge:Section Bar-Color="255, 0, 0" Bar-Visible="False" Max="0.4" Min="-Infinity"> </ChartFXGauge:Section> <ChartFXGauge:Section Bar-Color="255, 255, 0" Bar-Visible="False" Max="0.7" Min="0.4"> </ChartFXGauge:Section> <ChartFXGauge:Section Bar-Color="124, 252, 0" Bar-Visible="False" Max="Infinity" Min="0.7"> </ChartFXGauge:Section> </Sections> <Tickmarks Visible="False"> </Tickmarks> </ChartFXGauge:LinearScale> </Scales> </ChartFXGauge:HorizontalGauge> </GaugeMarkup> </Format> </GridFX:NumberField> <GridFX:ChartField DataSourceID="GetQtyPickedPerSecondAvgAllDatesDataSource" UniqueID="Chart"> <Chart> <Series> <chartfx7:SeriesAttributes Text="Amount"></chartfx7:SeriesAttributes> </Series> <DataSourceSettings> <Fields> <chartfx7:FieldMap DisplayName="QtyPickedPerSecond" Name="QtyPickedPerSecond" Usage="Value"> </chartfx7:FieldMap> <chartfx7:FieldMap DisplayName="DatePicked" Name="DatePicked" Usage="XValue"></chartfx7:FieldMap> </Fields> </DataSourceSettings> <AllSeries PointLabelOrganizer-AutoArrange="True" PointLabelOrganizer-Enabled="True" PointLabels-BackColor="Transparent" PointLabels-BorderColor="Transparent"> </AllSeries> <LegendBox Border="None" Visible="False"> </LegendBox> <Titles> <chartfx7:TitleDockable Text="Picking Record"></chartfx7:TitleDockable> </Titles> </Chart> </GridFX:ChartField> </DataFields> <ToolBar Visible="False"> </ToolBar> <Border Type="None" /> <ItemDetails> <ContentTemplate> <GridFX:FieldContainer ID="ChartField1" runat="server" Field="Chart"> </GridFX:FieldContainer> </ContentTemplate> </ItemDetails> <TitleBar Title="User" Visible="True" Subtitle="Picking" Style-HorizontalAlign="Left"> <Image Icon="Index" /> </TitleBar> </GridFX:Grid> <asp:ObjectDataSource ID="GetQtyPickedPerSecondAvgAllDatesDataSource" runat="server" TypeName="FastFetchMgr.WebSite3._5.Test3" SelectMethod="GetQtyPickedPerSecondAvgAllDates" EnablePaging="false"> <SelectParameters> <asp:ControlParameter ControlID="Grid1" Name="MPL_UserID" PropertyName="DataParameterValue" Type="String" /> </SelectParameters> </asp:ObjectDataSource> <asp:ObjectDataSource ID="GetQtyPickedPerSecondAvgAllUsersDataSource" runat="server" TypeName="FastFetchMgr.WebSite3._5.Test3" SelectMethod="GetQtyPickedPerSecondAvgAllUsers_ForDataSource" EnablePaging="false"> </asp:ObjectDataSource> </div> </form> </body> </html> namespace FastFetchMgr.WebSite3._5 { public partial class Test4 : System.Web.UI.Page { public List<FastFetchMgr.Entity.User.UserAvgQtyPickedEntity> GetQtyPickedPerSecondAvgAllUsers_ForDataSource() { DateTime QtyPickedPerSec_FromDate = DateTime.Parse("3/19/2008"); DateTime QtyPickedPerSec_ToDate = DateTime.Parse("4/19/2008"); int WH_ID = 5; return FastFetchMgr.Library.Manager.MgtPickLineManager.GetQtyPickedPerSecondAvgAllUsersCustomList(WH_ID, QtyPickedPerSec_FromDate, QtyPickedPerSec_ToDate); } public List<FastFetchMgr.Entity.User.UserAvgQtyPickedEntity> GetQtyPickedPerSecondAvgAllDates(String MPL_UserID) { DateTime QtyPickedPerSec_FromDate = DateTime.Parse("3/19/2008"); DateTime QtyPickedPerSec_ToDate = DateTime.Parse("4/19/2008"); //String sUserID = "Bate"; int WH_ID = 5; return FastFetchMgr.Library.Manager.MgtPickLineManager.GetQtyPickedPerSecondAvgAllDates(MPL_UserID, WH_ID, QtyPickedPerSec_FromDate, QtyPickedPerSec_ToDate); } } }
  8. 1. In your example how does this code: radialGauge1.MainScale.Sections[0].Min = Convert.ToDouble(NewMin.text); radialGauge1.MainScale.Sections[0].Max = Convert.ToDouble(NewMax.text); fit with the "at the end" code? Precedes it, goes after it, or? For example it is not clear to me the relationship between radialGauge1.MainScale and radialGauge1.Scales 2. How does the "at the end" code get linked to a specific grid instance like Grid1? 3. Suppose I already defined in the html, using the designer, a DataField with associated gague and sections. Is it possible in the program code to change the min/max values such as: section1.Max = 25; section1.Min = 0; If so, how do I set up the proper reference to these properties in the grid created with the designer?
  9. I use Visual Studio 2008. I am a new user of GridFX. This grid is not yet very useful to me because the same type problems reported earlier continue. Almost every time I use the designer to put a grid on a user control or a web form I get an error message: "Error Creating Control - Unable to cast object of type 'GridFX.WebForms.Grid' to type 'GridFX.WebForms.Grid' On the same page or user control I can put html code in the source view and then I see a grid with no errors in design view. However when I try to use the smart tag in the designer to modify grid properties, as soon as I change a property I always get a "DataFields" error and then the grid will not respond any more in design view.
  10. Thank you for your suggestions. The behavior of this demo seems correct.
  11. Typically a user would want to specify ranges for gague colors rather than having these values fixed at design time, so we need to do it in the program. e.g theseMax and Min values that can be set in the designer: <ChartFXGauge:Section Bar-Color="255, 0, 0" Bar-Visible="False" Max="0.4" Min="-Infinity"></ChartFXGauge:Section> < ChartFXGauge:Section Bar-Color="255, 255, 0" Bar-Visible="False" Max="0.7" Min="0.4"></ChartFXGauge:Section>< ChartFXGauge:Section Bar-Color="124, 252, 0" Bar-Visible="False" Max="Infinity" Min="0.7"></ChartFXGauge:Section> How can we set these properties in the program?
  12. John1grid

    Format guage

    Especially because I still cannot configure the grid using visual studio designer, due to a control error, I need to do things in program code. For example I want to set up a column with a circular guage and another with a traffic light. The only program example I could find anywhere shows only how to do a linear guage: http://support.softwarefx.com/SupportDocTree.aspx?Prod=GridFX10&Type=P It looks like the NumberFormatter may be the solution but I see no guidance or examples on how to link it to a column with a guage.
  13. Reference the error: "Type must be one of the .NET numeric types" Stephen, I did not find any documentation about the DataField types. For example searching for "NumberField" found nothing. But I found the problem is I defined a field: GridFX:NumberField that apparently works only for integers. But the data vaules are real numbers not integers. So I need a field type that can handle real values. What is it?
  14. 1. I downloaded and installed a new grid version. When I put a grid on a web form or user control I get the error: Error Creating Control - Grid1Failed to create designer 'GridFX.WebForms.Grid, GridFX.WebForms, Version=1.0.2986.27353, Culture-neutral, PublicKeyToken=a1878e2052c08dce 2. I ran anyway with this grid definition: <GridFX:Grid ID="Grid1" runat="server" Width="550" DataSourceInCode="True" OnDataSourceSelecting="Grid1_DataSourceSelecting"> <DataFields> <GridFX:TextField DataPath="MPL_UserID" Title="User"> </GridFX:TextField> <GridFX:NumberField DataPath="QtyPickedPerSecond"> </GridFX:NumberField> <GridFX:DateTimeField DataPath="StartDate"> </GridFX:DateTimeField> </DataFields></GridFX:Grid> and this code: protected void Grid1_DataSourceSelecting(object sender, GridFX.WebForms.DataSourceSelectingEventArgs e) { DateTime QtyPickedPerSec_FromDate = DateTime.Parse("3/19/2008"); DateTime QtyPickedPerSec_ToDate = DateTime.Parse("4/19/2008"); String SelectedUserid = "Bate"; Grid1.DataSource = FastFetchMgr.Library.Manager.MgtPickLineManager.GetQtyPickedPerSecondByDateList(SelectedUserid, UserContext.Session.Warehouse_ID, QtyPickedPerSec_FromDate, QtyPickedPerSec_ToDate); Grid1.DataBind(); } But got this run time error: Type must be one of the .NET numeric types. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: Type must be one of the .NET numeric types. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [ArgumentException: Type must be one of the .NET numeric types.] GridFX.WebForms.Number.a(Type A_0) +117 GridFX.WebForms.NumberField.m() +35 GridFX.WebForms.NumberFormatter.o() +64 GridFX.WebForms.NumberFormatter.e() +47 GridFX.WebForms.NumberFormatter.get_Decimals() +25 GridFX.WebForms.NumberFormatter.m() +43 GridFX.WebForms.NumberFormatter.a(Object A_0, IFieldControl A_1) +253 GridFX.WebForms.DataField.a(Object A_0, IFieldControl A_1) +164 GridFX.WebForms.DataField.b(Object A_0, IFieldControl A_1) +155 GridFX.WebForms.DataField.e(IFieldControl A_0) +60 df.a() +62 l5.w() +45 GridFX.WebForms.OutputCell.e() +48 GridFX.WebForms.OutputCell.get_Text() +25 l5.j() +25 lr.a(HtmlTextWriter A_0) +47 df.a(HtmlTextWriter A_0) +477 l5.a(HtmlTextWriter A_0) +163 GridFX.WebForms.OutputCell.i(HtmlTextWriter A_0) +43 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 GridFX.WebForms.OutputCell.RenderControl(HtmlTextWriter writer) +36 GridFX.WebForms.Grid.a(HtmlTextWriter A_0) +402 GridFX.WebForms.Grid.h(HtmlTextWriter A_0) +1274 GridFX.WebForms.Grid.g(HtmlTextWriter A_0) +972 GridFX.WebForms.Grid.f(HtmlTextWriter A_0) +3142 GridFX.WebForms.Grid.c(HtmlTextWriter A_0) +98 GridFX.WebForms.Grid.j(HtmlTextWriter A_0) +353 GridFX.WebForms.Grid.k(HtmlTextWriter A_0) +480 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 GridFX.WebForms.Grid.RenderControl(HtmlTextWriter writer) +36 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20 System.Web.UI.Control.Render(HtmlTextWriter writer) +7 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20 System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +7 System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +29 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20 System.Web.UI.Control.Render(HtmlTextWriter writer) +7 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20 System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +7 Telerik.WebControls.RadPane.RenderContents(HtmlTextWriter writer) +439 System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +29 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 Telerik.WebControls.RadSplitter.RenderContents(HtmlTextWriter writer) +287 System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +29 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20 System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59 System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20 System.Web.UI.Control.Render(HtmlTextWriter writer) +7 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20 System.Web.UI.Page.Render(HtmlTextWriter writer) +26 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 Telerik.WebControls.RadAjaxManager.AJAX_Page_Render(HtmlTextWriter output, Control container) +171 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +98 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20 System.Web.UI.Page.Render(HtmlTextWriter writer) +26 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2558
  15. I downloaded and installed a new grid version. When I put a grid on a web form or user control I get the error: Error Creating Control - Grid1 Failed to create designer 'GridFX.WebForms.Grid, GridFX.WebForms, Version=1.0.2986.27353, Culture-neutral, PublicKeyToken=a1878e2052c08dce
×
×
  • Create New...