Jump to content
Software FX Community

John1grid

Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by John1grid

  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. Thank you for your suggestions. The behavior of this demo seems correct.
  10. 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?
  11. 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.
  12. 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?
  13. Stephen, I added the following to web config after <appSettings> section: <runtime> <dependentAssembly> <assemblyIdentity name="GridFx.WebForms.Grid" publicKeyToken="a1878e2052c08dce" culture=""/> <bindingRedirect oldVersion="1.0.2799.23418" newVersion="1.0.2986.27353"/> </dependentAssembly> </runtime> I still see the error in the designer for the grid control but the version mentioned in the error message is the new version. And the grid now has the new features such as the OnDataSourceSelecting event. In the design view the "error creating control" message is long and I don't know how to copy it. Part of it is: Could not load file or assembly GridFX.Designer.dll .... Could not load GridFX.Designer, Version 1.0.2986.27353 Most new code executes but upon the Grid1.databind I get error: "Type must be one of the .NET numeric types" I will investigate the field definitions and the data.
  14. Stephen, Thank you for your helpful response. Probably you resolved most issues I reported except I still have a problem. I get an error when I drag a grid control from the toolbox onto a web user control. Error in Visual Studio error list: Warning 1 D:\wwwroot\FastFetchMgr\FastFetchMgr.WebSite3.5\Controls\WH\GraphControl1.ascx: ASP.NET runtime error: Could not load file or assembly 'GridFX.WebForms, Version=1.0.2799.23418, Culture=neutral, PublicKeyToken=a1878e2052c08dce' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) D:\wwwroot\FastFetchMgr\FastFetchMgr.WebSite3.5\Controls\WH\GraphControl1.ascx 1 1 FastFetchMgr.WebSite3.5 Error displayed on control in designer: Error Creating Control - Grid1 Failed to create designer 'GridFx.WebForms.Grid, GridFx.WebForms.Version 1.0.2986.27353 Note the version of the dll in my bin folder of the project is: Version 1.0.2986.27353 but one of the error messages mentions a different version. This happened after I 1) Installed latest ChartFX, and 2) Installed latest GridFX. Formerly I had installed older versions of both.
  15. I am a new user. I want to use the Custom Filter. But right now I don't understand how it should work for the end user. I did not get the behavior I expect when I used the GridFX online demo for "Custom Filter". Am I doing something wrong or is the demo not working properly? 1. On the toolbar, "Remove all filters" seems to work. It displays all records. 2. But when I enter: Field: Last Name, Condition: StartsWith, "A" 2.1 The first time I click "Add Filter" I see only one record but there should be more. 2.2 After I click "Remove all filters" and I click "Add Filter", I get "no results available" even though there are several records having last name starting with "A" 3. The "Remove last filter" link seems not to respond.
  16. I am a new user. Reference Unbound Mode 1. How do you add DataFields in code? Your online help does not show how to do it in code. http://support.softwarefx.com/SupportDocTree.aspx?Prod=GridFX10&Type=P Instead it shows how to do it using the Visual Studio Properties Windows (Right now I have an "error creating control" situation so I cannot use the wizard) I tried: GridFX.WebForms.DataField df; df = new GridFX.WebForms.DataField(df); df.Title = "StartDate"; Grid1.DataFields.Add(df); But: Error 3 Cannot create an instance of the abstract class or interface 'GridFX.WebForms.DataField' 2. Also, where can we see example solutions using Grid FX? Can we see the code for the online demonstrations of the grid? I have found very few, incomplete, examples in the online Grid fx programmer's guide. 3. In my first attempt, I tried setting a DataSource having 3 rows of data. The grid displays and shows 3 blank rows, no column headings. Grid1.DataSource = FastFetchMgr.Library.Manager.MgtPickLineManager.GetQtyPickedPerSecondByDateList(SelectedUserid, UserContext.Session.Warehouse_ID, fromDate, toDate); Grid1.DataBind(); When I debug I see the right data rows in Grid1.DataSource (but nothing displayed in the grid) Grid1.Columns has count=1 Grid1.Items has Count=3
×
×
  • Create New...