This is a migrated thread and some comments may be shown as answers.

[Solved] EditForm Autopostback Help Please

1 Answer 129 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steele
Top achievements
Rank 1
Steele asked on 23 Apr 2008, 04:14 PM
I have a grid that is always in EditMode for all rows. 
(what happend to attachment's?  I would add a picture but... can't)

I need to be able to do an autopostback for the Quantity Column which works fine by setting it in ItemCreated like this:

 

Private Sub ItemsGrid_ItemCreated(ByVal sender As Object, _  
                                  ByVal e As GridItemEventArgs) _  
                                  Handles ItemsGrid.ItemCreated  
    If (TypeOf e.Item Is GridEditableItem AndAlso _  
               e.Item.IsInEditMode) Then  
        Dim item As GridEditableItem = CType(e.Item, GridEditableItem)  
        Dim editor As GridTextBoxColumnEditor = _ 
            CType(item.EditManager.GetColumnEditor("Quantity"),  _  
                  GridTextBoxColumnEditor)  
        With editor.TextBoxControl  
            .AutoPostBack = True 
            .EnableViewState = True 
        End With  
    End If  
End Sub  
 

1 Answer, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 25 Apr 2008, 12:31 PM
Hi Steele,

How about the TextChanged event of the TextBox? You can perform the calculation on each text box blur this way.

You can also integrate the RadInput controls inside the Grid and benefit from their rich client-side as demonstrated here:

http://www.telerik.com/demos/aspnet/prometheus/Controls/Examples/Integration/GridAndInput/DefaultCS.aspx?product=grid

As to the attachments, they are not allowed in the forums. You can send any resources through regular support tickets.

Kind regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Steele
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Share this question
or