Google gauge and Ext.Net

  1. #1

    Google gauge and Ext.Net

    Hi all
    I'm new in the Ext.Net world and try to make some things.
    Here is Google Gauge example:
    http://code.google.com/apis/chart/in.../examples.html
    (Gauge Example)

    I need to get value from some Ext.Net grid (GridPanel1) and pass that value to Google Gauge code.
    More detailed:
    When user click on some Ext.Net grid row, I need to get value (from column 2) and pass that value to Google Gauge, so instead of:
    gaugeData.setCell(0, 0, 120);
    I will use something like:
     gaugeData.setCell(0, 0, Passed_Value_From_GridPanel1);
    How to do that?

    In the meantime, I have created JavaScript function which can take a parameter and redraw a Gauge.
    Now I need this:
    get a value from selected row and 2. column,
    call JavaScript function with that value

    How to do that?
    Thanks
    Last edited by Daniil; Dec 27, 2011 at 1:33 PM. Reason: Please use [CODE] tags
  2. #2
    Quote Originally Posted by UserClarion View Post
    Hi all
    I'm new in the Ext.Net world and try to make some things.
    Here is Google Gauge example:
    http://code.google.com/apis/chart/in.../examples.html
    (Gauge Example)

    I need to get value from some Ext.Net grid (GridPanel1) and pass that value to Google Gauge code.
    More detailed:
    When user click on some Ext.Net grid row, I need to get value (from column 2) and pass that value to Google Gauge, so instead of:
     gaugeData.setCell(0, 0, 120);
    I will use something like:
     gaugeData.setCell(0, 0, Passed_Value_From_GridPanel1);
    How to do that?

    In the meantime, I have created JavaScript function which can take a parameter and redraw a Gauge.
    Now I need this:
    get a value from selected row and 2. column,
    call JavaScript function with that value

    How to do that?
    Thanks
    Have found a option how to call JavaScript.

    <Listeners>
      <Click Handler="redrawme(I_need_number_here);" />
    </Listeners>
    Now I need help on how to get value of selected row, on second column.
    Please?
    Last edited by Daniil; Dec 27, 2011 at 1:34 PM. Reason: Please use [CODE] tags
  3. #3
    Quote Originally Posted by UserClarion View Post
    Hi all
    I'm new in the Ext.Net world and try to make some things.
    Here is Google Gauge example:
    http://code.google.com/apis/chart/in.../examples.html
    (Gauge Example)

    I need to get value from some Ext.Net grid (GridPanel1) and pass that value to Google Gauge code.
    More detailed:
    When user click on some Ext.Net grid row, I need to get value (from column 2) and pass that value to Google Gauge, so instead of:
    gaugeData.setCell(0, 0, 120);
    I will use something like:
    gaugeData.setCell(0, 0, Passed_Value_From_GridPanel1);
    How to do that?

    In the meantime, I have created JavaScript function which can take a parameter and redraw a Gauge.
    Now I need this:
    get a value from selected row and 2. column,
    call JavaScript function with that value

    How to do that?
    Thanks
    answer is:
    <Listeners>
                                            <Click Handler="myJavaScriptFunc(this.selModel.getSelected().data.NeededColumnIndexName);" />
                                        </Listeners>
    Last edited by Daniil; Dec 27, 2011 at 1:35 PM. Reason: Please use [CODE] tags

Similar Threads

  1. Replies: 0
    Last Post: Jul 17, 2012, 1:35 AM
  2. On the ext.net v2.x gauge chart problems
    By huidesy in forum 2.x Help
    Replies: 8
    Last Post: Jul 05, 2012, 8:07 PM
  3. how to use the charts(gauge and dashboard)
    By Darkizza in forum 2.x Help
    Replies: 1
    Last Post: May 11, 2012, 11:51 AM
  4. [Gauge] Minimum not correct when built in code behind.
    By joris.moonen in forum 2.x Help
    Replies: 0
    Last Post: May 10, 2012, 10:08 AM
  5. Ext.net and Google charts
    By cerqueira81 in forum 2.x Help
    Replies: 0
    Last Post: May 02, 2012, 1:06 PM

Posting Permissions