Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
320 views
Hi Telerik,

I have a RadWindow which is managed by RadWindowManager. It represents a dialog window.

Here is the code declaration and how I open it:

<telerik:RadWindow ID="HistoricalLocalSettingsWindow" Runat="Server" NavigateUrl="~/Dashboard/Dialog/Windows/HistoricalLocalSettings.aspx" OnClientShow="OnHistoricalLocalSettingsShow" OnClientClose="OnHistoricalLocalSettingsClose" IconUrl="~/Content/Dashboard/Icons/radwindow_settings.png" Title="Settings" Width="450px" AutoSize="True" AutoSizeBehaviors="Height" OnClientResize="OnHistoricalLocalSettingResizeEnd" OnClientResizeEnd="OnHistoricalLocalSettingResizeEnd" />
function ShowLocalSettings(sender, eventArgs) {
    radDock = sender;
 
    var reportType = radDock.get_element().getAttribute("ReportType");
    if (reportType == "HistoricalReport") {
        oWindow = window.radopen(null, "HistoricalLocalSettingsWindow").center();
    }
    else if (reportType == "CustomReport") {
        oWindow = window.radopen(null, "CustomLocalSettingsWindow").center();
    }
    else {
        alert("Didn't find report type.");
    }
 
    SetupCenteringDialog(oWindow);
}
 
//Opens a historical report settings window -- passing the known settings to it
//so that the window will show the proper data to the user.
function OnHistoricalLocalSettingsShow(sender, eventArgs) {
    sender.argument = radDock.get_id();
}

On this window there is some content. The content that can be displayed on this window is subject to change, based on what is loading the window. The user also has the ability to add and remove this content based on a combo-box selection present inside of the window.

As such, I tell the window to auto-resize whenever the combobox changes:

//When the user changes between Line Chart and Pie Chart the number of controls
//displayed on the window changes. As such, I need to expand/contract the
//size of the window. This causes the window to resize itself.
function OnClientSelectedIndexChanged(sender, eventArgs) {
    var comboBoxValue = eventArgs.get_item().get_value();
    ValidateWindowState(comboBoxValue);
 
    if ($telerik.isIE) {
        timeout = setTimeout(function () { AdjustRadWindow(); }, 500);
    }
    else {
        AdjustRadWindow();
    }
}

function AdjustRadWindow() {
    var oWindow = GetRadWindow();
    if (oWindow.isVisible()) {
        oWindow.autoSize(true);
    }
}

This works perfectly fine in Chrome, but in IE it does not resize to the proper height. It seems to be remembering its old height (perhaps because the minHeight for the window is being set behind-the-scenes to convince IE to size the window properly? I am not sure.)

Regardless, even if I fudge with the timeout, I see sizing issues.

I have attached an image showing the initial state of the window in IE9.0.8112 with compatibility-mode turned off and Chrome 13.0.782

Is there something I can do about this? Thanks

Sean

Marin Bratanov
Telerik team
 answered on 16 Aug 2011
3 answers
121 views
Hi,

I have added Radgrid in a page and set AllowPaging="true" . And one of the GridBoundColumn we set AllowFiltering="true" . It works well. But when we filter with a value, the finding record doesn't display in the first page.
For instance, if we have 3 pages and the item which we look for is located in the 3rd page. After filtering, the 1st page and 2nd page are empty. We found the record in the 3rd page. We have to go through all the 3 pages.

Do we have any way to display the finding record in the first page and don't show other 2 empty pages.

Thanks,
D. Do
Duong
Top achievements
Rank 1
 answered on 16 Aug 2011
11 answers
226 views
hi,

I have rad combo box: ((ddlGroups2)) not working fine in my telerik converted website, I can build my website normally but after I run it, I found the rad combo box is disabled, so nothing happened if I click the arrow to open the drop down menu !


if I replace the rad combo box with normal asp.net drop down list, thin it works fine but with telerik its not working,

here is a snapshot:

Helen
Telerik team
 answered on 16 Aug 2011
1 answer
74 views
I am building a lined chart and have the LineSeriesAppearance.PenStyle set to "solid" for the series, but would like to change it to "dot" at the end of the series to signify the values occur outside of a threshold.  Is this possible?  For example:

Value 1: solid
Value 2: solid
Value 3: solid
[threshold hit]
Value 4: dot
Value 5: dot
Evgenia
Telerik team
 answered on 16 Aug 2011
3 answers
118 views
Hello,
My grid contains only template columns which are built runtime. Also I create custom header template, like this:

public void InstantiateIn(Control container)
        {
            LinkButton label;
            if (_item != null)
            {
                label = new LinkButton()
                            {
                                Text = _item.caption                                
                            };
                CssStyle style = _styleBuilder.CreateStyle(_item.f_name + "_header",
                                                                             _item.RunTimeColumnInformation.
                                                                                 HeaderAppearance);
                if (_styles.Find(s => s.Name == style.Name) == null)
                {
                    _styles.Add(style);
                }
                ((GridTableHeaderCell)container).CssClass = style.Name;
            }
            else
                label = new LinkButton()
                            {
                                Text = _caption
                            };
            label.CommandName = "Sort";
            label.CommandArgument = _item.user_name;
            container.Controls.Add(label);
        }
Each time I click header, I receive a message
Sys.WebForms.PageRequestManagerServerErrorException: "/UpeWeb.ASPNET/Telerik.Web.UI.WebResource.axd" is not a valid script path. Path must have ".js" extension.
I'm not sure this is a correct translation, because I see it on my native language, but you should get an idea of what's going on. Looks like it happened because of new AJAX control made by me from scratch. It's of CompositeControl type and implements IScriptControl. And each time there's a postback on page, I receive a message like this.
Thank you.
Mira
Telerik team
 answered on 16 Aug 2011
4 answers
141 views
Hello Telerik ,

I have a RadChart in my asp.net application. I can't able to display text values on x-axis . I tried both client and server sides but it didn't work. Instead of text it is displaying numeric values. Can you help me to this asap.

Thanks
Swetha
Jimmy
Top achievements
Rank 1
 answered on 16 Aug 2011
3 answers
185 views
How can I style the File Explorer, considering it lies within an iframe?

Is there any given way to hide the address-path text box?
Bozhidar
Telerik team
 answered on 16 Aug 2011
3 answers
210 views
Hi,

I am searching for a sollution for my RadGrid:

I`ve puted some data in a DataGrid, I`ve puted a column with image buttons, so that each row has a button!
Now i will set an event when the user is clicking the button.
In the Event I will navigate to an other page that is inside of my Application.
I will also give some infofrmations about the clicked row with.
The part inside the event will lock for Example like this:

Application["Example"] = ExampleList.Where(exap => examp.id == ExampleList.selectedindex);
Server.Transfer("Example.aspx", false);

This will not be the problem, but how i can create the Event???
I didn`t find any way to create an Event like that.

Thanks for your help!!

Michael
Maria Ilieva
Telerik team
 answered on 16 Aug 2011
11 answers
532 views
Hello,
I have a DataColumn which contains an item ID and TemplateColumn for that DataColumn, which displays item name depending on ID it's bound to. When I press a header to sort grid, items should sort by names, not by ids. How can I do that?
Almost forgot. Everything I have is a ready-to-use dataset, I cannot manipulate SQL statements and I don't have item names included in that dataset.
Thank you.

Dmitry
Top achievements
Rank 1
 answered on 16 Aug 2011
2 answers
112 views
I am using the sitemap and the top level items in my web.site map do not have URL's. can i stop them being selectable?
Steve Gray
Top achievements
Rank 1
 answered on 16 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?