Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
315 views
I'm trying to clear or reset the RAD ComboBox via JQuery and I just can't seem to find the right way to do it. I'm firing a click event on a radiobuttonlist that I would like to set the RADComboBox to nothing.I get into my click even, but that combobox just wont play nice. Here are the ways I have tried it...

$('#<%=Me.cboCounterParty.ClientID %>').val("");
$('#<%=Me.cboCounterParty.ClientID %>').val([]);
$telerik.$('#<%=Me.cboCounterParty.ClientID %>').val("");
$telerik.$('#<%=Me.cboCounterParty.ClientID %>').val([]);


On a side note I am able to pull what's in the combobox via
alert($telerik.$('#<%=Me.cboCounterParty.ClientID %>').val());

Thanks!
Hristo Valyavicharski
Telerik team
 answered on 04 Jun 2013
3 answers
68 views

I am having an issue with the formatting of my webpage.  I am using both telerik:RadButton and telerik:RadPanelItem on my web page.  They have been working fine until now when I am trying to change the skins on both tools.  Before I changed them they were both Web20 but I want to change the RadPanel skin to Windows7 and RadButtons skin to Telerik.  When I look at the webpage in IE10, Chrome, and Firefox the page shows both the new skins, but when I look at the page in IE8 and IE9 the RadPanel disappears and the format is gone.  I have tried other skins for the RadButton but have not been able to get anything to work except if I go back to what I was doing before with having both items using the Web20 skin.  Any ideas on why this is happening?

Kate
Telerik team
 answered on 04 Jun 2013
1 answer
387 views
Hi,

I'm having some trouble uploading/deploying the website with RadControls onto the ftp server. I've also updated the server asp.net framework version to 4.0. However, I keep getting the following parse error (see Image below). :

Here is the web.config file:
<?xml version="1.0"?>
<configuration>
  <appSettings>
    <add key="Telerik.Skin" value="Silk"/>
    <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled"/>
    <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled"/>
  </appSettings>
  <system.web>
    <customErrors mode ="Off"/>
    <compilation debug="true" targetFramework ="4.5"/>
    <httpRuntime />
    <pages>
      <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
      </controls>
    </pages>
    <httpHandlers>
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
    </httpHandlers>
    <httpModules>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
    </httpModules>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="RadUploadModule"/>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode"/>
      <remove name="RadCompression"/>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode"/>
    </modules>
    <handlers>
      <remove name="ChartImage_axd"/>
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/>
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_RadUploadProgressHandler_ashx"/>
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_Web_UI_WebResource_axd"/>
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode"/>
    </handlers>
  </system.webServer>
</configuration>

Any suggestions to solve this error? What are the following steps required to upload website with radcontrols?

Thanks.

Best Regards,
Syatira
Martin
Telerik team
 answered on 04 Jun 2013
4 answers
72 views
Hello, 
Is there a way to enable paging for RadPanelbar.
I tried adding RadDataPager and used RadPanelbar ID as "PagedControlID", but it didn't work.
Because of requirement, I can't wrap it with div and allow scrolling.

Thanks in advanced.
Robin
Top achievements
Rank 2
 answered on 04 Jun 2013
1 answer
137 views
I have  javascript function for opening RadWindow.

function OpenWindow(oWnd, url, width, height) {
    url = url == null ? oWnd.get_navigateUrl() : url;
 
    width = width == null ? oWnd.get_width() : width;
    width = width == null ? 600 : width;
     
    height = height == null ? oWnd.get_height() : height;
    height = height == null ? 600 : height;
 
    oWnd.set_keepInScreenBounds(true);
    oWnd.set_showContentDuringLoad(false);
    oWnd.setSize(width, height);
    oWnd.setUrl(url);
    oWnd.show();
}

I have noticed that radWindow adds the following at the end of the url in the opened RadWindow: &rwndrnd=0.37625581697120214

As long as the length of url is less than 4096 characters, the RadWindow opens and displays the content. But once the length of url including the addon exceeds 4096 characters, the RadWindow opens but stays blank. Checking the propery of the opened blank RadWindow shows about:blank for Address. Note that this happens only in Internet Explorer. It works fine in Firefox.

I am using 2011.3.1305.40.
Dobromir
Telerik team
 answered on 04 Jun 2013
3 answers
141 views
Hello,

I am currently getting a strange error. Throughout our application we are using the GetRadwindow Function to find the currently opened RadWindow, then closing it after a button submit.

function GetRadWindow() {
           var oWindow = null;
 
           if (window.radWindow) {
               oWindow = window.radWindow;
           }
           else if (window.frameElement.radWindow) {
               oWindow = window.frameElement.radWindow;
           }
 
           return oWindow;
       }
 
       function returnToParent(ID) {
           //create the argument that will be returned to the parent page
           var oArg = new Object();
           oArg.ID = ID;
 
           //get a reference to the current RadWindow
           var oWnd = GetRadWindow();
 
           oWnd.Close();
       }

When It calls this function I am getting the following error:

Unable to get value of the property 'offsetWidth': object is null

I am stumped to what could be causing this, because we weren't getting this error before. We recently updated our telerik controls, so maybe this as something to do with it? Any help would be appreciated.

Thanks,

Ashlee




Dobromir
Telerik team
 answered on 04 Jun 2013
2 answers
149 views
Hello,

Using web application, i need to draw BAR chart.
I have the following details in database

EmployeeId Score Result Date

E001            20      Fail     01-05-2012
E002            80      Pass     01-05-2012
E003            85       Pass       02-05-2012
E001             60      Pass       03-05-2012
E001             86       Pass      01-06-2012  
E002            80      Pass     01-06-2012
E003            85       Pass       01-06-2012

need to prepare bar chart for the above employees.
There may be many employees but each employees bar should be displayed with unique colors. Also Legend should display Employee Id with its respective bar color.
Eg: E001 as Red, E002 as Pink, E003 as Blue .........

Its urgent.
Thank you
jayanthi
jayanthi
Top achievements
Rank 1
 answered on 04 Jun 2013
3 answers
190 views
Hi,

I have a radtextbox and from server code I want to trim a list of characters from the end. How to accomplish?

Thanks,
Antony.
Shinu
Top achievements
Rank 2
 answered on 04 Jun 2013
1 answer
350 views
I'm getting an error whenever I try to change the page or filter a RadGrid inside a RadPageView (which in itself is in an UpdatePanel). I only have the one control named "Audits" (the name of the PageView, not the grid) and it doesn't matter if I rename the control.

An outline of my setup is below:
<asp:UpdatePanel ID="pnl_mainUpdate" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
  <telerik:RadMultiPage ID="rdmp_pages" runat="server" SelectedIndex="0" CssClass="tabbedPage">
            <telerik:RadPageView ID="Audits" runat="server" CssClass="overflowTab">
                <telerik:RadGrid ID="rdgAudits" runat="server" AutoGenerateColumns="false" Skin="WebBlue" AllowPaging="True" PageSize="10" Width="95%" OnNeedDataSource="RdgAuditsNeedDataSource" CssClass="centreAlign" EnableHeaderContextFilterMenu="true" EnableHeaderContextMenu="true" EnableAjax="true"   >
                    <MasterTableView AllowFilteringByColumn="true" CommandItemDisplay="None" Font-Names="'Ubuntu', sans serif" IsFilterItemExpanded="false" DataKeyNames="Id"  >
                        <CommandItemSettings ShowAddNewRecordButton="false" ShowRefreshButton="false" />
                        <NoRecordsTemplate>
                            No audit history recorded
                        </NoRecordsTemplate>
                        <Columns>
                            <telerik:GridBoundColumn HeaderText="Field" DataField="Field" />
                            <telerik:GridBoundColumn HeaderText="Original Value" DataField="From" />
                            <telerik:GridBoundColumn HeaderText="New Value" DataField="To" />
                            <telerik:GridBoundColumn HeaderText="Changed By" DataField="UserName" />
                            <telerik:GridBoundColumn HeaderText="Changed" DataField="Changed" />
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>
            </telerik:RadPageView>
        </telerik:RadMultiPage>
                        <asp:UpdateProgress ID="UpdateProgressIcon" runat="server" DisplayAfter="0" AssociatedUpdatePanelID="pnl_mainUpdate">
                            <ProgressTemplate>
                                <div class="loadingPopup">
                                    <asp:Image ID="img_spinner" runat="server" ImageUrl="~/Images/spinner.gif" CssClass="loadingSpinner" />
                                </div>
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                    </ContentTemplate>
                </asp:UpdatePanel>

The full error is as below:
Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Multiple controls with the same ID 'Audits' were found. FindControl requires that controls have unique IDs.
Any suggestions?
Shinu
Top achievements
Rank 2
 answered on 04 Jun 2013
2 answers
300 views
I have a grid bound to a sql data source. there are gridbound columns and gridtemplatecolumns. an example of each column is shown below. in this example, the drag and drop grouping will work for the AddressLine2 gridboundcolumn but not for the City gridtemplatecolumn.  As you can see, Groupable is set true and the template column has a GroupByExpression of City but when I drop it, no grouping occurs. what else do I need to do to make this work?

                        <telerik:GridBoundColumn DataField="AddressLine2" HeaderText="AddressLine2" SortExpression="AddressLine2" 
                            UniqueName="AddressLine2" AutoPostBackOnFilter="True"
                        </telerik:GridBoundColumn> 
                        <telerik:GridTemplateColumn HeaderText="City" DataField="City" SortExpression="City" 
                            Groupable="true" GroupByExpression="City" UniqueName="CityColumn" AutoPostBackOnFilter="True"
                            <EditItemTemplate> 
                                <telerik:RadComboBox ID="CityEditControl" runat="server" Skin="Web20" DataSourceID="lkpCities" 
                                    DataTextField="City" DataValueField="UID" SelectedValue='<%# Bind("lkpCitiesID")%>' 
                                    MarkFirstMatch="true" AppendDataBoundItems="true"
                                    <Items> 
                                        <telerik:RadComboBoxItem Text="Select" Value="0" /> 
                                    </Items> 
                                </telerik:RadComboBox> 
                            </EditItemTemplate> 
                            <ItemTemplate> 
                                <%#Eval("City")%> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 

Shantanu
Top achievements
Rank 2
 answered on 04 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?