Ext.NET & Codebehind

Page 2 of 2 FirstFirst 12
  1. #11

    That is correct. I have fear.

    I need an example using saving data in httphandler. Because de example CRUD in the Example2.Ext.Net is not working, specific when I delete a row I click save. That is in Ext.Net 2.

    Best Regards Peters.

    Marcos Mejia.
  2. #12
    Please create a new thread and describe what you have done and which error is thrown to keep the forum clean and tidy and easy for any user to search and browse - thanks

    Is it CRUD grid example you have problems with?
    https://examples2.ext.net/#/GridPane...s/HttpHandler/

    This is the example I am converting to use code behind atm
    I have some issues with the LINQ to SQL as this is a new to me but otherwise it's just a matter of a search and replace
    The code will be broken up ind small functions to demonstrate the power of code behind

    rgds
  3. #13
    Quote Originally Posted by marcosmejia View Post
    Can you add some controls (buttons command) to the gridpanel in the same codebehind?
    I have created a copy of this example
    https://examples2.ext.net/#/GridPane...s/HttpHandler/

    Code behind version
    http://looksharp.dk/post/2012/05/27/...de-behind.aspx

    hth /Peter
  4. #14

    Thank you very much again.

    Dear Peter!!!

    I prove the example CRUD HttpHandler from code behind . Everything is very well. Certainly thanks. Just as you explain a minor trouble with the StoreResponseData.

    when I delete a row
    it say {data:"", total: 0} Status code : 200, Status Text: ok in the Request Failure Dialog Box.

    I willl try to find the problem. In all case this is a straight step.

    Best Regards,

    Marcos Mejia.
  5. #15

    dataIndex texfield

    Hi Peter,

    in code behind dont exist the dataIndex property of textField, how to save in store ?


    Buttons = {
    new ext.Button()
    {
    Text = "Refresh",
    Icon = ext.Icon.ArrowRefresh,
    OnClientClick = "#{store}.load();"
    }
    }
  6. #16
    Quote Originally Posted by paulinogreis View Post
    in code behind dont exist the dataIndex property of textField
    The dataindex property is hidden, you need to do a workaround like eg my buildcolumn method
    And it's not a property on the textfield object (editor) but the column object

    Quote Originally Posted by paulinogreis View Post
    how to save in store
    store.sync takes care of it and calls the generic handler SuppliersSave

    When you have the CRUD Grid Example up and running you can use my example instead of the markup code

    hth /Peter
    Last edited by plykkegaard; Jul 31, 2012 at 12:37 PM.
  7. #17

    dataIndex texfield formPanel

    Ok, but i am using formPanel


    Quote Originally Posted by paulinogreis View Post
    Hi Peter,

    in code behind dont exist the dataIndex property of textField, how to save in store ?


    Buttons = {
    new ext.Button()
    {
    Text = "Refresh",
    Icon = ext.Icon.ArrowRefresh,
    OnClientClick = "#{store}.load();"
    }
    }
  8. #18
    Ok, but i am using formPanel
    Please create a new thread in the appropriate forum including a sample to reproduce/work with

    Thanks /Peter
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Get json in codebehind.
    By luiz in forum 1.x Help
    Replies: 0
    Last Post: Apr 19, 2011, 4:14 PM
  2. Codebehind: Best practice
    By plykkegaard in forum Open Discussions
    Replies: 3
    Last Post: Jan 27, 2011, 8:41 PM
  3. RowLayout in CodeBehind
    By Juls in forum 1.x Help
    Replies: 1
    Last Post: Jun 04, 2010, 3:46 PM
  4. AjaxEvent in codebehind
    By Wtower in forum 1.x Help
    Replies: 1
    Last Post: Sep 15, 2009, 5:51 AM
  5. Why use Markup instead of Codebehind?
    By dbassett74 in forum 1.x Help
    Replies: 1
    Last Post: Apr 21, 2009, 7:51 PM

Tags for this Thread

Posting Permissions