Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
315 views

Currently working on a project that requires what is effectively being called a "Notification Queue" which is embedded into the Site.Master page in a ASP.NET 4.5 C# environment with Visual Studio 2013 SP 2.

The Notification Queue is a Web User Control which has 8 RadNotification controls, currently, 7 of the controls are ennumerated RadNotification1 to RadNotification7 for their ID, the 8th RadNotification control has a RadButton, an ASP ImageButton and ASP Label.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="telNotificationQueue.ascx.cs" Inherits="poetwebapp.Controls.telNotificationQueue" %>
<script type="text/javascript" >
    function jsAcknowledge(s, e) {
        s.set_autoPostBack(true);
        s.set_commandArgument("All");
        debugger;
        __doPostBack('<%=butAcknowledgeAll.UniqueID%>', 'OnClick');
    }
</script>
<telerik:RadNotification ID="radNotification1" runat="server" AutoCloseDelay="0" Height="130" Width="330" ShowCloseButton="true" ShowTitleMenu="false" Skin="Web20" ContentScrolling="Y" VisibleTitlebar="true">
    <ContentTemplate>
    </ContentTemplate>
</telerik:RadNotification>
<telerik:RadNotification ID="radNotification2" runat="server" AutoCloseDelay="0" Height="130" Width="330" ShowCloseButton="true" ShowTitleMenu="false" Skin="Web20" ContentScrolling="Y" VisibleTitlebar="true">
    <ContentTemplate>
    </ContentTemplate>
</telerik:RadNotification>
<telerik:RadNotification ID="radNotification3" runat="server" AutoCloseDelay="0" Height="130" Width="330" ShowCloseButton="true" ShowTitleMenu="false" Skin="Web20" ContentScrolling="Y" VisibleTitlebar="true">
    <ContentTemplate>
    </ContentTemplate>
</telerik:RadNotification>
<telerik:RadNotification ID="radNotification4" runat="server" AutoCloseDelay="0" Height="130" Width="330" ShowCloseButton="true" ShowTitleMenu="false" Skin="Web20" ContentScrolling="Y" VisibleTitlebar="true">
    <ContentTemplate>
    </ContentTemplate>
</telerik:RadNotification>
<telerik:RadNotification ID="radNotification5" runat="server" AutoCloseDelay="0" Height="130" Width="330" ShowCloseButton="true" ShowTitleMenu="false" Skin="Web20" ContentScrolling="Y" VisibleTitlebar="true">
    <ContentTemplate>
    </ContentTemplate>
</telerik:RadNotification>
<telerik:RadNotification ID="radNotification6" runat="server" AutoCloseDelay="0" Height="130" Width="330" ShowCloseButton="true" ShowTitleMenu="false" Skin="Web20" ContentScrolling="Y" VisibleTitlebar="true">
    <ContentTemplate>
    </ContentTemplate>
</telerik:RadNotification>
<telerik:RadNotification ID="radNotification7" runat="server" AutoCloseDelay="0" Height="130" Width="330" ShowCloseButton="true" ShowTitleMenu="false" Skin="Web20" ContentScrolling="Y" VisibleTitlebar="true">
    <ContentTemplate>
    </ContentTemplate>
</telerik:RadNotification>
<telerik:RadNotification ID="RadNotificationQueueCommands" runat="server" AutoCloseDelay="0" Height="35" Width="330" ShowCloseButton="false" LoadContentOn="TimeInterval" UpdateInterval="120" VisibleOnPageLoad="false" VisibleTitlebar="false" >
    <ContentTemplate>
    <div style="padding-top:5px; padding-bottom:5px; padding-left:5px;">
       <telerik:RadButton ID="butAcknowledgeAll" runat="server" Text="Acknowledge All" AutoPostBack="true" OnClientClicked="jsAcknowledge" OnClick="RadButton1_Click" OnCommand="butAcknowledgeAll_Command" UseSubmitBehavior="true" CommandName="AcknowledgeAll" CausesValidation="false">
    </telerik:RadButton>
              <asp:ImageButton ID="ibtRefreshList" runat="server" ImageUrl="~/Images/refresh_icon.png" Style="padding-top:3px;" />
                <asp:Label ID="lblWaitingNotifications" runat="server" Text="# Notifications"></asp:Label>
    </div>
    </ContentTemplate>
</telerik:RadNotification>


The RadButton OnClick (Server-side) Event is not being fired by the current code. The OnClientClicked event does run the jsAcknowledge function but the stop points within Visual Studio 2013 SP 2 are not being triggered - these stop points are:
protected void RadButton1_Click(object sender, EventArgs e) { fnProcessForm(); }
protected void butAcknowledgeAll_Command(object sender, CommandEventArgs e) { fnProcessForm(); }

So, this would indicate that the OnClick event is not being triggered and this event does need to be able to fire since the server-side code will contain an SQL UPDATE command /transaction. Recommendations?

The fnProcessForm() function displays the appropriate number of messages on the screen for the user and updates the Label to indicate the overall number of waiting messages for the user. The attached file displays an example of the layout.

Danail Vasilev
Telerik team
 answered on 30 Jul 2014
8 answers
519 views
I have a NestedViewTemplate which will contain several labels and another RadGrid. Because it's expensive to get the data for the labels and nested grid, I'd like to do this only when the NestedViewTemplate is visible.

I set the HierarchyLoadMode to ServerOnDemand and registered for the ItemDataBoundEvent. In the ItemDataBound event, I check the ItemType, and if it's NestedView, I do my expensive data lookups and bind to the labels/grid.

This works great, except that the NestedView items are being databound not when I expand the item in the grid, but instead when the grid is initially databound.

What am I doing wrong?
Eyup
Telerik team
 answered on 30 Jul 2014
29 answers
2.0K+ views
I need to be able to prevent users from double-clicking on a toolbar button or very quickly click on two toolbar buttons. Or better yet, have the whole toolbar disabled after single-clicking on a toolbar button.

This is just to prevent any intended function to be run more than once or to prevent any unintended function to be executed.

Thanks for any help.
Peter Filipov
Telerik team
 answered on 30 Jul 2014
15 answers
1.6K+ views

Hi Telerik Team,

i am using radmenu in Master page.
when i try to click the radmenu item ,i am not able to fire the click event on radmenu.

i searched some forums in telerik in which the people were saying set the Autopostback property to True.

when i try to set the autopostback property ,that property is not showing in property box of radmenu control.

means i am not able to find the autopost back property in control.

Can you pls provide the solution for this issue.

Princy
Top achievements
Rank 2
 answered on 30 Jul 2014
1 answer
108 views
Hi

in the page http://www.telerik.com/ use the control with 4 points that you help advanced or navigate by elements, I have a question this element  pertain the control rotator
or how to developer?

Thanks 
Slav
Telerik team
 answered on 30 Jul 2014
3 answers
284 views
I have the skin for my project set in the web.config like so:
<add key="Telerik.Skin" value="Metro" />

Everything's good, but the embedded icon on my RadButton is not using the Metro icon.  Here's the markup for the button:
<telerik:RadButton ID="rbCreateNew" runat="server"
    Text="Create New">
    <Icon PrimaryIconCssClass="rbAdd" />
</telerik:RadButton>

In the attached image, the "Create New" button is my button, and the "Add" button is from the RadButton embedded icons demo page.

I want my "Create New" button plus sign to look like the "Add" plus sign (black instead of green).  I tried setting the Skin directly in the RadButton control attributes, but it didn't change anything.  What am I missing here?

I am using 2013.3.1114.45.
Shinu
Top achievements
Rank 2
 answered on 30 Jul 2014
3 answers
1.2K+ views
Hi ,

I encountered a scenario i.e. where we have to stop uploading of .exe or .bat files when their extension is changed to acceptable extension (.txt,.html,.htm,.odt,.rtf,.doc,.docx). I have tried to find a solution by using .NET code where I have used header codes of different file extensions, but header codes for .html and .htm get changed and doesn't seem to have a fixed header code. I have used Mime/Extension type but it didn't work. Looking for a solution through Telerik Controls.

Thanks,
Chaitanya.
Shinu
Top achievements
Rank 2
 answered on 30 Jul 2014
5 answers
206 views
We get this error on occasion in our application and was wondering what may be causing it.  Any help/guidance would be appreciated.

System.IO.IOException: The handle is invalid.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.Threading.EventWaitHandle.Set()
at Telerik.Web.UI.RadScheduler.resourceTypeControl_DataBound(Object sender, EventArgs e)
at System.Web.UI.WebControls.BaseDataBoundControl.OnDataBound(EventArgs e)
at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
at Telerik.Web.UI.RadScheduler.BindResourcesFromDataSource()
at Telerik.Web.UI.RadScheduler.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
at Telerik.Web.UI.RadScheduler.EnsureDataBound()
at Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource)
at Telerik.Web.UI.RadScheduler.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Boyan Dimitrov
Telerik team
 answered on 30 Jul 2014
3 answers
101 views
Hi!

while testing the RadDiagram I noticed that the text within the shapes is higher aligned when using the Internet Explorer 10. Firefox renders the text vertically centered. Does anybody know a CSS-Trick to "fix" the IE10-behaviour?

Best regards,
Hans
Slav
Telerik team
 answered on 30 Jul 2014
1 answer
197 views
I have a radhtmlchart in my page. What I want is I want the tooltip which is displayed on hovering the series to be always visible. How can I do this?
Princy
Top achievements
Rank 2
 answered on 30 Jul 2014
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?