Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
99 views
Hello,
I 've got a little problem with my grid: i can't filter several columns.
When i filter one column, the grid disable the others column's filters.
ronny
Top achievements
Rank 1
 answered on 09 Oct 2008
1 answer
148 views
Hi,

I have a Datagrid with 3 imagebuttons. I want to display a flyout user control, when the user hovers over one of the imagebuttons. I was able to pull this off using the following code in the ItemDataBound event of the grid.

 

If CType(e.Item.Cells(6).Controls(0), System.Web.UI.WebControls.ImageButton).ImageUrl = "~/PresentationLayer/img/Info_02_Info.png" Then

 

RadToolTipManager1.TargetControls.Add(

CType(e.Item.Cells(6).Controls(0), System.Web.UI.WebControls.ImageButton).ClientID, e.Item.Cells(3).Text.ToString(), True)

 

 

End If

 

The issue is that when I am setting the 'value' for the targetcontrol through code behind the value is not getting passed to the Ajaxupdate event.Although when I use markup to set the value, the correct value gets passed in. Unfortunately I cannot use markup for it, since my target control is a imagebutton on the grid.

 

Protected Sub RadToolTipManager1_AjaxUpdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles RadToolTipManager1.AjaxUpdate

Dim ctrl As Control = Page.LoadControl("~\UserControls\SaveTemplateFlyoutDetails.ascx")

 

e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl)

 

End Sub

 

Any help would be appreciated.

Thank you.
Svetlina Anati
Telerik team
 answered on 09 Oct 2008
1 answer
126 views
I am migrating to RadControls for ASP.Net Ajax version 2008.2.826.20.

A div panel is generated around any control that is the target of an update.  Because the div is set with style="DISPLAY: block", it is causing the page to render incorrectly in many situations.  There is no class defined on the generated div.  Is there a way to control this behavior?

For example:

2 labels which should be showing up next to each other are on separate lines

 

<td>
<asp:Label CssClass="StandardText" ID="Label3" runat="server" Text="<%$Resources: SampleCount %>"></asp:Label>
<asp:Label CssClass="StandardText" ID="lblSampleCount" runat="server" Text="0"></asp:Label>
</td>

 

Rendered as:
<TD><SPAN class=StandardText id=ctl00_Content_Label3>Count:</SPAN>
<DIV id=ctl00_ctl00_Content_lblSampleCountPanel style="DISPLAY: block"><SPAN class=StandardText id=ctl00_Content_lblSampleCount>1</SPAN></DIV></TD></TR>

Also, I have a section of hidden variables, some of which are the target of an update.  All of the sudden after an ajax request, these hidden variables are taking up space on the screen.
Dimo
Telerik team
 answered on 09 Oct 2008
5 answers
173 views
Hello!

I have a few combos on the page each making an ajaxpostback after "SelectedIndexChanged event". The combos use LoadOnDemand as well.

Actually things work fine except for one situation: If I trigger the "selectedIndexChangedEvent" and in the second after the ajaxpostback has finished(eg. right after the loadingpanel disappears) I try to expand a combobox (that loads on demand) the loading gets stuck and never finishes.

I tried to reproduce the error but with no success. It seems to work well in small application, but in our application this issue occurs whereever it is possible.

Do you have any ideas or suggestions how to solve this? Is there a way to leave the loadingPanel on the page a few milliseconds after loading has actually finished?

Thx in advance & kind regards
 
Rosi
Telerik team
 answered on 09 Oct 2008
3 answers
148 views
How do I go about doing this?

I have a scheduler showing the appointments which are bound to a date range for a given month, with two other bindings (provider and location). If I switch from Month to Day view, the control displays the appointments for the current date.

What I need it to do is to allow the user to select the date from the Month view, then bind the data based on the selected date. Example:  the user navigates three months from today, then selects the 25th of that month, then selects Day view. I need the appointments for the 25th of January 2009 to be displayed. When they switch back to Month view, it would display all of January 2009.

I don't see server-side events to handle the single click for selection, and I can't figure out how to make the client-side events work with the server-side. I can grab the selected date clients-side, but I'm stuck at this point.

Help is greatly appreciated!
Peter
Telerik team
 answered on 09 Oct 2008
1 answer
232 views
Hey All,

I have a special events list.  The list has the event name and a date.  The list gets rendered to screen inside of an ASP.NET repeater.  My repeater uses an ArrayList of objects as it's data source. The object is "SpecialEvent" with "EventName" and "EventDate" data members. DateTime objects are garbage in VB so I use a custom Long, with the date/time being "yyyyMMddHHmmss".

My question is what value do I need to return from this object to set a null value?  Currently I was checking

If LongDateTime = -1 Then
Return Nothing

But that seems to be resolved to 1/1/1 0:00:00 AM by the datbind method in my repeater.  What is the best "Nothing" value to use with the RadDateTimePicker to stop this pesky error from happening?

Thanks,
Rob
Sebastian
Telerik team
 answered on 09 Oct 2008
1 answer
115 views

Hi,

Is it possible to use different templates, both for ItemTemplate and HeaderTemplate. The templates need to be switched programmaticaly between requests.

Thanks,
Oner
Yana
Telerik team
 answered on 09 Oct 2008
1 answer
409 views
I have a requirement to change a background color in RadNumericTextBox to yellow if the value is greater than 5, otherwise use the color defined in the css. How to achieve that?
I used the script below but get_element() returns a reference to a hidden input element.

    <script type="text/javascript">  
        function ClientValueChanged(sender, args) {  
            if (args.get_newValue() > 5)  
                sender.get_element().style.backgroundColor = "#ffee00";  
            else  
                sender.get_element().style.backgroundColor = "";  
        }  
    </script> 
Dimo
Telerik team
 answered on 09 Oct 2008
4 answers
184 views
I have a feeling this has something to do with my implementation, but I cannot figure out how to fix this.  I have a RadScheduler control set up with a custom provider that only provides the method stubs (does not return any data).  For simplicity,  I am not returning any appointments with the provider.  The RadScheduler is set up with the Outlook skin, but I get this issue with all skins.

I am starting in the day view.  My issue is that when the page initially loads, my CSS does not seem to get applied  Ultimately what I am going for is to have the non-work hours grayed out.   Once the page loads, if I click the link to show all hours, then the page refreshes and my CSS is applied.  Likewise, if I start in week view the CSS does not initially show; but if I then switch to Day view, the CSS is applied.  Can someone point me to what I may be doing wrong?

On the page that contains the RadScheduler, I have the following CSS Snippet:
<style type="text/css">
        .RadScheduler_Outlook .rsCell
        {
            background-color: #BAACA8;
        }
</style>

In my Page Load event, all I have is the following:
       RadScheduler1.Provider = New MyProvider()
       SetDayTimes()

The Navigate event for the Scheduler contains only this line:
         SetDayTimes()

This is the tag for my RadScheduler control:
<telerik:RadScheduler ID="RadScheduler1" runat="server" OverflowBehavior="Expand" Skin="Outlook"></telerik:RadScheduler>

The SetDayTimes method simply sets the DayStartTime, DayEndTime, WorkDayStartTime, and WorkDayEndTime values to preset TimeSpans.

Thanks,
Andrew

Andrew
Top achievements
Rank 1
 answered on 09 Oct 2008
6 answers
190 views
Hi,

I need to place an Upload control in a div that has a fixed height and has its contents scrolling via the overflow:auto style.  The div also needs its the position style set to relative.  The issue is that if the upload control is rendered in the hidden area then the "browse" button doesn't function correctly.  I believe this is to do with the real file input control not being positioned correctly over the top of the control?  However i can't seem to solve it.  If the upload control is rendered in the visible area it works fine.

You can see the problem in the example below, the upload controls at the top of the list work fine but if you scroll to the bottom then they do not work?  Any ideas?

<html xmlns="http://www.w3.org/1999/xhtml" >  
<head id="Head1" runat="server">  
    <title></title>  
</head>  
<body>  
    <form id="form1" runat="server">      
    <asp:ScriptManager ID="ScriptManager1" runat="server">  
    </asp:ScriptManager>  
    <div style="overflow:hidden;"
        <div style="height: 150px; overflow:auto; border:solid 1px black; position:relative;">  
            <telerik:radupload   
                id="RadUpload1"   
                runat="server"    
                InitialFileInputsCount="10"  
                EnableFileInputSkinning="true"/>         
        </div> 
    </div>  
    </form>  
</body>  
</html>  

Thanks,

Jeff
Paul
Telerik team
 answered on 09 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?