We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Newly added row is not removed upon cancel

Thread ID:

Created:

Updated:

Platform:

Replies:

85775 Jul 6,2009 05:13 AM Jul 8,2009 08:50 AM ASP.NET Web Forms (Classic) 4
loading
Tags: GridGroupingControl
Ruslan Gasanbekov
Asked On July 6, 2009 05:13 AM

Hello,

Scenario:

User decides to add new row (clicks on the empty row at the top of the grid). Use sets values to various fields. User decides to cancel the addition. User
presses the x button (i am using yncfusion:NavigatorBar ).
The recorded is added instead of being removed.

See the attachement.

Please advice.

10x.



WebApplication2_942319b7.rar

Rekha P [Syncfusion]
Replied On July 6, 2009 09:45 AM

Hi,

Thank you for your interest in Syncfusion Products.

We regret to let you know that ButtonBars in GridGroupingControl has been deprecated and we would suggest you to use GridPager control associated with GridGroupingControl. Please refer the sample to illustrate this.

http://files.syncfusion.com/support/GGC.Web/7.2.0.37/57612/main.htm

Please refer below for more details about GridPager control.

The GridPager control is used to page the data and to display as a navigation control for databound controls that implement the IPagingContainer interface. You can associate the GridPager control with the PagingControlID. This would bind the GridPager with the databound control. The default markup that is rendered requires client script to do postbacks.

Pager Items :

In order to render out the navigation elements, you must add the Pager Items to the control. The following list of pager items can be used with the GridPager.

- NextPreviousPagerItem - Enables users to navigate through pages, one page at a time, or to jump to first or last page.
- NumericPagerItem - Enables user to select a page by page number.
- TemplatePagerItem - Enables user to create custom paging UI.

Find the below code to add a Grid pager to the page.

[ASPX]

PagingControlID="GridGroupingControl1" Width="445px">

ShowFirstPageButton="True" ShowPreviousPageButton="True" ShowLastPageButton="False"
ShowNextPageButton="False" ButtonType="Link" FirstPageImageUrl="" LastPageImageUrl=""
LastPageText="" NextPageImageUrl="" NextPageText="" PreviousPageImageUrl="" Visible="True" />
NextPreviousLinkCssClass="" PreviousPageImageUrl="" PreviousPageText="..." Visible="True" />
ShowFirstPageButton="False" ShowPreviousPageButton="False" ShowLastPageButton="True"
ShowNextPageButton="True" ButtonType="Link" FirstPageImageUrl="" FirstPageText=""
LastPageImageUrl="" NextPageImageUrl="" PreviousPageImageUrl="" PreviousPageText=""
Visible="True" />

EditLinkText="Edit" EnableDelete="True" EnableEdit="True" UpdateLinkText="Update"
CancelImageUrl="" DeleteImageUrl="" EditImageUrl="" UpdateImageUrl="" Visible="True" />



Please refer the below sample link.

http://samples.syncfusion.com/ASPNET/7.2.0.37/Web/Grid.grouping.web/samples/3.5/Paging/SimplePaging/CS/GGCWithGridPager.aspx

Please let me know if this helps you.

Thanks,
Rekha

Ruslan Gasanbekov
Replied On July 7, 2009 07:58 AM

10x for the update.

But you haven't addressed by question.
Whenever i decide to cancel addition of the new record (by pressing cancel link of GridRowEditUpdateLink) the record is added to the grid(instead of being removed).

Please examine the attachement.

Please advise.

Rekha P [Syncfusion]
Replied On July 8, 2009 06:02 AM

Hi,

I am afraid that I am not able to reproduce this issue. Also I have created a simple sample to test this issue using GridRowEditUpdateLink template and it is available in the below link along with the video clip.

Sample:
http://files.syncfusion.com/support/GGC.Web/7.2.0.37/57612/Sample.zip

Video Clip:
http://files.syncfusion.com/support/GGC.Web/7.2.0.37/57612/VideoClip.zip

Please have a look at the above sample and if still the issue exists, could you please try reproducing it in the above sample and send us the modified sample so that we could sort out the cause of the issue and provide you a solution?

Please let me know if you have any other concerns.

Thanks,
Rekha

Ruslan Gasanbekov
Replied On July 8, 2009 08:50 AM

10x
after examining the code attachement, I was able to solve the problem.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;