Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
205 views
Hello,

I have a webpage hosted in a Server A that has an IFRAME that displays the content of the webpage using RadChart in a Server B.

I'm getting this error only when I'm trying to access with Internet Explorer. I don't have this problem using Firefox:

Error loading RadChart image.
You may also wish to check the ASP.NET Trace for further details.
Display stack trace?

I have already tried a lot of changes on web.config and UseSession property. But no success. What else should I try?

I'm new on this team and I'm not sure about the version we're actually using but the installer name is: RadControls_for_ASP.NET_AJAX_2008_2_723_dev.exe (if you could provide me more info about this, I'll be thankful too).
Danilo
Top achievements
Rank 1
 answered on 01 Apr 2011
3 answers
497 views
Hello Fir,

How to Hide Close Button of Dock Title Bar
i want remove Close Button.

Please Help Me.

Thanks
Chandan Kumar.
Pero
Telerik team
 answered on 01 Apr 2011
0 answers
98 views
cleared.. 
Asif
Top achievements
Rank 1
 asked on 01 Apr 2011
3 answers
164 views
Hi all,

I have a RadWindow that pops up. It displays various input fields based on conditions. So, for instance, if a checkbox becomes checked I need to re-enable several controls on the page.

<fieldset>
    <legend>Refresh Settings</legend>
    <table>
        <tr>
            <td class="AutoRefreshEnabled">
                Auto-Refresh Enabled:</td>
            <td class="AutoRefreshCheckbox">
            <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" oncheckedchanged="CheckBox1_CheckedChanged" />
            </td>
            <td class="AutoRefreshNumericTextbox">
                <telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server"
                    Label="Auto-Refresh Interval:" MaxValue="60" MinValue="0"
                    ShowSpinButtons="True" Value="0" Width="175px" Enabled="False"
                    LabelCssClass="riLabel LabelDisabled">
                <NumberFormat DecimalDigits="0" />
                </telerik:RadNumericTextBox>
            </td>
        </tr>
    </table>
</fieldset>

protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
    RadNumericTextBox1.Enabled = (sender as CheckBox).Checked;
 
    if (RadNumericTextBox1.Enabled)
    {
        RadNumericTextBox1.LabelCssClass = "LabelEnabled";
    }
    else
    {
        RadNumericTextBox1.LabelCssClass = "LabelDisabled";
    }
}

.LabelEnabled
{
    color: Black !important;
}
 
.LabelDisabled
{
    color: Gray !important;
}
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="CheckBox1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadNumericTextBox1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
</telerik:RadAjaxManager>

When the user clicks the CheckBox there is an abnormal delay between when the CheckBox becomes checked and when the RadNumericTextBox becomes enabled. When the user un-checks the CheckBox there is no such delay. I experience this same, quirky effect on all similar event-response controls.

I do not want a loading panel -- it would be weird having loading screens over controls for a second. Is there anything I am missing?

Thanks, Sean
Maria Ilieva
Telerik team
 answered on 01 Apr 2011
1 answer
143 views
I need to display a lot of read-only text to the user and enable some additional page controls when the user has "read all" (scrolled to the bottom) of the text. I am considering using a RadTextBox in multiline mode but need a client side event when the textbox has been scrolled to the bottom. Is there a way to accomplish this? If there's a better approach, I'm open to it.
Maria Ilieva
Telerik team
 answered on 01 Apr 2011
2 answers
123 views
First let me specify my environment, am using the ASP.net AJAX Q1 2011 35 controls in VS2010 with VB.net.

In my application I have a button in a RadGrid that when clicked will display a RadWindow to all for some user input which will then be used back on the main page, and I am doing all of this with server-side code.  The first time I push the button and change the visible property of the RadWindow to true it displays correctly and allows for the input that I need.  The user pushes the Close button on the form which runs more server-side code which set the visible property of the RadWindow to false.  The next time the user presses the button the RadWindow displays but all of the skin items are missing.  It's just a basic white box, with my controls in it.  How can I make the RadWindow look the same after the first time it is shown?

Thanks.
Todd
Top achievements
Rank 1
Iron
 answered on 01 Apr 2011
6 answers
210 views
I have a fairly complex ajax page with an Accordian(AJAX Toolkit), a RadGrid in the upper level of the accordian and Grid Item Details in the lower part of the accordian.  When the user selects an item in the grid, the accordian changes and shows the details in the bottom part of the accordian.

I have a Search "Div" on the page.  When the user clicks "Search", it searchs for results, then collapses/expands the Accordian to show the results in the grid(upper accordian level).

I tried adding the RadAjax Manager and Loading Panel to the page.  When the User clicks the Search Button, the RadLoading Panel shows up over the Details form and that works.  But then I get a Javascript error message:

Microsoft JScript runtime error: 'document.getElementById(...)' is null or not an object

document.getElementsByTagName("head")[0].appendChild(b)

If I remove the RadAjax Loading panel and Manager, the error goes away.  Here is my HTML for the RadAjax Manager and Loading Panel:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"><br>        <AjaxSettings><br>            <telerik:AjaxSetting AjaxControlID="btnSearch1"><br>                <UpdatedControls><br>                    <telerik:AjaxUpdatedControl ControlID="upScriptDetail" LoadingPanelID="RadAjaxLoadingPanel1" /><br>                </UpdatedControls><br>            </telerik:AjaxSetting><br>            <telerik:AjaxSetting AjaxControlID="btnSearch"><br>                <UpdatedControls><br>                    <telerik:AjaxUpdatedControl ControlID="upScriptDetail" LoadingPanelID="RadAjaxLoadingPanel1" /><br>                </UpdatedControls><br>            </telerik:AjaxSetting><br>        </AjaxSettings><br></telerik:RadAjaxManager>


Here is my code behind for showing the search results.
 if (result.Count > 0)<br> {<br>         //expand the search results...<br>         this.CollapsiblePanelExtender1.Collapsed = false;<br>         this.CollapsiblePanelExtender1.ClientState = "false";<br>         //collapse the details...<br>         this.CollapsiblePanelExtender2.Collapsed = true;<br>         this.CollapsiblePanelExtender2.ClientState = "true";<br><br>         bindSearchResults(result);<br>         radgridSearchResults.DataBind();<br> }<br><br> private void bindSearchResults(List<CreativeSearchDataService.ScriptSearchResult> searchResults)<br> {<br>      radgridSearchResults.SelectedIndexes.Clear();   //reset just in case this is a new search...<br>      radgridSearchResults.DataSource = searchResults;<br>      radgridSearchResults.MasterTableView.DataKeyNames = new string[] { "id" };<br> }


Any help would be greatly appreciated.

thanks


Maria Ilieva
Telerik team
 answered on 01 Apr 2011
1 answer
117 views
I have a page that has a tabstrip with 4 tabs/pageviews. The splitter declaration below is on the third pageview. The splitter is in a container that is height/width 100%. I have found, when I open the page and the first tab/pageview is displayed, and I switch to the third tab (the one with the splitter), everything looks fine. However if I open the page and the third tab is displayed by default, the left hand pane of the splitter takes up a little less than the prescribed 364px. It looks like it is less by the width of a scroll bar. I have attached splitter1.jpg which demonstrates this narrowing and splitter2.jpg which is what it correctly looks like if I load the first tab by default and switch to the one with the splitter. The red bar in each is a gif of width 364px which can be used for comparison with the splitter pane. I tried handling the spliter ONClientLoad and OnClientLoaded events and used the "repaint" client-seide method, but this didn't seem to change anything. Any ide why the splitter pane sizes incorrectly when first loaded?

Splitter Ma
<telerik:RadSplitter ID="rsT_H" 
            runat="server" 
            Width="100%"
            Height="100%" 
            Orientation="Vertical" 
            ResizeWithParentPane="False" 
            ResizeWithBrowserWindow="True"
            BorderSize="0"
            VisibleDuringInit="False"
            HeightOffset="0"
                    >
            <telerik:radpane runat="server" id="lPane" Scrolling="None" Width="364px" Height="100%" CssClass="BorderedContainer2"  <telerik:RadAjaxLoadingPanel id="lpC_H" Runat="server" Transparency="30" Height="100%" Width="100%" BackColor="#E4E4E4"><asp:Image id="Image1" runat="server"  AlternateText="Loading..." BorderWidth="0px" ImageUrl="~/global/images/loading2.gif" style="margin-top:50px;"></asp:Image></telerik:RadAjaxLoadingPanel>
                        <asp:Panel ID="pnlC_H" runat="server" Height="100%" >
                            <asp:PlaceHolder ID="phContent_H" runat="server"></asp:PlaceHolder>
                        </asp:Panel>
            </telerik:radpane>
            <telerik:radpane runat="server" id="rPane" Scrolling="None" Width="100%" Height="100%" BackColor="Pink">
                <div style="height:100%; vertical-align:middle; text-align:center; padding:10px;"><span class="Normal">Select the custom content item which will be included in this email using the list above. You can also create a new custom content item, or edit the currently selected item.<br /><br /><strong>Please Note:</strong> The content space to the left represents the actual width of the custom content block in this email template. To see what it will look like within the body of the email, click on "Preview HTML Version" above.</span></div>
            </telerik:radpane>
        </telerik:RadSplitter>
rkup:

Dobromir
Telerik team
 answered on 01 Apr 2011
1 answer
151 views
hi there is a way to custom a slider with two different color bases on two specific value ?

I have two value
 used Space 250 and Acquired space 300
the slider range is 0-1000.
the total range between 0 and 250 must be green
and the range between 250 and 300 must be orange.
over 300 must be grey.



see attached files for example.
Bozhidar
Telerik team
 answered on 01 Apr 2011
1 answer
292 views

ok, so I have 4 combo boxes bound to SQL Data sources which are meant to load based on the value of a 5th combo box.  Under normal postback conditions this works fine without any issues.

I start to run into problems though when I programattically set the value of the 5th Combo Box on load.  When this happens the other 4 combos are loading their datasets twice, and with 3 of them having AppendDataitems="True" i end up with duplicates.

Any help would be greatly appreciated.
Thank you

ASP.NET Code Example rcbcsType=Combo 5, rcbType2 is one of the other 4

  <telerik:RadComboBox ID="rcbcsType" runat="server" AppendDataBoundItems="true" AutoPostBack="true"
                    DataSourceID="sdsConfig" DataTextField="csTypeName" DataValueField="csType">
                    <Items>
                        <telerik:RadComboBoxItem runat="server" Text="" Value="" />
                        <telerik:RadComboBoxItem runat="server" Text="All" Value="-1" />
                    </Items>
                </telerik:RadComboBox>
<asp:SqlDataSource ID="sdsConfig" runat="server" SelectCommand="SELECT csType, csTypeName FROM tblConfig"
        ConnectionString="<%$ ConnectionStrings:csBIR %>"></asp:SqlDataSource>
  
  
 <telerik:RadComboBox ID="rcbType2" runat="server" MarkFirstMatch="true" AppendDataBoundItems="true"
                    DataSourceID="sdsType2" DataTextField="Code" DataValueField="Code" Skin="Default">
                        <Items>
                            <telerik:RadComboBoxItem Value="" Text="" />
                        </Items>
                </telerik:RadComboBox>
  
    <asp:SqlDataSource ID="sdsType2" runat="server" ConnectionString="<%$ ConnectionStrings:csBIR %>"
        SelectCommand="SELECT '' as code, '' as codeType UNION SELECT [Code], [CodeType] FROM [rCodes] WHERE (([active] = 1) AND [CodeType] = 'ComplaintType' AND ([Type1] = @Type1)) Order By Code">
        <SelectParameters>
            <asp:ControlParameter Name="Type1" ControlID="rcbcsType" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>

VB.NET Code Example

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim cstype As String = Request.QueryString("type")
        If Not Page.IsPostBack Then
            If csType <> "" Then
                gblcsType = csType.ToUpper
            End If
        End If
  
End Sub
  
Protected Sub rcbcsType_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles rcbcsType.DataBound
        If Not Page.IsPostBack Then
            If gblcsType <> "" Then
                Me.rcbcsType.SelectedValue = gblcsType 
                Me.rcbcsType.Enabled = False
            End If
        End If
    End Sub
Dimitar Terziev
Telerik team
 answered on 01 Apr 2011
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?