Skip to content

Commit e7fa7f1

Browse files
Merge pull request #212 from telerik/FormDecorator-Troubleshooting-Copyedits
copy edits only, no comments to review
2 parents 2547aab + 31b5dd8 commit e7fa7f1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

controls/formdecorator/troubleshooting/decorated-gridview-is-not-bound-to-sqldatasource-with-controlparameter .md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ position: 2
1010

1111
# Decorated GridView Is Not Bound to SqlDataSource with ControlParameter
1212

13-
This help article offers a solution to an issue where a decorated asp:GridView by RadFormDecorator cannot be bound to an SqlDataSource with ControlParameter on initial page load.
13+
This help article offers a solution to an issue where a decorated asp:GridView by RadFormDecorator cannot be bound to the SqlDataSource with a ControlParameter on initial page load.
1414

1515
**Problem:**
1616

17-
The asp:GridView cannot be bound on initial page load when it is decorated by RadFormDecorator and the GridView is bound to an SqlDataSource with ControlParameter. The issue can be reproduced with **Example 1**.
17+
The asp:GridView cannot be bound on initial page load when it is decorated by RadFormDecorator and the GridView is bound to the SqlDataSource with a ControlParameter. **Example 1** shows how to reproduce the issue.
1818

19-
>caption **Example 1**: Decorated asp:GridView is not visible on initial page load when it is bound to an SqlDataSource with ControlParameter.
19+
>caption **Example 1**: Decorated asp:GridView is not visible on initial page load when it is bound to the SqlDataSource with ControlParameter.
2020
2121
**ASP.NET**
2222

@@ -44,11 +44,11 @@ The asp:GridView cannot be bound on initial page load when it is decorated by Ra
4444

4545
**Cause:**
4646

47-
In order to decorate all the controls on the page, the RadFormDecorator decorates the children controls of the complex controls as well (i.e., the RadFormDecorator iterates through the controls' collections).
47+
In order to decorate all of the controls on the page, the RadFormDecorator decorates the children controls of the complex controls as well (i.e., the RadFormDecorator iterates through the controls' collections).
4848

49-
There is, however, a binding issue with the GridView when an SqlDataSource is used with ControlParameter and at the same time the GridView's collection is accessed from the code behind. This issue can be easily reproduced on a page with no Telerik UI for ASP.NET AJAX controls and is shown in **Example 2**. The problem also affect the scenario with RadFormDecorator from **Example 1**.
49+
There is, however, a binding issue with the GridView when the SqlDataSource is used with a ControlParameter and at the same time, the GridView's collection is accessed from the code behind. This issue can be easily reproduced on a page with no Telerik UI for ASP.NET AJAX controls and is shown in **Example 2**. The problem also affects the scenario with the RadFormDecorator from **Example 1**.
5050

51-
>caption **Example 2**: asp:GridView cannot be bound to an SqlDataSource with ControlParameter when the GridView's collection is accessed from the code behind.
51+
>caption **Example 2**: asp:GridView cannot be bound to the SqlDataSource with a ControlParameter when the GridView's collection is accessed from the code behind.
5252
5353
**ASP.NET**
5454

@@ -87,7 +87,7 @@ There is, however, a binding issue with the GridView when an SqlDataSource is us
8787

8888
**Solution:**
8989

90-
There are a few options you can choose from, in order to handle the scenario described above.
90+
There are a few options you can choose from in order to handle the scenario described above.
9191

9292
* Bind the DropDownList's data from the code behind instead of declaring the DataSourceID property of the DropDownList.
9393

@@ -141,13 +141,13 @@ There are a few options you can choose from, in order to handle the scenario des
141141

142142
* Skip the following controls form decoration - GridFormDetailsViews, LoginControls, Textbox and ValidationSummary:
143143

144-
>caption **Example 4**: Skip the GridFormDetailsViews,LoginControls,Textbox and ValidationSummary controls from decoration.
144+
>caption **Example 4**: Skip the GridFormDetailsViews, LoginControls, Textbox and ValidationSummary controls from decoration.
145145

146146
**ASP.NET**
147147

148148
<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" ControlsToSkip="GridFormDetailsViews,LoginControls,Textbox,ValidationSummary" />
149149

150-
* Set the DataSourceID property of the DropDownList in the Page_Init event. This approach, however, will force the dropdownlist to rebind itself which may lead to performance issues for large data sources.
150+
* Set the DataSourceID property of the DropDownList in the Page_Init event. This approach, however, will force the DropDownList to rebind itself, which may lead to performance issues for large data sources.
151151

152152
**C#**
153153

0 commit comments

Comments
 (0)