Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
68 views
hi,

i have used the SiteDataItem class to build up an list of tree nodes. I then have allowed the treeview to have drop and drag. But i cannot find out how to rehydrate the list of sitedataitems with there new/changed values ( ie the new parent and siblings ).

Can anyone help me out?
Dimitar Milushev
Telerik team
 answered on 30 Mar 2010
4 answers
129 views
Hi,

I'm trying to control my rotator from JavaScript code. Everything works fine on FF and Chrome, and when i try on IE 8 I get the following JavaScript error (Message: 'null' is null or not an object). below is my JavaScript code,

function startUpScripts() {                
                var newsTickerRotator = $find('<%= newsTickerRotator.ClientID %>'); 
                newsTickerRotator.repaint(); 
                newsTickerRotator.add_mouseOver(newsTickerMouseOver); 
                newsTickerRotator.add_mouseOut(newsTickerMouseOut); 
                startRotator(newsTickerRotator, Telerik.Web.UI.RotatorScrollDirection.Right); 
            } 
 
            function newsTickerMouseOver() { 
                stopRotator($find('<%= newsTickerRotator.ClientID %>')); 
            } 
 
            function newsTickerMouseOut() { 
                startRotator($find('<%= newsTickerRotator.ClientID %>'), Telerik.Web.UI.RotatorScrollDirection.Right); 
            } 
 
 
            function startRotator(rotator, direction) { 
                if (!rotator.autoIntervalID) { 
                    rotator.autoIntervalID = window.setInterval(function() { 
                        rotator.showNext(direction); 
                    }, rotator.get_frameDuration()); 
                } 
            } 
 
            function stopRotator(rotator) { 
                if (rotator.autoIntervalID) { 
                    window.clearInterval(rotator.autoIntervalID); 
                    rotator.autoIntervalID = null
                } 
            } 
 
            function showNextItem(rotator, direction) { 
                rotator.showNext(direction); 
            } 

I also added the following code to the body tag in order to run my rotator on page load (<body onload="startUpScripts();" >). If I refresh IE it works fine, but if I open it for the first time I get the error. I'm really wondering if JQuery ready events runs before the rotator is rendered!!!!!

Appreciates your help.

loai taha
Top achievements
Rank 1
 answered on 30 Mar 2010
1 answer
83 views
Hello,
I have several issues (CSS and javascript) when I use RadRotator in a TabPanel.
I use TabContainer from the Ajax Toolkit (and I would like to keep it).
The RadRotator works as exepected in the first TabPanel, but hidden in the second.
I fixed it with some JS and CSS:
<script language="javascript">  
var div_IE_Fix = document.getElementById('rrInTheSecondTabPanel');  
div_IE_Fix.style.visibility = 'visible';  
div_IE_Fix.className = 'RadRotator RadRotator_Default rrNoBorder';  
</script>
 
<style type="text/css">  
.rrRelativeWrapper  
{  
height143px;   
width610px;  
}  
 
.rrClipRegion  
{  
overflowhidden;   
width610px;   
height143px;   
positionrelative;  
}  
 
.rrItemsList  
{  
left: 0px/* dynamicaly changed on 'MouseOver' */ 
top0px;   
width3660px/* dynamicaly computed */ 
height32px;  /* dynamicaly computed */ 
positionrelative;  
}  
</style> 
Her my relevant HTML
    <ajaxToolkit:TabContainer ID="TabContainer" runat="server" ActiveTabIndex="0">  
 
    <ajaxToolkit:TabPanel ID="tp_10" runat="server" HeaderText="TabPanel 1">  
        <ContentTemplate> 
        <div class="SlideShow_Misc_Wrapper">  
        <asp:Image ID="SSArrowLeft_tp_10" ImageUrl="~/images/SSArrowLeft_on.png"  AlternateText="right" runat="server" CssClass="SSArrowLeft" /> 
        <div class="SlideShow_Misc_Content">  
            <telerik:RadRotator ID="rr_tp_10" runat="server" DataSourceID="xdsTab1" Width="610" Height="143" FrameDuration="1" RotatorType="ButtonsOver">  
            <ItemTemplate> 
            <div class="SlideShowElement">  
                <div style="height:40px; overflow:hidden;"><%#XPath("Description")%></div>  
            </div> 
            </ItemTemplate> 
            <ControlButtons LeftButtonID="SSArrowLeft_tp_10" RightButtonID="SSArrowRight_tp_10" /> 
         </telerik:RadRotator>    
         <asp:XmlDataSource ID="xdsTab1" XPath="XML/stuff" runat="server"></asp:XmlDataSource> 
         </div>           
         <asp:Image ID="SSArrowRight_tp_10" ImageUrl="~/images/SSArrowRight_on.png"  AlternateText="right" runat="server" CssClass="SSArrowRight" />     
         </div>    
        </ContentTemplate> 
    </ajaxToolkit:TabPanel>   
      
    <ajaxToolkit:TabPanel ID="tp_11" runat="server" HeaderText="TabPanel 2">  
        <ContentTemplate> 
        <div class="SlideShow_Misc_Wrapper">  
        <asp:Image ID="SSArrowLeft_tp_11" ImageUrl="~/images/SSArrowLeft_on.png"  AlternateText="right" runat="server" CssClass="SSArrowLeft" /> 
        <div class="SlideShow_Misc_Content">  
            <telerik:RadRotator ID="rr_tp_11" runat="server" DataSourceID="xdsTab2" Width="610" Height="143" FrameDuration="1" RotatorType="ButtonsOver">  
            <ItemTemplate> 
            <div class="SlideShowElement">  
                <div style="height:40px; overflow:hidden;"><%#XPath("Description")%></div>  
            </div> 
            </ItemTemplate> 
            <ControlButtons LeftButtonID="SSArrowLeft_tp_11" RightButtonID="SSArrowRight_tp_11" /> 
         </telerik:RadRotator>   
         <asp:XmlDataSource ID="xdsTab2" XPath="XML/stuff" runat="server"></asp:XmlDataSource> 
         </div>           
         <asp:Image ID="SSArrowRight_tp_11" ImageUrl="~/images/SSArrowRight_on.png"  AlternateText="right" runat="server" CssClass="SSArrowRight" />     
         </div>    
        </ContentTemplate> 
    </ajaxToolkit:TabPanel> 

Is it possible to overwrite the 'MouseOver' effect in JS to get it works as it should be?

Thanks for any suggestions

Regards
Pero
Telerik team
 answered on 30 Mar 2010
1 answer
106 views
I need to be able to disable days based on changing dates in a database.  So my question is what would be the preferred method to do the client side updating to disable the dates?  I do not have access to the dates to be disabled in javascript.  Can I do a server side call in the client side OnDayRender?  Do I need to disable all potential dates when the control is first rendered?  This would not be my preferred method. Do I need to invalidate the control each time the month changes?  If so how would I do that?


Radoslav
Telerik team
 answered on 30 Mar 2010
1 answer
371 views
HI,
    i have one combox and some checkbox

<telerik:RadComboBox ID="ddlAction" Width="120px" EnableEmbeddedSkins="false"
                                                            Skin="IELSkin" Height="55px" runat="server" OnClientSelectedIndexChanged="fnSetAction">
                                                            <Items>
                                                                <telerik:RadComboBoxItem Text="--Select Action--" Selected="true" Value="0" />
                                                                <telerik:RadComboBoxItem Text="Copy" Value="2" />
                                                                <telerik:RadComboBoxItem Text="Delete" Value="1" />
                                                            </Items>
                                                        </telerik:RadComboBox>

<asp:CheckBox ID="chk1" runat="server" />
<asp:CheckBox ID="chk2" runat="server" />
<asp:CheckBox ID="chk3" runat="server" />
<asp:CheckBox ID="chk4" runat="server" />




   
if i select any of these copy or delete form combox i have to check wheather is there any checkbox check.
if not i have to raise the alert and make the combox selection to the "--Select Action--"..

i am using  select() method
but if i use this method it again fires the OnClientSelectedIndexChanged event.it starts looping
somehow i have to stop this firing event
i tried get_selected()  method but it doesn't work.


function fnSetAction(sender,args)
{
     //Check if any check box is checked
var ddlAction11 = sender
ddlAction11.get_items().getItem(0).select();
}

please suggest me some solution as soon as possible.
Waiting for your fruitfull reply

cheers
Shrirang Dhere




Shinu
Top achievements
Rank 2
 answered on 30 Mar 2010
1 answer
121 views
Hi there
   I got a wired issue in binding the Telerik RadTreeView with hierarchial data. The collection is having lets say (Id, ParentId, and Text) properties. When i bind it to the treeview it is not working. The collection looks like this

ID |  ParentID | name
-1   -2              "root"
50   -1             "node1"
like wise..  - This is not working as the ParentID is a negative integer.

I also tried with manipulating the Ids so that just the root having the highest positive number and all other can have positive parent
ID |  ParentID | name
0   35565        "root"
50   0             "node1"
likewise - In this case, except the root all other child nodes are rendering.

Tell me, in the case of having object collection (which i cannot modify) containing ParentId as negative numbers - how do i bind this to treeview ? It this a bug
Dimitar Milushev
Telerik team
 answered on 30 Mar 2010
1 answer
193 views
I have a RadGrid which have DatasourceID="1" as default and I need that GridHyperlinkColumn to have the text from DataSourceID="2", because my first datasource don't contain the "Name" field.
Here is my code:
k:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" 
    AllowAutomaticUpdates="True" AutoGenerateColumns="False" AutoGenerateDeleteColumn="True" 
    AutoGenerateEditColumn="True" DataSourceID="LinqDataSource1" OnItemDataBound="RadGrid1_ItemDataBound" 
    GridLines="None" AllowSorting="True" Skin="Vista" OnItemCreated="RadGrid1_ItemCreated" 
    OnItemUpdated="RadGrid1_ItemUpdated" EnableLinqExpressions="false" ShowFooter="True" 
    DataKeyNames="ProductID"
    <MasterTableView DataKeyNames="CartID,ProductID" DataSourceID="LinqDataSource1"
        <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </ExpandCollapseColumn> 
        <Columns> 
            <telerik:GridBoundColumn DataField="CartID" HeaderText="CartID" ReadOnly="True" SortExpression="CartID" 
                UniqueName="CartID" Visible="False"
            </telerik:GridBoundColumn> 
            <telerik:GridHyperLinkColumn HeaderText="Name" UniqueName="Name" DataTextField="Name" 
                DataType="System.String" DataNavigateUrlFields="ProductID" DataNavigateUrlFormatString="/Product.aspx?ProductID={0}"
            </telerik:GridHyperLinkColumn> 
            <telerik:GridDropDownColumn DataField="ProductID" DataSourceID="LinqDataSource2" 
                HeaderText="Name" ListTextField="Name" ListValueField="ProductID" ReadOnly="True" 
                UniqueName="column"
            </telerik:GridDropDownColumn> 
            <telerik:GridDropDownColumn DataField="Quantity" HeaderText="Quantity" UniqueName="Quantity1"
            </telerik:GridDropDownColumn> 
            <telerik:GridBoundColumn DataField="DateAdded" DataType="System.DateTime" HeaderText="DateAdded" 
                ReadOnly="True" SortExpression="DateAdded" UniqueName="DateAdded" Visible="False"
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="Price" DataFormatString="{0:c}" DataType="System.Double" 
                HeaderText="Price" ReadOnly="True" SortExpression="Price" UniqueName="Price" 
                Visible="True" /> 
            <telerik:GridCalculatedColumn HeaderText="Subtotal" DataFormatString="{0:c}" UniqueName="TotalPrice" 
                DataType="System.Double" DataFields="Quantity, Price" Expression="{0}*{1}" FooterText="Total : " 
                Aggregate="Sum" /> 
        </Columns> 
    </MasterTableView> 
    <ClientSettings EnableRowHoverStyle="True"
        <Selecting AllowRowSelect="True" /> 
    </ClientSettings> 
    <FilterMenu EnableTheming="True"
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    </FilterMenu> 
</telerik:RadGrid> 
<asp:LinqDataSource ID="ShippingDataSource" runat="server" ContextTypeName="LinqCommerceDataContext" 
    TableName="lc_RegionShippingTables"
</asp:LinqDataSource> 
<br /> 
<asp:Label ID="statusLabel" ForeColor="Red" runat="server" CssClass="style1" /><br /> 
<asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="LinqCommerceDataContext" 
    EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="lc_ShoppingCarts" 
    Where="CartID == @CartID" OnDeleted="LinqDataSource1_Deleted" OnUpdated="LinqDataSource1_Updated"
    <WhereParameters> 
        <asp:CookieParameter CookieName="BalloonShop_CartID" Name="CartID" Type="String" /> 
    </WhereParameters> 
</asp:LinqDataSource> 
<asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="LinqCommerceDataContext" 
    Select="new (ProductID, Name)" TableName="lc_Products"
</asp:LinqDataSource> 
<asp:LinqDataSource ID="LinqDataSource3" runat="server" EnableUpdate="True" TableName="lc_ProductInventory" 
    Where="ProductID == @ProductID" ContextTypeName="LinqCommerceDataContext" Select="new (ProductID, Name)"
</asp:LinqDataSource> 
I need that GridHyperlinkColumn to have the "Name" field as text. Can you help me? Thanks
Radoslav
Telerik team
 answered on 30 Mar 2010
1 answer
57 views
Hello,

I am using 2009 Q3 SP1 with the CDN activated from the web.config file.
I have also enabled the IIS 7 dynamic compression for my site and all the pages are sent compressed to the client.

But all the files from telerik CDN are served uncompressed : all the JS and CSS are pointing to the "ajax" folder and not the "ajaxz"
With the same client, I have tested your webmail demo and the files from your CDN are served compressed.

Is there anything special to configure to get compressed file from the CDN ?

Thanks
T. Tsonev
Telerik team
 answered on 30 Mar 2010
3 answers
181 views
Hi there,

I try to style with RadFormDecorator

<asp:ListBox DataTextField="Naam" DataValueField="id" SelectionMode="Multiple" id="Golfbanen" rows="6" runat="server"></asp:ListBox>

Now MultiSelect is not working anymore.

is this a bug or by design?

Marc




Georgi Tunev
Telerik team
 answered on 30 Mar 2010
1 answer
152 views
I am using the RadProgressManager to manage a custom progress. I've set every timeout I can think of 

    IIS AppPool from 20 to 360 min
    forms timeout to 1200
    httpruntime executiontimeout to 12000
    sessionstate timeout to 1200

Yet, no matter what I do, the page displays "Page cannot be displayed" when it gets to 60 minutes exactly. Progress Monitor works flawlessly until then, or on smaller processes.

When this happens, the process DOES continue in the background until finished.

Any ideas where there could be another timeout that is set to 60 minutes?

Thanks in advance.
Genady Sergeev
Telerik team
 answered on 30 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?