RadGrid Edit Problem

14 posts, 0 answers
  1. sam varg
    sam varg avatar
    20 posts
    Member since:
    Feb 2010

    Posted 17 Mar 2010 Link to this post


    I am fairly new to telerik controls. I have a RadGrid where I need to Edit the data. I did the same thing as in the demo in 
    http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx

    I want to use the form edit. When I click on the Edit image on my grid nothing happens. Below is my Radgrid code. I am sure I am missing something. Please let me know.

    Thanks in advance.

    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" HorizontalAlign="Center"
                                    LoadingPanelID="RadAjaxLoadingPanel1" EnableHistory="True">
                                    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False"
                                        CellPadding="1" Font-Strikeout="False" GridLines="None" GroupingEnabled="False"
                                        Width="100%" AllowAutomaticUpdates="True">
                                        <HeaderContextMenu EnableTheming="True">
                                            <CollapseAnimation Duration="200" Type="OutQuint" />
                                        </HeaderContextMenu>
                                        <AlternatingItemStyle Font-Size="X-Small" />
                                        <ItemStyle Font-Size="X-Small" />
                                        <MasterTableView CellSpacing="-1" ClientDataKeyNames="Origrec" DataKeyNames="ContactId"
                                            ShowFooter="true">
                                            <Columns>
                                                <telerik:GridBoundColumn DataField="ContactType" HeaderText="Contact Type" UniqueName="columnContactType" ColumnEditorID="GridEditTxtContacttype">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="ContactName" HeaderText="Name" UniqueName="columnContactName" ColumnEditorID="GridEditTxtName">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Phone" HeaderText="Phone" UniqueName="columnPhone" ColumnEditorID="GridEditTxtPhone">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Fax" HeaderText="Fax" UniqueName="columnFax" ColumnEditorID="GridEditTxtFax">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Email" HeaderText="Email" UniqueName="columnEmail" ColumnEditorID="GridEditTxtEmail">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Department" HeaderText="Department" UniqueName="columnDepartment" ColumnEditorID="GridEditTxtDepartment">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
                                                </telerik:GridEditCommandColumn>
                                            </Columns>
                                            <EditFormSettings ColumnNumber="2" CaptionDataField="ContactName" CaptionFormatString="Edit {0}">
                                                <FormTableItemStyle Wrap="False"></FormTableItemStyle>
                                                <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White"
                                                    Width="100%" />
                                                <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" />
                                                <EditColumn ButtonType="ImageButton" InsertText="Insert Order" UpdateText="Update record"
                                                    UniqueName="EditCommandColumn1" CancelText="Cancel edit">
                                                </EditColumn>
                                            </EditFormSettings>
                                        </MasterTableView>
                                    </telerik:RadGrid>
                                    <telerik:GridTextBoxColumnEditor ID="GridEditTxtContacttype" runat="server" TextBoxStyle-Width="200px" />
                                    <telerik:GridTextBoxColumnEditor ID="GridEditTxtName" runat="server" TextBoxStyle-Width="150px" />
                                    <telerik:GridTextBoxColumnEditor ID="GridEditTxtPhone" runat="server" TextBoxStyle-Width="150px" />
                                    <telerik:GridTextBoxColumnEditor ID="GridEditTxtFax" runat="server" TextBoxStyle-Width="150px" />
                                    <telerik:GridTextBoxColumnEditor ID="GridEditTxtEmail" runat="server" TextBoxStyle-Width="150px" />
                                    <telerik:GridTextBoxColumnEditor ID="GridEditTxtDepartment" runat="server" TextBoxStyle-Width="150px" />
                                </telerik:RadAjaxPanel>
                                <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" Skin="Vista"
                                    Direction="LeftToRight" HorizontalAlign="Center" IsSticky="True">
                                </telerik:RadAjaxLoadingPanel>
  2. sam varg
    sam varg avatar
    20 posts
    Member since:
    Feb 2010

    Posted 18 Mar 2010 Link to this post


    Any Suggestions?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 19 Mar 2010 Link to this post

    Hi sam,

    As far as the provided mark-up is concerned, there is nothing wrong with it. Could you show how you are bindnig the grid? Could you paste your whole mark-up and code-behind - please, use the code-formatter tool of the ticket editor.

    Thanks.

    Regards,
    Tsvetoslav
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. sam varg
    sam varg avatar
    20 posts
    Member since:
    Feb 2010

    Posted 19 Mar 2010 Link to this post

    Here is the markup and code behind. This is a user control called from another page.

    Aspx code. This is a user control.

    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" HorizontalAlign="Center" 
     LoadingPanelID="RadAjaxLoadingPanel1" EnableHistory="True">  
     <telerik:RadGrid ID="RadGridLeadManager" runat="server" AutoGenerateColumns="False" 
      CellPadding="1" Font-Strikeout="False" GridLines="None" GroupingEnabled="False" 
      Width="100%" AllowAutomaticUpdates="True">  
      <HeaderContextMenu EnableTheming="True">  
       <CollapseAnimation Duration="200" Type="OutQuint" /> 
      </HeaderContextMenu> 
      <AlternatingItemStyle Font-Size="X-Small" /> 
      <ItemStyle Font-Size="X-Small" /> 
      <MasterTableView CellSpacing="-1" ClientDataKeyNames="Origrec" DataKeyNames="Origrec" 
       ShowFooter="true">  
       <Columns> 
        <telerik:GridBoundColumn DataField="ContactType" HeaderText="Contact Type" UniqueName="columnContactType" 
         ColumnEditorID="GridEditTxtContacttype">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="ContactName" HeaderText="Name" UniqueName="columnContactName" 
         ColumnEditorID="GridEditTxtName">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Phone" HeaderText="Phone" UniqueName="columnPhone" 
         ColumnEditorID="GridEditTxtPhone">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Fax" HeaderText="Fax" UniqueName="columnFax" 
         ColumnEditorID="GridEditTxtFax">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Email" HeaderText="Email" UniqueName="columnEmail" 
         ColumnEditorID="GridEditTxtEmail">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="Department" HeaderText="Department" UniqueName="columnDepartment" 
         ColumnEditorID="GridEditTxtDepartment">  
        </telerik:GridBoundColumn> 
        <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">  
        </telerik:GridEditCommandColumn> 
       </Columns> 
       <EditFormSettings ColumnNumber="2" CaptionDataField="ContactName" CaptionFormatString="Edit {0}">  
        <FormTableItemStyle Wrap="False"></FormTableItemStyle> 
        <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White" 
         Width="100%" /> 
        <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" /> 
        <EditColumn ButtonType="ImageButton" InsertText="Insert Order" UpdateText="Update record" 
         UniqueName="EditCommandColumn1" CancelText="Cancel edit">  
        </EditColumn> 
       </EditFormSettings> 
      </MasterTableView> 
     </telerik:RadGrid> 
     <telerik:GridTextBoxColumnEditor ID="GridEditTxtContacttype" runat="server" TextBoxStyle-Width="200px" /> 
     <telerik:GridTextBoxColumnEditor ID="GridEditTxtName" runat="server" TextBoxStyle-Width="150px" /> 
     <telerik:GridTextBoxColumnEditor ID="GridEditTxtPhone" runat="server" TextBoxStyle-Width="150px" /> 
     <telerik:GridTextBoxColumnEditor ID="GridEditTxtFax" runat="server" TextBoxStyle-Width="150px" /> 
     <telerik:GridTextBoxColumnEditor ID="GridEditTxtEmail" runat="server" TextBoxStyle-Width="150px" /> 
     <telerik:GridTextBoxColumnEditor ID="GridEditTxtDepartment" runat="server" TextBoxStyle-Width="150px" /> 
    </telerik:RadAjaxPanel> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" Skin="Vista" 
     Direction="LeftToRight" HorizontalAlign="Center" IsSticky="True">  
    </telerik:RadAjaxLoadingPanel> 
     
             
    Code Behind  
     
             
    protected void Page_Load(object sender, EventArgs e)  
            {  
       getFacilityContacts(Session["sFacilityId"].ToString());  
            }         
     
     
     protected void getFacilityContacts(string facilityId)  
            {  
       ChannelFactory<IConService> Factory = new ChannelFactory<IConService>("ConService");  
                IConService Server = Factory.CreateChannel();  
       using (LabCertServer as IDisposable)  
                {  
        EntityCollection facilityLeadManagerCollection = (EntityCollection)Server.getFacilityContactByType(facilityId, "MANAGER-LEAD");  
        RadGridLeadManager.DataSource = facilityLeadManagerCollection;  
        RadGridLeadManager.DataBind();  
       }  
      }  
     


  6. sam varg
    sam varg avatar
    20 posts
    Member since:
    Feb 2010

    Posted 23 Mar 2010 Link to this post

    any idea what's wrong?
  7. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 23 Mar 2010 Link to this post

    Hi sam,

    You need to use Advanced databinding as opposed to Simple databinding. Please, review the online examples and the related help articles.

    Regards,
    Tsvetoslav
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  8. sam varg
    sam varg avatar
    20 posts
    Member since:
    Feb 2010

    Posted 23 Mar 2010 Link to this post

    the difference I see is the RadGrid1_NeedDataSource. So I added that. Below is my new code. Even after I added it it doing the same thing. I am not geeting the Edit mode. Whe I click on the Add/Edit icons the grid just blinks nothing else.
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" HorizontalAlign="Center"    
     LoadingPanelID="RadAjaxLoadingPanel1" EnableHistory="True">     
     <telerik:RadGrid ID="RadGridLeadManager" runat="server" AutoGenerateColumns="False"    
      CellPadding="1" Font-Strikeout="False" GridLines="None" GroupingEnabled="False"    
      Width="100%" AllowAutomaticUpdates="True">     
      <HeaderContextMenu EnableTheming="True">     
       <CollapseAnimation Duration="200" Type="OutQuint" />    
      </HeaderContextMenu>    
      <AlternatingItemStyle Font-Size="X-Small" />    
      <ItemStyle Font-Size="X-Small" />    
      <MasterTableView CellSpacing="-1" ClientDataKeyNames="Origrec" DataKeyNames="Origrec"    
       ShowFooter="true">     
       <Columns>    
        <telerik:GridBoundColumn DataField="ContactType" HeaderText="Contact Type" UniqueName="columnContactType"    
         ColumnEditorID="GridEditTxtContacttype">     
        </telerik:GridBoundColumn>    
        <telerik:GridBoundColumn DataField="ContactName" HeaderText="Name" UniqueName="columnContactName"    
         ColumnEditorID="GridEditTxtName">     
        </telerik:GridBoundColumn>    
        <telerik:GridBoundColumn DataField="Phone" HeaderText="Phone" UniqueName="columnPhone"    
         ColumnEditorID="GridEditTxtPhone">     
        </telerik:GridBoundColumn>    
        <telerik:GridBoundColumn DataField="Fax" HeaderText="Fax" UniqueName="columnFax"    
         ColumnEditorID="GridEditTxtFax">     
        </telerik:GridBoundColumn>    
        <telerik:GridBoundColumn DataField="Email" HeaderText="Email" UniqueName="columnEmail"    
         ColumnEditorID="GridEditTxtEmail">     
        </telerik:GridBoundColumn>    
        <telerik:GridBoundColumn DataField="Department" HeaderText="Department" UniqueName="columnDepartment"    
         ColumnEditorID="GridEditTxtDepartment">     
        </telerik:GridBoundColumn>    
        <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">     
        </telerik:GridEditCommandColumn>    
       </Columns>    
       <EditFormSettings ColumnNumber="2" CaptionDataField="ContactName" CaptionFormatString="Edit {0}">     
        <FormTableItemStyle Wrap="False"></FormTableItemStyle>    
        <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White"    
         Width="100%" />    
        <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" />    
        <EditColumn ButtonType="ImageButton" InsertText="Insert Order" UpdateText="Update record"    
         UniqueName="EditCommandColumn1" CancelText="Cancel edit">     
        </EditColumn>    
       </EditFormSettings>    
      </MasterTableView>    
     </telerik:RadGrid>    
     <telerik:GridTextBoxColumnEditor ID="GridEditTxtContacttype" runat="server" TextBoxStyle-Width="200px" />    
     <telerik:GridTextBoxColumnEditor ID="GridEditTxtName" runat="server" TextBoxStyle-Width="150px" />    
     <telerik:GridTextBoxColumnEditor ID="GridEditTxtPhone" runat="server" TextBoxStyle-Width="150px" />    
     <telerik:GridTextBoxColumnEditor ID="GridEditTxtFax" runat="server" TextBoxStyle-Width="150px" />    
     <telerik:GridTextBoxColumnEditor ID="GridEditTxtEmail" runat="server" TextBoxStyle-Width="150px" />    
     <telerik:GridTextBoxColumnEditor ID="GridEditTxtDepartment" runat="server" TextBoxStyle-Width="150px" />    
    </telerik:RadAjaxPanel>    
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" Skin="Vista"    
     Direction="LeftToRight" HorizontalAlign="Center" IsSticky="True">     
    </telerik:RadAjaxLoadingPanel>    
        
                
    Code Behind     
        
                
    protected void Page_Load(object sender, EventArgs e)     
            {     
       getFacilityContacts(Session["sFacilityId"].ToString());     
            }            
        
        
     protected void getFacilityContacts(string facilityId)     
            {     
       ChannelFactory<IConService> Factory = new ChannelFactory<IConService>("ConService");     
                IConService Server = Factory.CreateChannel();     
       using (Server as IDisposable)     
                {     
        EntityCollection facilityLeadManagerCollection = (EntityCollection)Server.getFacilityContactByType(facilityId, "MANAGER-LEAD");     
        RadGridLeadManager.DataSource = facilityLeadManagerCollection;     
        RadGridLeadManager.DataBind();     
       }     
      }  
     
     protected void RadGridLeadManager_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
            {  
            ChannelFactory<IConService> Factory = new ChannelFactory<IConService>("ConService");     
            IConService Server = Factory.CreateChannel();     
       using (Server as IDisposable)     
                {     
        EntityCollection facilityLeadManagerCollection = (EntityCollection)Server.getFacilityContactByType(facilityId, "MANAGER-LEAD");     
        RadGridLeadManager.DataSource = facilityLeadManagerCollection;     
       }     
    }         
        
     
     
  9. sam varg
    sam varg avatar
    20 posts
    Member since:
    Feb 2010

    Posted 23 Mar 2010 Link to this post

    <telerik:RadGrid ID="RadGridLeadManager" runat="server" AutoGenerateColumns="False"    
      CellPadding="1" Font-Strikeout="False" GridLines="None" GroupingEnabled="False"    
      Width="100%" AllowAutomaticUpdates="True" 

    OnNeedDataSource

     

    ="RadGridLeadManager_NeedDataSource">   


    Grid is like this.
  10. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 24 Mar 2010 Link to this post

    Hello sam,

    Once again, there is nothing wrong with the code provided. As a proof of that I am sending you a small sample where I have practically incorporated your code snippets, however, with a different database. I suspect the problem lies elsewhere in your implementation, for which reason I'd suggest that you open up a formal support ticket and send a runnable test project for investigation on our side. This will facilitate us to a great extent in helping you out of this situation.

    Greetings,
    Tsvetoslav
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  11. sam varg
    sam varg avatar
    20 posts
    Member since:
    Feb 2010

    Posted 24 Mar 2010 Link to this post


    I found the problem. As I mentioned earlier this was in an user control. This had a conflict with the 

    RadAjaxManagerProxy on the page it was called from.

    Thanks for all your time and I really appreciate all your help.

    Thanks you very much.
    Sam

  12. cute gal
    cute gal avatar
    5 posts
    Member since:
    Mar 2010

    Posted 25 Mar 2010 Link to this post

    hi iam new to telerik controls.
    n m facing prb to edit contents in radgrid.
    i want to make use of inline editing mode
    i only want to update quantity field..
    please help me...
    thanxxx
     <asp:SqlDataSource ID="SqlDataSource1" runat="server" DataSourceMode="DataSet" ConnectionString="<%$ ConnectionStrings:sshopConnectionString %>" 
                        SelectCommand="SELECT ShoppingCartId, Product.ProductName, Picture.PictureBinary as ProductImage, Product.Cost as UnitPrice, ShoppingCart.Quantity, (ShoppingCart.Quantity * Product.Cost) as SubTotal FROM ShoppingCart, Product, Picture WHERE Product.ProductId=ShoppingCart.ProductId and Picture.PictureId in (select top 1 PictureId from Picture as pp where pp.ProductId=Product.ProductId ) and ([CartGUID] = @CartGUID)" 
                        UpdateCommand="Update ShoppingCart set Quantity=@Quantity where ShoppingCartId=@ShoppingCartId"
                        <SelectParameters> 
                            <asp:ControlParameter ControlID="lblCartid" Name="CartGUID" PropertyName="Text" Type="String" /> 
                        </SelectParameters> 
                        <UpdateParameters> 
                            <asp:Parameter Type="String" Name="Quantity" /> 
                            <asp:Parameter Type="Double" Name="ShoppingCartId" /> 
                        </UpdateParameters> 
                    </asp:SqlDataSource> 
     
     
     
    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" 
                        GridLines="None" AllowAutomaticDeletes="True" PageSize="10" AllowAutomaticUpdates="True" 
                        AllowPaging="True"
                          <PagerStyle Mode="NextPrevAndNumeric" /> 
                        <MasterTableView DataSourceID="SqlDataSource1" Width="100%" CommandItemDisplay="TopAndBottom" 
                            DataKeyNames="ShoppingCartId"
                            <Columns> 
                                <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                                </telerik:GridEditCommandColumn> 
                                <telerik:GridBoundColumn DataField="ShoppingCartId" DefaultInsertValue="" HeaderText="ShoppingCartId" 
                                    SortExpression="ShoppingCartId" UniqueName="ShoppingCartId" DataType="System.Int32" 
                                    ReadOnly="True" Display="False" Visible="False"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="ProductName" DefaultInsertValue="" HeaderText="ProductName" 
                                    SortExpression="ProductName" ReadOnly ="true" UniqueName="ProductName"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBinaryImageColumn DataField="ProductImage" UniqueName="ProductImage" 
                                    HeaderText="Product Image" ImageAlign="Left" ResizeMode="Fit" ImageHeight="80px" 
                                    ImageWidth="80px" ReadOnly="True" Resizable="False" ItemStyle-Height="80px" ItemStyle-Width="80px"
                                </telerik:GridBinaryImageColumn> 
                                <telerik:GridBoundColumn DataField="UnitPrice" DataType="System.Decimal" DefaultInsertValue="" 
                                    HeaderText="UnitPrice" ReadOnly="true" SortExpression="UnitPrice" UniqueName="UnitPrice"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="Quantity" DataType="System.Int32" DefaultInsertValue="" 
                                    HeaderText="Quantity" ColumnEditorID="GridTextBoxColumnEditor1" SortExpression="Quantity" UniqueName="Quantity"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="SubTotal" DataType="System.Decimal" DefaultInsertValue="" 
                                    HeaderText="SubTotal" ReadOnly="True" SortExpression="SubTotal" UniqueName="SubTotal"
                                </telerik:GridBoundColumn> 
                            </Columns> 
                            <EditFormSettings> 
                                <EditColumn UniqueName="EditCommandColumn1"
                                </EditColumn> 
                            </EditFormSettings> 
                        </MasterTableView> 
                        <ClientSettings> 
                    <ClientEvents OnRowDblClick="RowDblClick" /> 
                </ClientSettings> 
                    </telerik:RadGrid> 


  13. Insad
    Insad avatar
    17 posts
    Member since:
    Jan 2010

    Posted 25 Mar 2010 Link to this post

    Explaining your problem in more detail is helpfull. What you have done/tried sofar?
    Writing in normal words will get more attention from the visitors here.

    For the editing inline with automatic operations, that's what you need i think, is a nice example online:
    http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx

    Cheers
  14. cute gal
    cute gal avatar
    5 posts
    Member since:
    Mar 2010

    Posted 25 Mar 2010 Link to this post

    hi Insad , thnx 4 ur post ..
    prb was wit my datasource..i've nw chngd it to:
    <asp:SqlDataSource ID="source1" runat="server" DataSourceMode="DataSet" ConnectionString="<%$ ConnectionStrings:sshopConnectionString %>" 
                        OldValuesParameterFormatString="original_{0}" ConflictDetection="CompareAllValues" 
                        SelectCommand="SELECT ShoppingCartId, Product.ProductName, Picture.PictureBinary as ProductImage, Product.Cost as UnitPrice, ShoppingCart.Quantity, (ShoppingCart.Quantity * Product.Cost) as SubTotal FROM ShoppingCart, Product, Picture WHERE Product.ProductId=ShoppingCart.ProductId and Picture.PictureId in (select top 1 PictureId from Picture as pp where pp.ProductId=Product.ProductId ) and ([CartGUID] = @CartGUID)" 
                        UpdateCommand="Update [ShoppingCart] set [Quantity]=@original_Quantity where [ShoppingCartId]=@original_ShoppingCartId" 
                        DeleteCommand="DELETE FROM [ShoppingCart] WHERE [ShoppingCartId] = @original_ShoppingCartId"
                        <SelectParameters> 
                            <asp:ControlParameter ControlID="lblCartid" Name="CartGUID" PropertyName="Text" Type="String" /> 
                        </SelectParameters> 
                        <UpdateParameters> 
                            <asp:Parameter Type="Int32" Name="original_Quantity" /> 
                            <asp:Parameter Type="Double" Name="original_ShoppingCartId" /> 
                        </UpdateParameters> 
                        <DeleteParameters> 
                            <asp:Parameter Type="Double" Name="original_ShoppingCartId" /> 
                        </DeleteParameters> 
                    </asp:SqlDataSource> 

    nw m able 2 delete records bt still editing it is nt working...
    ne ideas whts getting wrong???

  15. cute gal
    cute gal avatar
    5 posts
    Member since:
    Mar 2010

    Posted 26 Mar 2010 Link to this post

    hey i gt it.... my fault was i was updating quantity with original values only..
    neways thnx 4 ur  response...
    ..
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017