Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
369 views
Quick question from a Newbie.

When using RadAjaxManager or RadAjaxPanel they both fire events in "If Page.IsPostBack then......" and do not fire events in "If Page.IsCallBack then.....".  So I am not fully understanding the meaning of PostBack and CallBack.  I thought the RadAjaxManager was making CallBacks to the server and not PostBacks.  Is this by design?

What am I missing here?

A quick reply from an experienced programmer would be much appreciated.

Cheers

Ian.
Ian
Top achievements
Rank 1
 answered on 11 Apr 2012
1 answer
246 views
Hi,
  I have Question related to RadComboBox with multiple checkBox option

I have a RadComboBox in which it has Multiple Items with Multiple Check Box.I want that when "All " checkbox is selected from the dropdown it should display "All" as Selected Value as a text and when "All" is not selected other items are selected it should display all the items(selected ones) instead of  displaying "3 items checkd or 2 items cheked" message.

Following is my code:

 

 

<telerik:RadComboBox ID="rdVacantBu" Skin="Web20Ext" CheckBoxes="true"

 

 

 

CheckedItemsTexts="DisplayAllInInput" EnableCheckAllItemsCheckBox="true" EmptyMessage="Please Select" ForeColor="Black"

 

 

 

Localization-CheckAllString="All" Visible="false" Font-Italic="false" EnableEmbeddedSkins="false"

 

 

 

BackColor="White" runat="server"> </telerik:RadComboBox>

 



Please helps us as soon as possible.

Thanks,
Neha
Ivana
Telerik team
 answered on 11 Apr 2012
1 answer
260 views
Hi everybody,

I have a problems for radimageeditor,

1-)    <script type="text/javascript">
        function ClientLoad(sender) {
            sender.zoomImage(61);
        }
</script> 

it's code working on firefox,internet explorer but don't working on Google Chrome, How is edit this code ?(component radimageeditor) 


2-) I want to save as image on server with button_click , i'm how is the make ? (component radimageeditor)
 
3-) I'm saved as image later save new filename write on MSSQL database, How is the make ?(component radimageeditor) 


Thank you now,
Niko
Telerik team
 answered on 11 Apr 2012
10 answers
1.6K+ 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
172 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
110 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
128 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
177 views
How to clear date in datepicker from client side(button click)?
Princy
Top achievements
Rank 2
 answered on 11 Apr 2012
1 answer
202 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
160 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?