Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
1.5K+ views
I'm trying to get a rad window to show that used to show ok in previous versions of telerik but now the GetRadWindowManager always returns 'undefined'.  Is this a backward compatability issue?

function

ShowWindow()
{
var omanager = GetRadWindowManager();
var ownd = omanager.getWindowByName("DialogWindow1");
ownd.show();
}
 

<asp:ScriptManager ID="ScriptManager1" runat="server">

</asp:ScriptManager>

<telerik:RadWindowManager id="Singleton" runat="server" ClientCallBackFunction="ResetPasswordWindowClosed" >

<windows>

<telerik:RadWindow id="DialogWindow1"

Modal = "true"

Runat="server"

Width="600px"

Height="250px"

Title="Reset Password"

NavigateUrl="~/Support/ResetPassword.aspx"

Skin="WebBlue"

VisibleStatusbar="false"

Behavior="Close"

>

</telerik:RadWindow>

</windows>

</telerik:RadWindowManager>


//and in code behind

public void OpenResetPasswordWindow()
{
literalInjectJavascript.Text = "<script type='text/javascript'> ShowWindow(); </script>";
}


I've tried numerous different examples from telerik site but whenever I call GetRadWindowManager() the result is always 'undefined'.

Your help is most appreciated as I've spent most of the day trying to get this working.
Thankyou

Marin Bratanov
Telerik team
 answered on 11 Apr 2012
3 answers
140 views
I've been trying all day to get grouping to work in my Grid with OData.  Are there any known issues? Shouldn't it work?

Here's some sample code that I know is not working:

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy" runat="server"></telerik:RadAjaxManagerProxy>
<telerik:RadScriptManager runat="server" ID="RadScriptManager1">
    </telerik:RadScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGridTicketDetails">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGridTicketDetails"/>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadGrid ID="RadGridTicketDetails" runat="server" ActiveItemStyle-BackColor="Green" HeaderStyle-BackColor="#00597A" EnableEmbeddedSkins="true" Skin="Metro"
                 ShowGroupPanel="True" GroupingEnabled="true">
    <MasterTableView TableLayout="Fixed" AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true" GroupsDefaultExpanded="true" PageSize="10" GroupLoadMode="Client"
    AutoGenerateColumns="false">
    <PagerStyle CssClass="RadGridPager" Mode="NumericPages"></PagerStyle>
    <HeaderStyle CssClass="RadGridHeader"></HeaderStyle>
    <FooterStyle CssClass="FooterStyle"></FooterStyle>
    <Columns>
           <telerik:GridBoundColumn DataField="ProductID" HeaderText="ProductID" DataType="System.Int32">
             </telerik:GridBoundColumn>
             <telerik:GridBoundColumn DataField="ProductName" HeaderText="ProductName" DataType="System.String">
            </telerik:GridBoundColumn>
              <telerik:GridBoundColumn DataField="UnitPrice" HeaderText="UnitPrice" DataType="System.Decimal" DataFormatString="{0:C}">
             </telerik:GridBoundColumn>
             <telerik:GridBoundColumn DataField="ReorderLevel" HeaderText="ReorderLevel" DataType="System.Int32">
              </telerik:GridBoundColumn>
              <telerik:GridCheckBoxColumn DataField="Discontinued" HeaderText="Discontinued" DataType="System.Boolean">
              </telerik:GridCheckBoxColumn>
         </Columns>
    </MasterTableView>
    <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="false" AllowDragToGroup="True" AllowGroupExpandCollapse="True" AllowColumnsReorder="true">
        <DataBinding Location="http://services.odata.org/Northwind/Northwind.svc" ResponseType="JSONP">
            <DataService TableName="Products" Type="OData"/>
        </DataBinding>
        <Selecting AllowRowSelect="True"/>
    </ClientSettings>
    <GroupingSettings ShowUnGroupButton="true"/>
</telerik:RadGrid>
Carling
Top achievements
Rank 2
 answered on 11 Apr 2012
6 answers
86 views
I have telerik RadControls ASP.NET AJAX form Q3 2010 SP2 v.2010.3.1317.40  and problems pressentan  with internet explorer 9. How could solve this problem?

Thank you.
ALBERT
Top achievements
Rank 1
 answered on 11 Apr 2012
2 answers
90 views
Hi

My appointments in my scheduler have custom context menus.

Once an appointment time has passed I want to enable one of my custom context menu items so the user can click it and fill in a feedback form for the appointment, but they are not allowed to do this until the appointment has been. 

Is there anyway of getting a reference to an appointment's context menu when an appointment is created and checking the date and enabling this item depending what it is?

I can't seem to find anything in the documentation regarding this.

Bex

Bex
Top achievements
Rank 1
 answered on 11 Apr 2012
3 answers
143 views
How to clear date in datepicker from client side(button click)?
Princy
Top achievements
Rank 2
 answered on 11 Apr 2012
1 answer
172 views
Hi there,

EDIT: We've just isolated this further. The problem is coming from the RadComboBox inside the RadMenu slide.
We're making use of PIE.htc for specific IE scenarios like Border Radius, Gradients and so forth, which works well all over the site except in this one instance. When the CSS3-Container is rendered it is given a radiculously high width (15500px) and height (2700px).


We're having a serious issue where a form inside a RadMenuItem template displays well in all browsers except in IE 7 where it basically explodes out of proportion. See the attached image, the first showing what it should look like and does look like in all other browsers and the second showing what it looks like in IE7.

Something else we're noticing is that if you zoom out of the page or if you open the developer bar at the bottom... it flips back to its normal size. Still doesn't look great, but at least it doesn't look like an explosion went off on the page.

The code looks like this:
<telerik:RadMenu ID="SubNav" runat="server" ClickToOpen="true" Width="800px" EnableEmbeddedBaseStylesheet="false"
    EnableEmbeddedSkins="false" CollapseAnimation-Type="None" ExpandAnimation-Type="None">
    <Items>
        <telerik:RadMenuItem Text="Ship" PostBack="false" OuterCssClass="menuButton menuButtonShip">
            <Items>
                <telerik:RadMenuItem CssClass="subNavPopUpBox">
                    <ItemTemplate>
                        <div id="shipMenu">
                            <div id="truckload" class="subNavColumns">
                                <div class="subNavColumnBody">
                                    <h2>
                                        Freight Brokerage</h2>
                                    <div class="subNavImages">
                                        <img src="/Sitefinity/WebsiteTemplates/Template2012/App_Themes/CorporateTheme/Images/subNavTruckload.png"
                                            height="98px" width="139px" /></div>
                                    <p>
                                        We offer a full range of on-the-raod freight services:
                                        <ul>
                                            <li><strong>Full Truckloads</strong></li>
                                            <li><strong>LTL</strong></li>
                                            <li><strong>Temp Controlled</strong></li>
                                        </ul>
                                    </p>
                                </div>
                                <div class="subNavColumnFooter">
                                    <a href="/about/our-services/freight-brokerage" class="subNavLink subNavMoreLink">
                                        more</a><a id="shipSelectTruckload" href="#" class="subNavSelect subNavSelectOn">select</a>
                                </div>
                            </div>
                            <div id="expedited" class="subNavColumns">
                                <div class="subNavColumnBody">
                                    <h2>
                                        Expedited Shipping</h2>
                                    <div class="subNavImages">
                                        <img src="/Sitefinity/WebsiteTemplates/Template2012/App_Themes/CorporateTheme/Images/subNavExpedited.png" /></div>
                                    <p>
                                        For your expedited services or special handling needs. Use our own fleet of owner
                                        operators to move your loads quickly and reliably.</p>
                                </div>
                                <div class="subNavColumnFooter">
                                    <a href="/about/our-services/expedited-shipping" class="subNavLink subNavMoreLink">
                                        more</a><a id="shipSelectExpedited" href="" class="subNavSelect subNavSelectOff">select</a></div>
                            </div>
                            <div id="freight" class="subNavColumns">
                                <div class="subNavColumnBody">
                                    <h2>
                                        Freight Forwarding</h2>
                                    <div class="subNavImages">
                                        <img src="/Sitefinity/WebsiteTemplates/Template2012/App_Themes/CorporateTheme/Images/subNavFreight.png" /></div>
                                    <p>
                                        Whether your Air or Ocean freight is going domestically or internationally, we got
                                        you covered.<br />
                                        <a href="" class="subNavLink subNavDownloadLink">Download Forms</a>
                                    </p>
                                </div>
                                <div class="subNavColumnFooter">
                                    <a href="/about/our-services/freight-forwarding" class="subNavLink subNavMoreLink">
                                        more</a><a id="shipSelectFreight" href="" class="subNavSelect subNavSelectOff">select</a></div>
                            </div>
                            <div id="shipForm" class="subNavColumns">
                                <fieldset id="shipFormTruckload" class="form">
                                    <div class="subNavColumnBody">
                                        <h2>
                                            Enter Your Truckload Brokerage Details</h2>
                                        <ul>
                                            <li>
                                                <asp:Label ID="FromZipCodeLabel" AssociatedControlID="FromZipCode" runat="server">From Zip Code <span class="validate">*</span></asp:Label>
                                                <telerik:RadTextBox Width="168px" runat="server" ID="FromZipCode" EnableEmbeddedBaseStylesheet="false"
                                                    EnableEmbeddedSkins="false" EnableSingleInputRendering="true">
                                                </telerik:RadTextBox>
                                            </li>
                                            <li>
                                                <asp:Label ID="ToZipCodeLabel" AssociatedControlID="ToZipCode" runat="server">
                                                    To Zip Code <span class="validate">*</span></asp:Label>
                                                <telerik:RadTextBox Width="168px" runat="server" ID="ToZipCode" EnableEmbeddedBaseStylesheet="false"
                                                    EnableEmbeddedSkins="false" EnableSingleInputRendering="true">
                                                </telerik:RadTextBox>
                                            </li>
                                            <li>
                                                <asp:Label ID="TruckTypesLabel" AssociatedControlID="TruckTypes" runat="server">
                                                    To Zip Code <span class="validate">*</span></asp:Label>
                                                <telerik:RadComboBox Width="168px" ZIndex="99999" ID="TruckTypes" runat="server"
                                                    Height="50px" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false">
                                                    <Items>
                                                        <telerik:RadComboBoxItem Text="Dry Van/ Truckload" />
                                                        <telerik:RadComboBoxItem Text="Flatbed" />
                                                        <telerik:RadComboBoxItem Text="Temperature Controlled" />
                                                        <telerik:RadComboBoxItem Text="Over Dimensional" />
                                                        <telerik:RadComboBoxItem Text="LTL" />
                                                    </Items>
                                                </telerik:RadComboBox>
                                            </li>
                                            <li>
                                                <asp:Label ID="DimensionsLabel" AssociatedControlID="Weight" runat="server">
                                                    Weight/Dimensions<br />
                                                    <span class="subtleNote">(in lbs and inches)</span></asp:Label>
                                                <div style="position: relative; float: right; width: 182px">
                                                    <telerik:RadTextBox ID="Weight" EmptyMessage="Wt" runat="server" Width="25px" EnableEmbeddedBaseStylesheet="false"
                                                        EnableEmbeddedSkins="false" EnableSingleInputRendering="true">
                                                    </telerik:RadTextBox>
                                                    <telerik:RadTextBox ID="Width" EmptyMessage="W" runat="server" Width="25px" EnableEmbeddedBaseStylesheet="false"
                                                        EnableEmbeddedSkins="false" EnableSingleInputRendering="true">
                                                    </telerik:RadTextBox>
                                                    <telerik:RadTextBox ID="Height" EmptyMessage="H" runat="server" Width="25px" EnableEmbeddedBaseStylesheet="false"
                                                        EnableEmbeddedSkins="false" EnableSingleInputRendering="true">
                                                    </telerik:RadTextBox>
                                                    <telerik:RadTextBox ID="Length" EmptyMessage="L" runat="server" Width="25px" EnableEmbeddedBaseStylesheet="false"
                                                        EnableEmbeddedSkins="false" EnableSingleInputRendering="true">
                                                        <EmptyMessageStyle Height="20px" />
                                                    </telerik:RadTextBox>
                                                </div>
                                            </li>
                                        </ul>
                                    </div>
                                    <div class="subNavColumnFooter">
                                        <span class="validate">*</span> <span class="subtleNote">Required Fields</span>
                                        <telerik:RadButton Height="27px" ID="TruckloadQuoteOnly" Text="Quote Only" TabIndex="8"
                                            runat="server" ToggleType="CheckBox" ButtonType="LinkButton" AutoPostBack="false"
                                            EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false">
                                            <ToggleStates>
                                                <telerik:RadButtonToggleState PrimaryIconCssClass="rbToggleCheckboxChecked" />
                                                <telerik:RadButtonToggleState PrimaryIconCssClass="rbToggleCheckbox" />
                                            </ToggleStates>
                                        </telerik:RadButton>
                                        <a href="" class="subNavNext">Next</a>
                                    </div>
                                </fieldset>
                                <fieldset id="shipFormExpedited" class="form">
                                    <div class="subNavColumnBody">
                                        <h2>
                                            Enter Your Expedited Shipping Details</h2>
                                        <ul>
                                            <li>
                                                <asp:Label ID="Test1Label" AssociatedControlID="Test1" runat="server">From Zip Code <span class="validate">*</span></asp:Label>
                                                <telerik:RadTextBox Width="168px" runat="server" ID="Test1" EnableEmbeddedBaseStylesheet="false"
                                                    EnableEmbeddedSkins="false">
                                                </telerik:RadTextBox></li>
                                            <li>
                                        </ul>
                                    </div>
                                    <div class="subNavColumnFooter">
                                        <a href="" class="subNavNext">Next</a
                                    </div>
                                </fieldset>
                                <fieldset id="shipFormFreight" class="form">
                                    <div class="subNavColumnBody">
                                        <h2>
                                            Enter Your Freight Forwarding Details
                                        </h2>
                                        <ul>
                                            <li>
                                                <asp:Label ID="Label2" AssociatedControlID="RadTextBox2" runat="server">From Zip Code <span class="validate">*</span></asp:Label>
                                                <telerik:RadTextBox Width="168px" runat="server" ID="RadTextBox2" EnableEmbeddedBaseStylesheet="false"
                                                    EnableEmbeddedSkins="false">
                                                </telerik:RadTextBox></li>
                                            <li>
                                        </ul>
                                    </div>
                                    <div class="subNavColumnFooter">
                                        <a href="" class="subNavNext">Next</a
                                    </div>
                                </fieldset>
                                <a href="" id="shipMenuClose" onclick="menu_Close();return false;">X</a>
                            </div>
                        </div>
                    </ItemTemplate>
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenuItem>
    </Items>
</telerik:RadMenu>

I've removed the additional menus, but they're behaving just as badly.

Any help with this would be appreciated.
PS. We're using the Telerik controls that come with Sitefinity 4.4 (It's a SF project, but it's the Telerik controls causing the issues not Sitefinity)

Regards,
Jacques
Ivan Zhekov
Telerik team
 answered on 11 Apr 2012
2 answers
119 views
I'm experiencing some issue on this project I'm working on... when I try to do virtual scroll some weird things happen. For example, virtual scroll isn't working and I can't see bound columns in the RadGrid.

I'm attaching example screenshots. I can supply parts of the code if necessary?
Ivan
Top achievements
Rank 1
 answered on 11 Apr 2012
3 answers
115 views
Hi 

I have an issue I hope someone can help with. I have two tree's (Source, Destination). Source contains simple text nodes in a hierarchical format (fields from a form)

Source Tree
- Application
- Properties
Age of Applicant
Mobile Phone

The destination tree is made up on nodes containing custom controls. I create them on the fly using Node.Controls.Add(customControl). I rebuild the Destination tree on each Postback so that the tree remains consistent.

Destination Tree

- Root (Custom Control in Node - Label)
- Process 1 (Custom Control in Node - No Fields)
Action 1 (Custom Control in Node - Text Box, Labels)
Query 1 (Custom Control in Node - Text Boxes, Labels)

Inside my Action 1 custom control I have various fields. I need to be able to drag a node from Source onto the Text field held in the Custom Control contained within the node on the Destination tree.

So far nothing has worked. Dragging from Source to Destination only triggers the Destination Node on drop (so I don't know which Custom Control field it was dropped onto - Html, and I don't get anything from HtmlElementID when dropping over the actual field.

I've tried disabling Drop on the Destination Nodes (in the hope that the custom control fields could then be seen) but this didn't work, as it brings up the Can't Drop icon.

Is this possible with the current Telerik controls?

Thanks

Steve
Plamen
Telerik team
 answered on 11 Apr 2012
3 answers
93 views
I created a chart with scrolling, but the scroll bar eats into the chart instead of offsetting it.  What that means is that if I have a column chart and one of the entries is 0, then the label gets cut off by the scroll bar.

So what I've had to do is add a negative minimum to the y-axis to create a buffer which looks silly.  Especially when the chart renders without the scroll bar, then I have a blank space under the columns.

Is there anyway around this?

Thanks.
Evgenia
Telerik team
 answered on 11 Apr 2012
1 answer
144 views
I've been trying to figure this out for a day now and am no closer to a solution. I want to bar graph items on a percentage scale, but for each bar show in the label the count that corresponds to that percentage. Can you point me to a working sample of this? Preferably one that is database bound so that i can see how my dataset should be coming back from SQL too?
Evgenia
Telerik team
 answered on 11 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?