Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
103 views
How would I be able to retrive the value form RadDateInput.InvalidDateString?

Thanks,
Shinu
Top achievements
Rank 2
 answered on 30 Jul 2010
5 answers
234 views
Hi,
I would like to register a second event handler for the RadToolBar's client side event "OnClientButtonClicked". Is that somehow possible?
The first event was registered by adding it to the toolbar's "OnClientButtonClicked" property.

Best regards
Ferdinand
Yana
Telerik team
 answered on 30 Jul 2010
2 answers
132 views
Hi guys,

According to this help:
http://www.telerik.com/help/aspnet-ajax/menu-populate-from-wcf-service.html

I can successfully run OnClientItemPopulatingHandler and there is debug breakpoint that show me GetData is run and the items.count is 4. After that,there is no any radmenu drop-down as expected. Here is the code:

Mark-up
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function OnClientItemPopulatingHandler(sender, e) {
            var context = e.get_context();
            //using jQuery to get the checked item and pass it to the server
            context["ProductSuite"] = $telerik.$("input[name='rblSuites']:checked").val();
        }
 
        function OnClientItemPopulatedHandler(sender, e) {
            var items = e.get_item().get_items();
            for (var i = 0; i < items.get_count(); i++) {
                var item = items.getItem(i);
                //getting the attribute of the item
                var myCustomAttribute = item.get_attributes().getAttribute("MyCustomAttribute");
                //do something with the attribute
            }
        }
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <asp:RadioButtonList ID="rblSuites" runat="server">
           <asp:ListItem Selected="True">ASP.NET AJAX</asp:ListItem>
           <asp:ListItem>WPF</asp:ListItem>
           <asp:ListItem>Silverlight</asp:ListItem>
           <asp:ListItem>Winforms</asp:ListItem>
        </asp:RadioButtonList>    
     
        <telerik:RadMenu ID="RadMenu1"
           OnClientItemPopulating="OnClientItemPopulatingHandler"
           OnClientItemPopulated="OnClientItemPopulatedHandler"
           runat="server">
           <Items>
               <telerik:RadMenuItem Text="Products" ExpandMode="WebService">
               </telerik:RadMenuItem>
           </Items>
           <WebServiceSettings Method="GetData" Path="../Services/WcfTopMenu.svc" />
        </telerik:RadMenu>
    </div>
    </form>
</body>
</html>

.SVC
<%@ ServiceHost Language="VB" Debug="true" Service="WcfTopMenu" CodeBehind="~/App_Code/WcfTopMenu.vb" %>

svc code behind

Imports System.ServiceModel
Imports System.ServiceModel.Activation
Imports System.ServiceModel.Web
Imports Telerik.Web.UI
 
<ServiceContract([Namespace]:="")> _
<AspNetCompatibilityRequirements(RequirementsMode:=AspNetCompatibilityRequirementsMode.Allowed)> _
Public Class WcfTopMenu
    <OperationContract()> _
    Public Function GetData(ByVal item As RadMenuItemData, ByVal context As IDictionary(Of String, Object)) As RadMenuItemData()
        Dim items As New List(Of RadMenuItemData)()
        'use the context to get the selected radio button
        Dim productsSuite As String = context("ProductSuite").ToString()
        'the datasource
        'Dim radControls() As String = New String() {"RadMenu", "RadMenu", "RadTreeView", "RadToolBar"}
        Dim radControls As List(Of [String]) = New List(Of String)() From { _
           "RadMenu", _
           "RadMenu", _
           "RadTreeView", _
           "RadToolBar" _
          }
        For Each radControl As String In radControls
            'Optional: set the attribute of the item which will be used
            'in the OnClientNodePopulated event
            Dim newItem As New RadMenuItemData() With { _
             .Text = String.Format("{0} for {1}", radControl, productsSuite), _
             .Value = radControl, _
             .ImageUrl = "Images/" + radControl + ".gif", _
             .Attributes = New Dictionary(Of String, Object)() From {{"MyCustomAttribute", radControl}}
            }
            items.Add(newItem)
        Next
        Return items.ToArray()
    End Function
End Class


Did I miss sth? If so, please tell me. Thx!
Yana
Telerik team
 answered on 30 Jul 2010
2 answers
216 views
Hello, I have the RadSessionPageStateCompression enabled on my site, however I keep getting these errors since upgrading to 2010 Q1:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. However, I don't use a Web Farm and my machine key and validation key are properly defined in the web.config.  What could be the probable cause?? I am using Session State to store some info of the user and FormsAuthentication (i don't now if that has something to do but with my problem)... The IIS version I am using is 6.0 and .net Framework 3.5 SP1.  I also have radcompression postbackcompression enabled and my viewstate encryption mode is set to "Auto".

Thank you in advance,
Manuel

PS: I also generate my radgrids dynamically on page init.
Rosen
Telerik team
 answered on 30 Jul 2010
1 answer
98 views
Hello,
I have a RadGrid with the EnableHeaderContextFilterMenu="true". The problem is when I try to use the filter it validates all the controls on the page. So an end user would have to fill out a form before they can filter a grid that's on the same page as the form. I was hoping there is a way to change the validation group for the filter menu or set its causesvalidation to false because we would prefer to keep our main form's controls at validation group defaults.
Thanks.
Nikolay Rusev
Telerik team
 answered on 30 Jul 2010
2 answers
167 views
Hi,

I have a telerik radchart created dynamicaly in my web page. I have made the series orientation of the graph to Horizontal so that i get more space to display the x-axis labels in the graph. My axis label texts are quite lengthy & i am not able to display them to the full. After few charecters, they are getting displayed with "..." as shown in attached image-1. I want to display the complete text for labels. The complete text is shown in Image-2.

Also i dont want any negetive numbers in y-axis. Meaning i want the start value to be Zero. I tried setting minimum value=0 but was of no help :(.

Please help me fixing these issues ASAP.

Thanks,
Krishna Samaga B.
Krishna Samaga
Top achievements
Rank 1
 answered on 30 Jul 2010
4 answers
155 views
I am building a radgrid dynamically and adding columns selected by the user at runtime.  The radmultipage is on the content panel of a master page inside a div:

        <div style="position:relative; margin-top:10px; margin-left:55px; margin-right:60px">  
                          <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">  
                           </asp:contentplaceholder> 
         </div> 
 
 on the child page the grid is inside a pageview of the multipage:

        <telerik:RadPageView ID="PageView4" runat="server" Width="100%" > 
        <table width="100%" cellpadding="5">  
            ...  
            <tr> 
            <td>      
            <telerik:RadGrid   
                ID="radgridResources"   
                runat="server"   
                AllowPaging="True"   
... 

In IE6 the pageview would expand to accomodate the size of the radgrid and keep the appropriate borders.  In IE7 Q1 2009 the grdi overlaps the pageview.  You can see the prolem here:

http://www.jshawconsulting.com/Telerik/overlap.jpg

Any help greatly appreciated.

Jonathan
Naresh Palarapu
Top achievements
Rank 1
 answered on 30 Jul 2010
1 answer
160 views
Just wanted to confirm its possible to have RADWindow set to an always-on-top, non-modal display.  Has anyone done that, or can confirm its possible? We'll be doing that in a webPart...
Thanks,
-Rand
Shinu
Top achievements
Rank 2
 answered on 30 Jul 2010
1 answer
97 views
why AjaxRadAlert clear value that was fill from javascript when i show rad alert 
please help me
Georgi Tunev
Telerik team
 answered on 30 Jul 2010
1 answer
205 views
hi
   how to get html image button control in telerik radgrid in databound event
Princy
Top achievements
Rank 2
 answered on 30 Jul 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?