[CLOSED] how can I get GridFilters NumericFilter value on code behind?

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] how can I get GridFilters NumericFilter value on code behind?

    how can I get GridFilters NumericFilter value on code behind?


    <Features>
                                            <ext:GridFilters runat="server" ID="GridFilters1" Local="true">
                                                <Filters>
                                                    <ext:StringFilter DataIndex="C1"/>
                                                    <ext:NumericFilter DataIndex="C2"></ext:NumericFilter>
                                                </Filters>
                                            </ext:GridFilters>
                                        </Features>
    How can I get C1 and C2 value on code behind? And I need filter is active or not ?

    I can set numeric filter same as this.
     NumericFilter sf = (NumericFilter)GridFilters1.Filters[1];
                sf.SetValue(1211);
                sf.SetActive(true);
    but I cant get value of filter! and filter is active?
     NumericFilter nf = (NumericFilter)GridFilters1.Filters[1];
                string hoca = nf.GetValue.ToString();
    Last edited by Daniil; Aug 19, 2014 at 12:58 PM. Reason: [CLOSED]
  2. #2
    Hi @cottimucin,

    The only way is to send those values from client to server as extra parameters of a request.
  3. #3
    thank you daniil
  4. #4
    how can I get value of filter and filter is active? on server side?
  5. #5
    Do you mean on client side?
  6. #6
    thank you daniil
    I solved my problem with another way
  7. #7
    Sharing a solution might help others who finds this thread in the future.
  8. #8
    I used a textbox for filter and I set the filter same as below
    so that I dont need getvalue of filter.

    NumericFilter sf = (NumericFilter)GridFilters1.Filters[1];
                sf.SetValue(Convert.ToInt32(filter1.Text));
                sf.SetActive(true);
  9. #9
    Please clarify does it mean that the problem has been resolved?
  10. #10
    problem has not been resolved?
    but I solved my problem with this way.

    if I can get value of filter. I will be very glad.
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Limiting NumericFilter to integers
    By kieron in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Jun 18, 2013, 4:20 AM
  2. Remove gridfilters generated from code behind
    By mkshields9w57 in forum 1.x Help
    Replies: 1
    Last Post: Jun 04, 2012, 3:27 AM
  3. [CLOSED] Code Behind GridFilters
    By BravoTangoOscar in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 25, 2012, 7:52 PM
  4. Replies: 1
    Last Post: Oct 14, 2011, 3:53 PM
  5. [CLOSED] [1.0] NumericFilter
    By methode in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 30, 2010, 3:59 AM

Tags for this Thread

Posting Permissions