Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
169 views
Hi,
I have a RadToolBarSplitButton where I set buttons in runtime.
I calcule the dropdown height from the number of  button.

But everyime the vertical scroll bar are visible.

How do you remove this scroll bar ?

int dropDownHeight = (int)(Annees.Buttons.Count * 25);
if (dropDownHeight > 250)
{
   dropDownHeight = 250;
   //show vertical scroll bar
}
else
{
  //not show vertical scroll bar
}
                         
Annees.DropDownHeight = Unit.Pixel(dropDownHeight);
Stephane
Top achievements
Rank 1
 answered on 23 Nov 2011
5 answers
172 views
hi,

I'm using a scheduler in an MVC page, doing web services mode.

I do have a issue with the localization.
The locale of scheduler, bowser and page are all set to Dutch 
My localized resources work fine
The popup calendar for selecting a date is in Dutch
The format of date and time follows my custom formats

Nevertheless the names of the day of the week and the month names are still in English. How can I tame this detail ?

Peter
Peter
Telerik team
 answered on 23 Nov 2011
9 answers
347 views

Hello.

In my web application, a page is displayed with the RadScheduler component, whose ColumnWidth property has been set to a certain number of pixels.

When an appointment is displayed, it does not fill the entire cell; a certain space is left on the right side, just like in the following demo: http://demos.telerik.com/aspnet-ajax/scheduler/examples/customization/defaultcs.aspx.

What should I do to set the width of the appointment equal to RadScheduler ColumnWidth?

Thank you.

Paulo

Peter
Telerik team
 answered on 23 Nov 2011
1 answer
165 views
I put in what I thought was some simple code:

           <div id="divRight1stRow" class="float_right" style="padding: 6px;">
                <div class="float_right">
                     <telerik:RadButton Width="25px" Height="26px" ID="btnAdmin" runat="server" Text="Administration" OnClientClicked="btnAdmin_Click">
                    <Image ImageUrl="~/images/administration_25x26.png"/>
                    </telerik:RadButton><br />
                </div>
                <div class="float_right">
                     <telerik:RadButton Width="75px" Height="26px" ID="btnLogout" runat="server" Text="Logout" OnClick="btnLogout_Click" CssClass="margin_right">
                    <Image ImageUrl="~/images/logout_v1_75x26.png" />
                     </telerik:RadButton><br />
                </div>
                <div class="float_right">
                    User: <asp:Label ID="lblUserName" runat="server" Text="" CssClass="margin_right"></asp:Label>
                </div>
                <div class="float_right">
                    <asp:Label ID="LblDept" runat="server" Text="Department:&nbsp;" CssClass="margin_right"></asp:Label>
                    <telerik:RadComboBox ID="RadCbBoxDepts" runat="server" AutoPostBack="true" OnSelectedIndexChanged="RadCbBoxDepts_SelectedIndexChanged1"  CssClass="margin_right">
                    </telerik:RadComboBox>
                </div>
            </div>

The problem is I do not see the buttons until i mouse over the area. Any Ideas what is going on?

Slav
Telerik team
 answered on 23 Nov 2011
0 answers
69 views
Hello ,

recently i am working on Email functionality and in that we had a grid to which we have to bind a check box  which has functions like Check all, None,Read,Unread  how to implement this using radgrid,please respond if u have any idea.

Regards,
Madhukar.
Saimadhukar
Top achievements
Rank 1
 asked on 23 Nov 2011
13 answers
180 views
I have a tooltip solution that was working under Q3.1208 that breaks when I upgrade to Q3.1314.  I have a static tooltip in the HTML like this:

    <telerik:RadToolTip ID="rttConfigPanel" runat="server" Modal="true" ShowCallout="true" 
        ShowDelay="0" HideDelay="500" HideEvent="ManualClose" Title="Widget Configuration" 
        ShowEvent="FromCode" TargetControlID="tabLayoutTabs"
        <iframe id="iFrameConfigPanel" src=""></iframe> 
    </telerik:RadToolTip> 

I have a Javascript function on the same page that reveals the tooltip:

        function showToolTip(sender, args) { 
            // cause the tooltip to appear near the command icon that triggered it 
            var tooltip = $find("<%=rttConfigPanel.ClientID %>"); 
            tooltip.set_targetControl(args.Command.get_element()); 
            tooltip.show(); 
 
            // send a fresh querystring to the config panel so it doesn't load from cache 
            var sURL = "WidgetConfigPanel.aspx"
            var oDate = new Date(); 
            var iframe = document.getElementById("iFrameConfigPanel"); 
            sURL = sURL + "?id=" + args.Command.get_name(); 
            sURL = sURL + "&RandomNumber=" + oDate.getHours() + "-" + oDate.getMinutes() + "-" + oDate.getMilliseconds(); 
            iframe.src = sURL; 
        } 

The function gets when the user clicks a (custom) RadDock command button.  It's set up like this:

Dim cmd As New DockCommand() 
cmd.CssClass = WidgetCommandIconCssClasses.CommandConfig 
cmd.Name = WidgetCommands.ConfigPanel + View.LayoutDockId.ToString() 
cmd.AutoPostBack = False ' this command is handled on the client 
cmd.OnClientCommand = "showToolTip" 
cmd.Text = "Configuration Panel" 
 

So, the user clicks the custom command button on the RadDock, the ToolTip (with IFrame) is shown, and the IFrame content is customized to the dock the user clicked on. 

As I say, this works fine with the Q3.1208 release, but the Q3.1314 release breaks it.  The behavior is that the tooltip is shown with only the Text inside it (Configuration Panel).  The IFrame codebehind does get called (I observe while debugging), but the content is never shown.  It's the same if I replace the IFrame with plain text. 

The "break" seems to happen with the set_targetControl function.  It (correctly) moves the ToolTip to the right control, but it seems to be hiding the content.  If I remove that line from the Javascript, it functions correctly, except the ToolTip is not positioned where I want it.

Am I doing something wrong, or is there a problem with Q3.1314?

Thank you!


Marin Bratanov
Telerik team
 answered on 23 Nov 2011
7 answers
275 views
hi,
i've successfully registered a default skin for my application in the web.config file and it works great. what i'd like to do is give my users the oppertunity to select from the 6 or 7 default skins provided by Telerik and, based upon user selection, make that the global skin instead. is there a simple way to override the web.config setting and make it default for all controls?
thanks,
rob
Chris
Top achievements
Rank 1
 answered on 23 Nov 2011
1 answer
48 views
I'm trying to implement a scheduler similar to the "First Look" scheduler on the demo site using a WCF service. I've got it working ok, but I can't seem to find all the code for the checkbox filtering. Specifically what happens when in the OnClientsAppointmentsPopulating event is fired. 

What is happening here? 
eventArgs.get_scheeventArgs.get_schedulerInfo().CategoryNames = categoryNames;
It looks like custom data is being sent through ISchedulerInfo, but I can't seem to find any example code showing how this is done.

If someone can point me in the right directions I'd appreciate it.

Thanks.
Peter
Telerik team
 answered on 23 Nov 2011
1 answer
103 views
Hi,

I have an issue with RadSplitterBar. When I am clicking on Splitterbar, cursor made is changed to resize. It is allowing me to resize the associated radpane. My problem is once the cursor change to resize mode it remain in same mode. and when I click on somewhere else in screen then it comes to normal default mode. This issue comes with IE Browser only. It is working fine with FireFox and Chrome.
I am trying to send you a demo application to explain my issue but I don't find any option for the same. Here is my page design:


<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    <Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    </Scripts>
   </telerik:RadScriptManager><br>
   <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"></telerik:RadAjaxManager>
   <
div style="height:100%">
<telerik:RadSplitter runat="server" ID="spltReviewerMain" Orientation="Vertical" ResizeWithBrowserWindow="true" LiveResize="false" PanesBorderSize="0" ResizeWithParentPane="true" SplitBarsSize="0" BorderStyle="None" BorderSize="0" Width="100%" Height="800">
<telerik:RadPane ID="pnLeft" runat="server" Height="100%">
<telerik:RadPanelBar runat="server" BorderColor="Transparent" ID="RadPanelBar2" >
                <Items>
<telerik:RadPanelItem Expanded="True" BorderColor="Transparent" runat="server" ID="pnlItemTasks" Text="text" Width="100%">
 <ContentTemplate>
<telerik:RadTreeView runat="Server" ID="RadTreeView1" ShowLineImages="false" EnableViewState="true">
 <Nodes>
<telerik:RadTreeNode Text="test1" runat="server"></telerik:RadTreeNode>
                                        <telerik:RadTreeNode Text="test123" runat="server"></telerik:RadTreeNode>
                                        <telerik:RadTreeNode Text="test112345" runat="server"></telerik:RadTreeNode>
                                 </Nodes>
</telerik:RadTreeView>
</ContentTemplate>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelBar>
</telerik:RadPane>
<telerik:RadSplitBar runat="server" ID="spltBarLeft" CollapseMode="Forward" Width="100%" />
        <telerik:RadPane Locked="false" runat="Server" ID="pnRight" Width="70%" Height="100%">
        <table width="99%" frame="box" border="0px" style="height: 99%">
 <tr>
    <td valign="top" colspan="2" align="center" class="style1">
                            <asp:Label ID="DocName" runat="server" Text=""></asp:Label>
                    </td>
                 </tr>
                 <tr>
                     <td colspan="2" height="94%">
                            <iframe runat="server" id="frShowDocs" height="100%" width="100%" borderstyle="Inset" style="position: relative;" visible="true" src="http://localhost:58070/IframeInnerPage.aspx" borderwidth="1px"></iframe>
                     </td>
</tr>
</table>
</telerik:RadPane>
</telerik:RadSplitter>
<span class="Apple-tab-span" style="white-space:pre">   </span>
</
div></form></body>



I am using version v4.0.30319 (2010.3.1317.40). 


Regards,
Prashant
Prashant
Top achievements
Rank 1
 answered on 23 Nov 2011
13 answers
324 views
Once I set the SpecialDays collection they are styled correctly, but as soon as I hover over them I guess they go back to their hover style.

How do I make the SpeicalDays style stick?

CODE BELOW:

<asp:ScriptManager id="ScriptManager" runat="server" />
 <telerik:radajaxmanager id="RadAjaxManager1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadCalendar1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadCalendar1"></telerik:AjaxUpdatedControl>
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:radajaxmanager>
            <telerik:radcalendar
                id="RadCalendar1"
                runat="server"
                Skin="Black"
                AutoPostBack="true"
                MultiViewColumns="2"
                MultiViewRows="2"
                EnableMultiSelect="false"
                EnableViewState="true"
                OnSelectionChanged="RadCalendar1_OnSelectionChanged"
                TitleFormat="MMMM yyyy"
                CultureInfo="English (United States)"  
                >
                <DisabledDayStyle BorderColor="#573d08" BackColor="#573d08" CssClass="SelectedClass" />
            </telerik:radcalendar>




for (Int16 x = 0; x <= Math.Abs(ts.TotalDays); x++)
        {
            RadCalendarDay spec = new RadCalendarDay();
            DateTime dateV = StartDate.Value.AddDays(x);
            spec.Date = dateV;
            spec.IsSelectable = true;
            spec.IsDisabled = true;
            //spec.IsSelected = true;
            RadCalendar1.SpecialDays.Add(spec);  
        }
Joe
Top achievements
Rank 1
 answered on 23 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?