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

How to Install RadControls for ASP.NET AJAX Q3 2012 (VERSION 2012.3.1016)

4 Answers 178 Views
Installer and VS Extensions
This is a migrated thread and some comments may be shown as answers.
cheekl
Top achievements
Rank 2
cheekl asked on 08 Mar 2013, 10:04 AM
I have upgrade Rad Controls for ASP.NET AJAX to Q1 2013 from Q3 2012. I have a problem in below Server Side Rad Button control on click event and client side validation are not performed when Validation Group is set to true. Also grid parent item value return null during update.

I have tried internal builds from this below link from the forums. But still same thing happen.

http://www.telerik.com/community/forums/aspnet-ajax/button/in-q1-2013-server-side-onclick-event-and-client-side-validation-are-not-performed-when-validationgroup-is-set.aspx

So I plan to roll back earlier version i.e Q3 2012. I can't able to roll back. Please help how to install Q3 2012 version instead of Q1 2013.

Thanks in advance. 

Regards,
Chee.

4 Answers, 1 is accepted

Sort by
0
cheekl
Top achievements
Rank 2
answered on 11 Mar 2013, 02:40 AM
Can we have a workaround ASAP? We are not able to move forward with the current version of Telerik which having problem.
0
Danail Vasilev
Telerik team
answered on 12 Mar 2013, 10:45 PM
Hi Chee,

The mentioned issues with the RadButton have already been fixed in 2013.1.227 internal build. It is possible that your have upgraded the dlls of your project with the dlls from the internal build, but your project is set to load them from the GAC which uses older dlls. You can watch this and this videos related on how to check the location from which your project is loading the RadControl's dlls as well as how to check the version of RadControls on your current page.

Note also, that if you do not want to use the latest internal build, you can use the workaround for the mentioned issues from this sticky thread.

If you want, however, to downgrade your version of RadControls you can simply follow the steps in this blog post. The blog post is about upgrading the version of RadControls but the approach for downgrading is the same.

Regards,
Danail Vasilev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
cheekl
Top achievements
Rank 2
answered on 13 Mar 2013, 04:00 AM
Hi  Danail Vasilev,

Thanks for your reply. I follow your steps to include dlls from internal build 2013.1.227. It's working fine for all Rad Button controls.

But still I have a problem in Rad Grid. 

Parent item return '&nbsp' in Rad Grid Edit Form Item if text box/combo box control's are set visible =  false during update as in below line.




But If I change Display = "false" instead of Visible then it's working fine.

I never encountered these problems with all previous versions. I have attached sample pages (user.aspx & it's cs file).

aspx file
<telerik:RadDock ID="RadDock1" Title="<%$Resources:Page, Title_UserMaintenance %>" runat="server"><br>                <ContentTemplate><br>                    <telerik:RadGrid ID="gv1" runat="server" SkinID="Edit"<br>                                     OnItemInserted="gv1_ItemInserted"<br>                                     OnItemUpdated="gv1_ItemUpdated"<br>                                     OnItemDeleted="gv1_ItemDeleted"<br>                                     OnItemCommand="gv1_ItemCommand"<br>                                     OnItemDataBound="gv1_ItemDataBound"<br>                                     DataSourceID="sqlds_User"><br>                        <MasterTableView DataKeyNames="UserId" runat="server" DataSourceID="sqlds_User"><br>                            <Columns><br>                                <telerik:GridEditCommandColumn ButtonType="ImageButton"></telerik:GridEditCommandColumn><br>                                <telerik:GridBoundColumn DataField="UserId" UniqueName="UserId" Display="false" ReadOnly="true"></telerik:GridBoundColumn><br>                                <telerik:GridBoundColumn DataField="LoginId" HeaderText="<%$ Resources:Label, LoginName %>" SortExpression="LoginId" UniqueName="LoginId"><br>                                </telerik:GridBoundColumn><br>                                <telerik:GridBoundColumn DataField="UserName" HeaderText="<%$ Resources:Label, UserName %>" SortExpression="UserName" UniqueName="UserName"><br>                                </telerik:GridBoundColumn><br>                                <telerik:GridBoundColumn DataField="Password" Display="False" UniqueName="Password"><br>                                </telerik:GridBoundColumn><br>                                <telerik:GridBoundColumn DataField="Email" HeaderText="<%$ Resources:Label, Email %>" SortExpression="Email" UniqueName="Email"><br>                                </telerik:GridBoundColumn><br>                                <telerik:GridBoundColumn DataField="UserTypeDesc" HeaderText="<%$ Resources:Label, UserType %>" SortExpression="UserTypeDesc" UniqueName="UserTypeDesc"><br>                                </telerik:GridBoundColumn><br>                                <telerik:GridBoundColumn DataField="UserType" Display="False" UniqueName="UserType"><br>                                </telerik:GridBoundColumn><br>                                <telerik:GridBoundColumn DataField="MaxLoginAttemptDesc" UniqueName="MaxLoginAttemptDesc" HeaderText="<%$ Resources:Label, MaxLoginAttempt %>" SortExpression="MaxLoginAttemptDesc"><br>                                </telerik:GridBoundColumn><br>                                <telerik:GridBoundColumn DataField="MaxLoginAttempt" Display="False" UniqueName="MaxLoginAttempt"></telerik:GridBoundColumn><br>                                <telerik:GridButtonColumn CommandName="Delete" ButtonType="ImageButton" <br>                                                          ConfirmText="<%$Resources:Message, AreYouSure %>" ConfirmDialogType="RadWindow" ConfirmTitle="<%$Resources:Button, Delete %>"<br>                                                          Text="<%$Resources:Button, Delete %>" UniqueName="column"><br>                                </telerik:GridButtonColumn><br>                            </Columns><br><br>                            <RowIndicatorColumn><br>                                <HeaderStyle Width="20px" /><br>                            </RowIndicatorColumn><br>                            <ExpandCollapseColumn><br>                                <HeaderStyle Width="20px" /><br>                            </ExpandCollapseColumn><br>                            <EditFormSettings EditFormType="Template"><br>                                <FormTemplate><br>                                    <table><br>                                        <tr><br>                                            <td class="field_WorkFlow"><br>                                                <asp:Literal ID="litLogin" runat="Server" Text="<%$ Resources:Label, LoginName %>"></asp:Literal><br>                                            </td><br>                                            <td><br>                                                <telerik:RadTextBox runat="server" MaxLength="50" ID="txtLogin" Width="200px" SkinID="Required" ></telerik:RadTextBox><br>                                            </td><br>                                            <td><br>                                                <asp:RequiredFieldValidator ID="rfvLoginID" ControlToValidate="txtLogin" runat="server" <br>                                                                            ErrorMessage="<%$Resources:Message, FieldCannotBlank %>" CssClass="error"><br>                                                </asp:RequiredFieldValidator><br>                                                <asp:RegularExpressionValidator ID="regExpValLoginID" ControlToValidate="txtLogin" runat="server"<br>                                                                                ErrorMessage="<%$Resources:Message, InvalidLoginID %>" CssClass="error"<br>                                                                                ValidationExpression="[a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z|0|1|2|3|4|5|6|7|8|9|+-|_]+"><br>                                                </asp:RegularExpressionValidator><br>                                            </td><br>                                        </tr><br>                                        <tr><br>                                            <td class="field_WorkFlow"><br>                                                <asp:Literal ID="lblUserName" runat="Server" Text="<%$ Resources:Label, UserName %>"></asp:Literal><br>                                            </td><br>                                            <td><br>                                                <telerik:RadTextBox runat="server" ID="txtUserName" MaxLength="100" Width="300px"></telerik:RadTextBox><br>                                            </td><br>                                            <td><br>                                                <asp:RequiredFieldValidator ID="rfvUserName" ControlToValidate="txtUserName" runat="server" <br>                                                                            ErrorMessage="<%$Resources:Message, FieldCannotBlank %>" CssClass="error"><br>                                                </asp:RequiredFieldValidator><br>                                            </td><br>                                        </tr><br>                                        <tr><br>                                            <td class="field_WorkFlow"><br>                                                <asp:Literal ID="litPassword" runat="Server" Text="<%$ Resources:Label, Password %>"></asp:Literal><br>                                            </td><br>                                            <td><br>                                                <telerik:RadTextBox runat="server" ID="textPassword" MaxLength="50" TextMode="Password"></telerik:RadTextBox><br>                                            </td><br>                                        </tr><br>                                        <tr><br>                                            <td class="field_WorkFlow"><br>                                                <asp:Literal ID="litEmail" runat="Server" Text="<%$ Resources:Label, Email %>"></asp:Literal><br>                                            </td><br>                                            <td><br>                                                <telerik:RadTextBox runat="server" ID="txtEmail" Width="250px" MaxLength="100"></telerik:RadTextBox><br>                                            </td><br>                                            <td><br>                                                <asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txtEmail" <br>                                                                                ErrorMessage="<%$Resources:Message, InvalidEmail %>" CssClass="error"<br>                                                                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"><br>                                                </asp:RegularExpressionValidator><br>                                            </td><br>                                        </tr><br>                                        <tr><br>                                            <td class="field_WorkFlow"><br>                                                <asp:Literal ID="litUserType" runat="Server" Text="<%$ Resources:Label, UserType %>"></asp:Literal><br>                                            </td><br>                                            <td><br>                                                <telerik:RadComboBox ID="ddlUserType"  runat="server" DataTextField="CodeDesc" DataValueField="CodeId" DataSourceID="sqldsUserType"><br>                                                </telerik:RadComboBox><br>                                            </td><br>                                            <td><br>                                                <asp:RequiredFieldValidator ID="rfvddlUserType" ControlToValidate="ddlUserType" runat="server" <br>                                                                            ErrorMessage="<%$Resources:Message, FieldCannotBlank %>" CssClass="error"><br>                                                </asp:RequiredFieldValidator><br>                                            </td><br>                                        </tr><br>                                        <tr><br>                                            <td class="field_WorkFlow"><br>                                                <asp:Literal ID="litMaxLogAttempt" runat="Server" Text="<%$ Resources:Label, MaxLoginAttempt %>" Visible="true"></asp:Literal><br>                                            </td><br>                                            <td><br>                                                <telerik:RadComboBox ID="ddlMaxLoginAttempt"  runat="server"  DataTextField="Description" DataValueField="val" DataSourceID="sqldsPasswordRetry"><br>                                                </telerik:RadComboBox><br>                                            </td><br>                                        </tr><br>                                        <tr><br>                                            <td colspan="2" align="center"><br>                                                <telerik:RadButton ID="Button1" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' runat="server"  CssClass="button"  /><br>                                                <telerik:RadButton ID="Button2" Text="<%$ Resources:Button, Cancel%>" runat="server" CommandName="Cancel" CssClass="button" CausesValidation="false" /><br>                                            </td><br>                                        </tr><br>                                    </table><br>                                </FormTemplate><br>                                <EditColumn UniqueName="EditCommandColumn1"><br>                                </EditColumn><br>                            </EditFormSettings><br>                        </MasterTableView><br>                        <FilterMenu EnableTheming="True"><br>                            <CollapseAnimation Duration="200" Type="OutQuint" /><br>                        </FilterMenu><br>                    </telerik:RadGrid>


 aspx.cs file
protected void gv1_ItemDataBound(object     {<br>        if ((e.Item is GridEditFormItem && e.Item.IsInEditMode))<br>        {<br>            GridEditFormItem EditFormItem = (GridEditFormItem)e.Item;<br>            RadComboBox ddlMaxLoginAttempt = (RadComboBox)EditFormItem.FindControl(C_CTL_MAXLOGINATTEMPT);<br>            RadTextBox textPassword = default(RadTextBox);<br>            <br>            // Add Mode<br>            if (e.Item.ItemIndex < 0)<br>            {<br>                textPassword = (RadTextBox)EditFormItem.FindControl(C_CTL_PASSWORD);<br>                textPassword.Visible = true;<br>                <br>                <br>                return;<br>            }<br>            <br>            GridDataItem ParentItem = EditFormItem.ParentItem;<br>            RadTextBox txtLogin = (RadTextBox)EditFormItem.FindControl(C_CTL_LOGIN_ID);<br>            RadTextBox txtUserName = (RadTextBox)EditFormItem.FindControl(C_CTL_USER_NAME);<br>            textPassword = (RadTextBox)EditFormItem.FindControl(C_CTL_PASSWORD);<br>            RadTextBox txtEmail = (RadTextBox)EditFormItem.FindControl(C_CTL_EMAIL);<br>            RadComboBox ddlUserType = (RadComboBox)EditFormItem.FindControl(C_CTL_USER_TYPE);<br>            Literal litPassword = (Literal)EditFormItem.FindControl("litPassword");<br> <br>            textPassword.Visible = false;<br>            litPassword.Visible = false;<br>                <br>            try<br>            {<br>                txtLogin.Text = ParentItem[C_LOGIN_ID].Text.ToString();<br>                if (ParentItem[C_LOGIN_ID].Text == "&nbsp;")<br>                {<br>                    txtUserName.Text = string.Empty;<br>                }<br>                else<br>                {<br>                    txtUserName.Text = ParentItem[C_USER_NAME].Text.ToString();<br>                }<br>                    <br>                if (ParentItem[C_EMAIL].Text == "&nbsp;")<br>                {<br>                    txtEmail.Text = string.Empty;<br>                }<br>                else<br>                {<br>                    txtEmail.Text = ParentItem[C_EMAIL].Text.ToString();<br>                }<br>                <br>            }<br>            catch (Exception ex)<br>            {<br>                ex.Log("User.gv Error " + ex.Message.ToString());<br>                RadAjaxManager1.WindowAlert(ex.Message.ToString(), Utils.GetResources.Message(Messages.Error));<br>            }<br><br>            string strError = null;<br>            bool flgError = false;<br><br>            strError = "";<br>            flgError = false;<br>                <br>            try<br>            {<br>                ddlUserType.SelectedValue = ParentItem[C_USER_TYPE].Text.ToString();<br>            }<br>            catch (Exception ex)<br>            {<br>                strError = "User Type, ";<br>                flgError = true;<br>            }<br>                <br>            try<br>            {<br>                ddlMaxLoginAttempt.SelectedValue = ParentItem[C_MAXLOGINATTEMPT].Text.ToString();<br>            }<br>            catch (Exception ex)<br>            {<br>                strError = string.Concat(strError, "Password Retry, ");<br>                flgError = true;<br>            }<br>                <br>            if (flgError == true)<br>            {<br>                Int32 intLastComma = default(Int32);<br>                intLastComma = strError.LastIndexOf(",");<br>                strError = strError.Remove(intLastComma, 1);<br>                strError = string.Concat(strError, "no longer exist");<br>                RadAjaxManager1.WindowAlert(strError, Utils.GetResources.Message(Messages.Error));<br>            }<br>        }<br>    }


Thanks in advance.

Regards,
Chee




 
0
Danail Vasilev
Telerik team
answered on 15 Mar 2013, 09:36 AM
Hi Chee,

There is a breaking change in RadGrid since Q 2013 which is related to the persistence of the text in the hidden column cells in the ViewState. This breaking change was made due to the improvement of the performance of RadGrid.

More information about this breaking change as well as approaches on how to get the corresponding value of the hidden column’s cell is available in this sticky thread.


All the best,
Danail Vasilev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Installer and VS Extensions
Asked by
cheekl
Top achievements
Rank 2
Answers by
cheekl
Top achievements
Rank 2
Danail Vasilev
Telerik team
Share this question
or