Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
196 views
hi all,
Is it any way to reduce the length of the filter textbox. when i try to set the header width as small value my filtering icon disappears. i dont want it so. instead i am ok with a small text box. please help...

Regards,
Saravanan K
Dimo
Telerik team
 answered on 30 Mar 2010
4 answers
147 views
void RadGrid1_ItemCommand2(object source, GridCommandEventArgs e)  
        {  
            if (e.CommandName == RadGrid.FilterCommandName && ((Pair)e.CommandArgument).Second.ToString() == "orderdatetime")  
            {  
                e.Canceled = true;  
                GridFilteringItem filterItem = (GridFilteringItem)e.Item;  
                string filterPattern = "3/1/2010";  
                string filterPatternAssist = "4/1/2010";  
                filterPattern = "" + filterPattern + " <= [orderdatetime] AND [orderdatetime] <= " + filterPatternAssist + "";  
                GridBoundColumn dateColumn = (GridBoundColumn)e.Item.OwnerTableView.GetColumnSafe("orderdatetime");  
                dateColumn.CurrentFilterFunction = GridKnownFunction.Between;  
                RadGrid1.MasterTableView.FilterExpression = filterPattern; // Expression expected  
                RadGrid1.Rebind();  
            }  
        } 

Filtering a datetime column using a dropdown triggers the above function. The Rebind shows the error "Expression expected". How do I fix this ? This code is the same as all the examples I've found so far. The only difference is that I'm using a LINQ datasource.

Please advise.

Foenix
Top achievements
Rank 1
 answered on 30 Mar 2010
1 answer
85 views
Hi,

I have a menu on my MasterPage with icons...
And each time I change page, the website is loading the 30 icones...

Is it possible pour put thoses icones in WebResource ? our in cache ?

Thank you

Jean-Yves
Dimitar Milushev
Telerik team
 answered on 30 Mar 2010
1 answer
102 views
Using the latest version of Firefox, v3.6, the RadListBox buttons show up in a vertical stack rather than displaying horizontally. It wasn't doing this with older versions of the browser though.  Example:

To recreate it, go to here:
http://demos.telerik.com/aspnet-ajax/listbox/examples/functionality/buttons/defaultcs.aspx

Then set the button position to Bottom.

It presets the horizontal alignment to left, which is fine, and the button position is technically on bottom, but the buttons overlap the listbox itself.

Any fixes for it?




Genady Sergeev
Telerik team
 answered on 30 Mar 2010
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
138 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
89 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  
{  
height: 143px;   
width: 610px;  
}  
 
.rrClipRegion  
{  
overflow: hidden;   
width: 610px;   
height: 143px;   
position: relative;  
}  
 
.rrItemsList  
{  
left: 0px; /* dynamicaly changed on 'MouseOver' */ 
top: 0px;   
width: 3660px; /* dynamicaly computed */ 
height: 32px;  /* dynamicaly computed */ 
position: relative;  
}  
</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
112 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
381 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
128 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
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?