Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
138 views
Hi,
I have recently updated telerik from Q3 2009 to Q1 2012, and i am facing some problems.
I have used for example document.getElementById('ctl00_PlaceHolderMain__rdtxtFirstName_text') to get the value of _rdtxtFirstName from client side.
but now when changed to Q1 2012, the id is showing ctl00_PlaceHolderMain__rdtxtFirstName insted of ctl00_PlaceHolderMain__rdtxtFirstName_text.
and i have used a css file to set the width of rad textbox and other controls, and now the controls' width is not showing as mentioned in css class.
How can i fix these issues?
Antonio Stoilkov
Telerik team
 answered on 29 Feb 2012
2 answers
268 views
HI,

I installed URL Rewrite module on IIS 7. After I added DB provider and outbound rule, RAD controls stop working, for instance, menu is not opening.
Underneath is copy of rewrite configuration section:
  
<rewrite>
  <providers>
    <provider name="Theme" type="DbProvider, Microsoft.Web.Iis.Rewrite.Providers, Version=7.1.761.0, Culture=neutral, PublicKeyToken=0545b0627da60a5f">
      <settings>
        <add key="ConnectionString" value="Data Source=.;Initial Catalog=db;Integrated Security=false;uid=sa;password=pass" />
        <add key="StoredProcedure" value="UrlTheme" />
        <add key="CacheMinutesInterval" value="10" />
      </settings>
    </provider>
  </providers>
  <rules>
    <clear />
    <rule name="ThemeRewrite">
      <match url="Theme/([a-z]{2,3})(?:[a-z\/]*)?" />
      <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
      <action type="Rewrite" url="theme.aspx?theme={R:1}" />
    </rule>
  </rules>
  <outboundRules>
    <clear />
    <rule name="Theme" enabled="true" stopProcessing="false">
      <match filterByTags="None" pattern="theme\.aspx\?theme=([a-z]{2,3})+" />
      <conditions logicalGrouping="MatchAll" trackAllCaptures="true">
        <add input="{Theme:{R:1}}" pattern="(.+)" />
      </conditions>
      <action type="Rewrite" value="Theme/{C:1}" />
    </rule>
  </outboundRules>
</rewrite>
Saeid Kdaimati
Top achievements
Rank 2
 answered on 29 Feb 2012
5 answers
145 views
Hello,

We have successfully deployed RadComboBox in production on SharePoint 2010 server.    The RadComboBox works fine in production and another one of our staging environments.  However in one of our staging environments, all our RadComboBoxes are not enabled.  We confirmed that Telerik.Web.UI and Telerik.Web.Design was in the GAC (Global Assembly Cache) of our SharePoint server.  We validated the web.config and confirmed SafeControls and handlers added.   When we attempt to load the pages we get the following:

Message: 'Sys' is undefined

Message: 'Type' is undefined

Message: Object doesn't support this property or method

Message: Object expected

Can you provide us with a suggestion to resolve our RadComboBox in the one environment?

Kalina
Telerik team
 answered on 29 Feb 2012
4 answers
114 views
I get the following Javascript error:
Error: Unable to set value of the property 'control': object is null or undefined
When I add a MultiPageView control to the <UpdatedControls> list in RadAjaxManager.

<telerik:AjaxSetting AjaxControlID="RadGridUser" >
<UpdatedControls>  

<telerik:AjaxUpdatedControl ControlID="RadMultiPage1"/>

</UpdatedControls>

</telerik:AjaxSetting>


On ItemSelected event of RadGridUser, I want to be able to refresh (content and selected page index) of the RadMultiPage control.

 
Maria Ilieva
Telerik team
 answered on 29 Feb 2012
1 answer
81 views
Hi All,

          I have a Rad-grid within the Rad-grid i have template-column where i used a literal control in item-plate and a rad combo box.I need to load the rad combo box during the update of each row i need to load the rad combo box dynamically. How to do this ? 

Thanks in Advance.
Princy
Top achievements
Rank 2
 answered on 29 Feb 2012
2 answers
67 views
Strange things are happening with RadButtons, IE9, and Visual Studio 2010.

I started a project and created a webform based on a master page. I added 4 radbuttons, 2 for users and 2 for admins.

The admin buttons are enabled=false and visible=false and will be enabled and visible if user is an admin. The user buttons are also disabled (still visible though) and the text is changed IF the user logged in is an admin.

Initial page load works as desired and if the page is refreshed it works as desired.

Now begins the bizarre behavior.

1. User loads the page and only sees the two user buttons (the admin buttons are invisible). Correct :)
2. User navigates off the page.
3. User clicks back button.
4. ALL 4 buttons are visible and all 4 buttons are in a state as if an admin is logged in. What?
5. Click refresh and all is fine.

Frustrated I started ripping my code apart to try and find where this was happening and nothing I am doing changes this behavior in the slightest. I went as far as completely removing ANY code for three of the buttons (they should not exist at all) and yet steps 2-5 above are the same every time. How can these buttons be on the page after clicking the back button on the browser when they no longer exist in my code? Where the heck are they coming from?
Slav
Telerik team
 answered on 29 Feb 2012
1 answer
54 views
Hi , if this is correct to find RadComboBox in PagerTemplate?
<PagerTemplate>
<telerik:RadComboBox ID="ddlMoveToFolder" Runat="server"
                                            EnableLoadOnDemand="False" EnableVirtualScrolling="false" 
                                            ShowMoreResultsBox="False"  >
                                            <Items>
                                                <telerik:RadComboBoxItem Text="Select Folder" Value="Select Folder" />
                                            </Items>
</telerik:RadComboBox> 
</PagerTemplate>

protected void grdMessage_PreRender(object sender, EventArgs e)
{
GridPagerItem pagerItem = (GridPagerItem)grdMessage.MasterTableView.GetItems(GridItemType.Pager)[0];
        RadComboBox customFolderDDL = (RadComboBox)pagerItem.FindControl("ddlMoveToFolder");
}
Shinu
Top achievements
Rank 2
 answered on 29 Feb 2012
4 answers
409 views
I've found quite a few threads talking about the Display and Visible properties of ExpandCollapseColumn. Several describe work-arounds for hiding this column, but none explain why 2 properties which the documentation says should show/hide the column seem to do nothing at all.

http://www.sitefinity.com/help/developer-manual/radgrid.net2-telerik.webcontrols.gridexpandcolumn_members.html 

Please, either make sure these properties do what the documentation says, or fix the documentation. I should not have to write code to do what the documentation says can be done by setting a property.

Thanks

Ross Crawford
Radoslav
Telerik team
 answered on 29 Feb 2012
3 answers
140 views
there is RadAjaxLoadingPanel which has radgrid.
after displaying duplicate message from server side using

 

ScriptManager.RegisterStartupScript(),grid does not retain the inline mode i.e. row for adding new record gets disappears.
is there any solution to retain inlin einsert mode after postback also.
i tried

 

e.Item.OwnerTableView.IsItemInserted = true;

 

 

 

RadGrid.Rebind()

but its not working

Pavlina
Telerik team
 answered on 29 Feb 2012
2 answers
169 views
Hello Everybody,
In my Project i am using rad grid control. in the grid Dynamically I created text boxes and buttons for adding and editing i don't know how to put validations in java script. I used  the following code and it is not working. can you please help me

<telerik:RadGrid ID="SpGrid" runat="server" AllowMultiRowSelection="False"
    AllowPaging="True" AllowSorting="True" AutoGenerateColumns="false" PageSize="7"
    ShowStatusBar="true" Skin="Outlook">
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
    </HeaderContextMenu>
    <PagerStyle Mode="NumericPages" />
    <MasterTableView AllowMultiColumnSorting="True" CommandItemDisplay="Top" DataKeyNames="SPECIALITY_ID"
        Name="Specialist">
        <Columns>
            <telerik:GridEditCommandColumn HeaderText="Edit" UniqueName="EditCommandColumn">
                <ItemStyle Width="50px" />
            </telerik:GridEditCommandColumn>
            <telerik:GridBoundColumn DataField="SPECIALITY_ID"
                HeaderButtonType="TextButton" HeaderText="SPECIALITY ID"
                SortExpression="SPECIALITY_ID" UniqueName="SPECIALITY_ID">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="SPECIALITY_DESC"
                HeaderButtonType="TextButton" HeaderText="DESCRIPTION"
                SortExpression="SPECIALITY_DESC" UniqueName="SPECIALITY_DESC">
            </telerik:GridBoundColumn>
            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete"
                ConfirmText="Delete this Specialist ?" Text="Delete" UniqueName="DeleteColumn1">
                <HeaderStyle Width="20px" />
                <ItemStyle CssClass="MyImageButton" HorizontalAlign="Center" />
            </telerik:GridButtonColumn>
        </Columns>
        <EditFormSettings EditFormType="Template">
            <FormTemplate>
                <table ID="tblSpecialitymaster" border="1" cellpadding="1" cellspacing="2"
                    rules="none" style="border-collapse: collapse; background: white;" width="100%">
                    <tr class="EditFormHeader">
                        <td colspan="2" style="font-size: small; font-family: Verdana;color:Maroon">
                            <b>SpecialityDetail</b>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table ID="Table3" border="0" cellpadding="1" cellspacing="1" class="module"
                                width="250">
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        SpecialityID:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSpId" runat="server" Font-Names="verdana"   Text='<%# Bind("SPECIALITY_ID") %>'
                                            Font-Size="8.5pt" MaxLength="50" TabIndex="1" ReadOnly="true">
                                                </asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Description:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSpDesc" runat="server" Font-Names="verdana"
                                            Font-Size="8.5pt" MaxLength="50" onkeypress=" return CharOnly('txtSpDesc',50)" TabIndex="2"
                                            Text='<%# Bind("SPECIALITY_DESC") %>' >
                                                </asp:TextBox>
                                                 
                                                <asp:RequiredFieldValidator ID="RFVSpDesc" runat="server" ErrorMessage="Enter Description."
                                                                ControlToValidate="txtSpDesc"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" colspan="2">
                            <asp:Button ID="btnUpdate3" Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>'
                                        Style="color: White; background-color: SteelBlue; font-family: Verdana; font-size: 8pt;
                                        width: 87px;" runat="server" CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>'>
                                    </asp:Button>
                              
                            <asp:Button ID="btnCancel3" runat="server" CausesValidation="False"
                                CommandName="Cancel" Style="color: White; background-color: SteelBlue; font-family: Verdana;
                                        font-size: 8pt; width: 87px;" Text="Cancel" />
                        </td>
                    </tr>
                </table>
            </FormTemplate>
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>
function valid() {
var grid = $find("<%=RadGridCountry.ClientID %>");
var detail= grid.get_detailTables()[0].get_dataItems()[0].findElement("txtSpDesc");
 
}
i trace that detail value it giving always null value
Madhuri
Top achievements
Rank 1
 answered on 29 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?