John1grid Posted April 16, 2008 Report Share Posted April 16, 2008 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> Quote Link to comment Share on other sites More sharing options...
AndreG Posted April 17, 2008 Report Share Posted April 17, 2008 Here is the Online Sample code. I hope it helps. --- AndreG --- <gridfx:grid id="Grid1" runat="server" dataparameterfield="property_id" datasourceid="SqlDataSource1" width="100%" Motif="Gmail"><DataFields> <GridFX:TextField DataPath="address_line1"> <Format> <DigitalPanel Height="50px" Width="200px"> </DigitalPanel> </Format> </GridFX:TextField> <GridFX:TextField DataPath="address_city"> <Format> <DigitalPanel Height="50px" Width="200px"> </DigitalPanel> </Format> </GridFX:TextField> <GridFX:TextField DataPath="address_state"> <Format> <DigitalPanel Height="50px" Width="200px"> </DigitalPanel> </Format> </GridFX:TextField> <GridFX:TextField DataPath="address_zip"> <Format> <DigitalPanel Height="50px" Width="200px"> </DigitalPanel> </Format> </GridFX:TextField> <GridFX:TextField DataPath="year_built"> <Format> <DigitalPanel Height="50px" Width="200px"> </DigitalPanel> </Format> </GridFX:TextField> <GridFX:NumberField DataPath="list_price"> </GridFX:NumberField> <GridFX:NumberField DataPath="property_id" IsKey="True" ReadOnly="True"> </GridFX:NumberField> <GridFX:ChartField CollapsedMode="Full" DataSourceID="SqlDataSource2" UniqueID="Chart"> <Chart> <AxisX LabelAngle="45" Title-Text=""> </AxisX> <DataSourceSettings> <Fields> <chartfx7:FieldMap DisplayName="amount" Name="amount" Usage="Value"> </chartfx7:FieldMap> <chartfx7:FieldMap DisplayName="date" Name="date" Usage="XValue"> </chartfx7:FieldMap> </Fields> </DataSourceSettings> <LegendBox Visible="False"> </LegendBox> <Series> <chartfx7:SeriesAttributes Text="amount"> </chartfx7:SeriesAttributes> </Series> </Chart> </GridFX:ChartField> <GridFX:ChartField DataSourceID="SqlDataSource2" ExpandEvent="Never" UniqueID="Chart_1"> </GridFX:ChartField> <GridFX:ChartField CollapsedMode="Full" DataSourceID="SqlDataSource2" UniqueID="Chart_2"> <Chart> <AxisX LabelAngle="45" Title-Text=""> </AxisX> <LegendBox Visible="False"> </LegendBox> <Series> <chartfx7:SeriesAttributes> </chartfx7:SeriesAttributes> <chartfx7:SeriesAttributes> </chartfx7:SeriesAttributes> <chartfx7:SeriesAttributes> </chartfx7:SeriesAttributes> </Series> <Titles> <chartfx7:TitleDockable Text="Transactions History"> </chartfx7:TitleDockable> </Titles> </Chart> </GridFX:ChartField> </DataFields> <SideBars> <GridFX:TemplateBar DependsOnSelectedItem="True" Side="Bottom" Title="Transactions History"> <ContentTemplate> <TABLE width="100%"><TBODY><TR><TD align=center><GridFX:FieldContainer id="ChartField1" runat="server" Field="Chart"></GridFX:FieldContainer></TD></TR></TBODY></TABLE> </ContentTemplate> </GridFX:TemplateBar> </SideBars> <Columns> <GridFX:FieldColumn Field="address_line1" Title="Address"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="address_city" Title="City"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="address_state" Title="State"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="address_zip" Title="Zip Code"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="year_built" Title="Year Built"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="list_price" Title="List Price"> </GridFX:FieldColumn> <GridFX:FieldColumn Field="Chart_1" Title="Transactions"> </GridFX:FieldColumn> </Columns> <TitleBar Title="Properties and Transactions" Visible="True"> <Image HorizontalAlignment="LeftEdgeOfTitle" Icon="Home" /> <Style HorizontalAlign="Right" /> </TitleBar> <ItemDetails> <ContentTemplate> <GridFX:FieldContainer ID="ChartField1" runat="server" Field="Chart_2"> </GridFX:FieldContainer> </ContentTemplate> </ItemDetails> </gridfx:grid> Quote Link to comment Share on other sites More sharing options...
John1grid Posted April 24, 2008 Author Report Share Posted April 24, 2008 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 Quote Link to comment Share on other sites More sharing options...
John1grid Posted April 24, 2008 Author Report Share Posted April 24, 2008 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 Quote Link to comment Share on other sites More sharing options...
StephenP Posted April 24, 2008 Report Share Posted April 24, 2008 Steve, The likely problem is that either the Grid FX designer never registered its HTTP handler with the web.config, it was removed by someone, or the web config was overwritten. At design-time, Grid FX automatically adds a web.config entry for a custom http handler that delivers all the grid's content - images, css, etc. The static constructor for GridResourceHandler checks for the existence of that handler at runtime. It should have given a better exception message, but that's not the culprit. Are there any Grid FX-related entries in your web.config file? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.