Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
210 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
91 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
238 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
328 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
63 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
125 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
382 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
6 answers
126 views
Hi ,
function OnClientItemOpening(menu, args) {
        var item = args.get_item();
        var cols = args._item._itemData.length;
        for (var j = 0; j < cols; j++) {
            if (args._item._itemData[j].value == "FileID" || args._item._itemData[j].value == "fileSizeValue" )
              {
                if (args._item._itemData[j].value == "fileSizeValue") {
                    item.get_items().getItem(j).get_element().style.display = "none";
                }
                else {
                    item.get_items().getItem(j).get_element().disabled = true;
                }
            }
        }
  
    }

With this code , i am able to disable/hide the coulmns of the HeaderContextMenu. But this works fine only with IE , not with Mozilla firefox.
Both the display and disabled properties are not working only in FireFox browser.
We are in urgent need of it. Kindly help us in solving this issue as early as possible.

Thanks,
Sudha.


Tsvetina
Telerik team
 answered on 23 Nov 2011
3 answers
126 views
Hi,

I just updated my telerik dll and have found that my upload controls have all stopped working in FireFox 6, but are fine in IE....
Does anyone know why?
Jaymie
Top achievements
Rank 1
 answered on 23 Nov 2011
0 answers
279 views
A rather popular scenario when using the RadToolTip is to use a single instance on the page and utilize the onmouseover event of the  targeted elements to set a new target for the tooltip via JavaScript and show it. Generally the better approach would be to use a RadToolTip for each control or a RadToolTipManager to load content on demand, yet using a single instance reduces the markup on the page, so it is sometimes used.

When you change a RadToolTip's TargetControl (or TargetControlID) then call its show() method since Q3 2011 you need to do so with a small timeout, e.g.:

<input type="text" onmouseover="showToolTipNewTarget(this);" />


<script type="text/javascript">
    function showToolTipNewTarget(newTarget) 
    {
        var radTooltip1 = $find("RadToolTip1");
        radTooltip1.set_targetControl(newTarget);
        setTimeout(function () {
            radTooltip1.show();
        }, 20);
    }
</script>



If you do not use this timeout the necessary calculations cannot be performed and usually the tooltip will be shown next to the previous target.
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 23 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?