Jump to content
Software FX Community

vivek

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by vivek

  1. Can you please give an example for this

    also can you please tell me how could i take the child controls from the parent control and display it on browser

    I am using hguage.rendercontrol() method for displaying guage directly on the browser so i doubt it that i can add horizontal guage in the container.Is there any better meyhod for doing this thing.I mean converting guage into some object and then putting in container and then rendering the guage when i take out child elements one by one on the browser from the parent control

    thanks

    regards

    vivek

     

  2. hi

    i ahve written the code to generate guages dynamically using .net

    now i need to add another controls say heading for that guage in between the guage

    i tried many methods to add them but what i can see is the all the guages first and the controls whcih i added in the end

    is there any way by which i can control this behaviour and insert heading for that guage in between the guages as labels

    i give you the code to ahve a look

     

    If display.printrowvalue > 300 And display.printrowvalue < 400 Then

    collectionlabel.Text = display.collectionvalue

    linebreak.Text =

    "<br/>"

    titlelabel.Text = display.titlevalue

    Controls.Add(collectionlabel)

    Controls.Add(linebreak)

    Controls.Add(titlelabel)

    Controls.Add(linebreak)

    displayguage(display, maxmincombination(8), maxmincombination(9))

    Controls.Add(linebreak)

    End If

    here display is the object of the class which contains all the marker values for the guage which i am showing on browser, print row is one of its property

    display guage is the method with the help of whcih i am generating the guages

    maxmincombination is the array which contains maximum and minimum values for the guage

    now i also want to insert labels collection label and title label along with guages but i can only see the guages to be appearing and no labels

    after all the guages according to loop condition are displayed i can see only the last label values

    does it mean that guages does not allow the generation of other controls in between

    thanks in advance

    regards

    vivek

  3. hi I amtring to generate linear gauges by pure coding and set its values can anybody tell me how to set label values of its marker by code.I mean if I add a marker in horizontal guage I want to set its label values by code so that that values should appear on the browser

    i give u example of my code

    Public Sub displayguage(ByVal combinationclassobject As Combinationclass, ByVal minvalue As Integer, ByVal maxvalue As Integer) Dim Hguage As New ChartFX.WebForms.Gauge.HorizontalGauge

    Hguage.Width = 900

    Hguage.MainIndicator.Value = 100

    Hguage.Scales(0).Min = minvalue

    Hguage.Scales(0).Max = maxvalue

    Dim m1 As New ChartFX.WebForms.Gauge.Marker

    m1.Color = Drawing.Color.Red

    m1.VerticalPosition = IndicatorVerticalPosition.BehindTickmarks

     

    m1.Text = "SalesTyPharmacy"

    m1.Value = combinationclassobject.salesTyPharmacyvalue

    m1.Visible =

    True

    Hguage.MainScale.Indicators.Add(m1)

    Dim m2 As New ChartFX.WebForms.Gauge.Marker

    m2.Color = Drawing.Color.Green

    m2.Text =

    "GrossProfitTyPharmacy"

    m2.Value = combinationclassobject.GrossprofitTyPharmacyvalue

    m2.Visible =

    True

    m2.VerticalPosition = IndicatorVerticalPosition.BehindTickmarks

    Hguage.MainScale.Indicators.Add(m2)

    end sub

×
×
  • Create New...