Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
127 views
We Want to show User wise data in hierarchy form. where one user reports to another user.

Like :

1) User1 --- (Director1)
   user1 data
    2) user2 reports to user1 (RSM)
        user2 data 
    2) user3 reports to user1 (RSM)
        user3 data
         3) user4 reports to user3 (ASM)
             user4 data
1) User...--- (Director2)

Please click on this link to download the Source Code
http://aspspider.org/ramankumarsingla/TelerikRoleWiseUserDetails.zip

Thanks and regards
raman singla
Raman
Top achievements
Rank 1
 answered on 20 Aug 2012
4 answers
706 views
I have attempted to call a client-side JS funciton using:

    ClientEvents-OnValueChanged="clearErrorMsg"
    ClientEvents-OnBlur="clearErrorMsg"
    ClientEvents-OnValueChanging="clearErrorMsg"

and server side using:
    radDatePicker.ClientEvents.OnDateSelected = "clearErrorMsg";
    radDatePicker.DateInput.ClientEvents.OnValueChanged = "clearErrorMsg";
    radDatePicker.DateInput.ClientEvents.OnBlur = "clearErrorMsg";

either way the JS function does not get called. The ClientEvents-OnError="OnError" in the following code works just fine

<script language="javascript">
    function OnError(sender, args) {
        var datePicker = $find(sender.get_id());
        var MinDate = new Date(datePicker.get_minDate());
        var MM_Min = MinDate.getDate();
        var DD_Min = MinDate.getMonth() + 1;
        var YY_Min = MinDate.getFullYear();
        var MaxDate = new Date(datePicker.get_maxDate());
        var MM_Max = MaxDate.getDate();
        var DD_Max = MaxDate.getMonth() + 1;
        var YY_Max = MaxDate.getFullYear();
        var sMinDate = DD_Min + "/" + MM_Min + "/" + YY_Min
        var sMaxDate = DD_Max + "/" + MM_Max + "/" + YY_Max
        //alert("Please enter a valid date between " + sMinDate + " and " + sMaxDate);
        datePicker.focus();
        var errorID = sender.get_id() + "_error";

        if ($("#" + errorID) != null) {
            $("#" + errorID).remove();
        }
        $("#" + sender.get_id()).parent().parent().parent().parent().parent().after('<div id="' + errorID + '" class="valErrorUp DateValError"> Please enter a valid date between ' + sMinDate + ' and ' + sMaxDate + '</div>');
}

function clearErrorMsg(sender, args) {
    alert('got here');
    var datePicker = $find(sender.get_id());
    var errorID = sender.get_id() + "_error";

    if ($("#" + errorID) != null) {
        $("#" + errorID).remove();
    }
}
</script>

<telerik:RadDatePicker ID="radDatePicker" runat="server" Width="100px" CssClass="IndentAnswer" DateInput-FocusedStyle-BackColor="#F1F6FC"  ClientEvents-OnDateSelected="clearErrorMsg">
    <DateInput ClientEvents-OnError="OnError" ClientEvents-OnValueChanged="clearErrorMsg"  ClientEvents-OnBlur="clearErrorMsg" ClientEvents-OnValueChanging="clearErrorMsg"></DateInput>
    <Calendar ViewSelectorText="x" ShowRowHeaders="false" ClientEvents-OnDateSelected="clearErrorMsg"></Calendar>
</telerik:RadDatePicker>

What I am I missing?

Thanks in advance.
Keith
Martin
Telerik team
 answered on 20 Aug 2012
3 answers
62 views
To replicate

Create a new RadControlsWebApplication
Copy files from \Live Demos\Ajax\Examples\Common\LoadingUserControls
Remove the Telerik Header and Footer tags
Set NameSpace for all added files to your webapplication name.class
Build and Run

The ajaxloading panel is not working, I also tried setting the project to compile against the 4.0 runtime instead of the 4.5 but same results.

Thanks
Martin
Telerik team
 answered on 20 Aug 2012
3 answers
102 views
Hi,
My page is not refreshing when i redirect from one RadTab to another. I am also attaching the screen shot how the page looks like when the redirect happen. 
Thanks!
Saima
Kate
Telerik team
 answered on 20 Aug 2012
7 answers
94 views
I am using the RadToolTip version 2011.2.1115.40 and I cannot seem to set the skin, the only one it will work with is default and it really isn't skinned.

Thanks,
Sam
Marin Bratanov
Telerik team
 answered on 20 Aug 2012
9 answers
305 views
Hi,
When I am trying to install the trail version of the ASP.NET AJAX installer package, I am getting the below eror:
"
Telerik.CommonInstaller.ProductInfoService.ProductInfoServiceException: Failed to get validation version. ---> Telerik.CommonInstaller.ProductInfoService.ProductInfoServiceException: Could not retrieve data. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.
   at System.Net.HttpWebRequest.GetResponse()
   at Telerik.CommonInstaller.ProductInfoService.ProductInfoService.DeserializeRemoteObject[T](String sourceUri)
   --- End of inner exception stack trace ---
   at Telerik.CommonInstaller.ProductInfoService.ProductInfoService.DeserializeRemoteObject[T](String sourceUri)
   at Telerik.CommonInstaller.ProductInfoService.ProductInfoService.get_ValidationVersion()
   at Telerik.CommonInstaller.Application.Services.DeprecationService.GetMinValidationVersion()
   --- End of inner exception stack trace ---
   at Telerik.CommonInstaller.Application.Services.DeprecationService.GetMinValidationVersion()
   at Telerik.CommonInstaller.Application.Services.DeprecationService.CheckApplicationDeprecated()
   at Telerik.CommonInstaller.UI.App.OnStartup(StartupEventArgs e)
   at System.Windows.Application.<.ctor>b__1(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)"

Can you please help me to solve the above issue.

Thanks
Prabhakar
Chavdar Dimitrov
Telerik team
 answered on 20 Aug 2012
1 answer
120 views

Hi All,

I have a couple of questions:

1. How do I trap the nextpage event when users click on a page number or the next/previous etc..?
2. How do I refresh the RadGrid to show the data on the page after users navigate to next/previous page (hopefully it happens on client side)
3.  Can you lead me to a webpage/instruction regarding page navigation handling?

Thanks.
Marin
Telerik team
 answered on 20 Aug 2012
0 answers
56 views
In   the  behind  code  can't   obtain   the  "Content"     of   Shap   which  is  a  item  of    Diagram control .

This    is   a   serious   problem  ,   indicating   that   the   "  not   will  object    reference    set    to     an    instance   of     an object.   "    error.

XAML:
       <telerik:RadDiagramShape Geometry="{telerik:CommonShape ShapeType=RoundedRectangleShape}" 
             x:Name="rd_SiPing" Width="100" Height="35"
             Content="Harvard University"
             Tag="A"
             FontSize="14"
             Position="193,120"
             Background="LightGray"                      
             MouseLeftButtonDown="rd_SiPing_MouseLeftButtonDown" >
                            
            </telerik:RadDiagramShape>


             <telerik:RadDiagramShape Geometry="{telerik:CommonShape ShapeType=RoundedRectangleShape}" 
             x:Name="rd_SiPingValue" Width="100" Height="25"
             Content="1716.0kW"
             Tag="A"
             FontSize="12"
             Position="193,160"
             Background="LightGray"    
            />


Code  behind:
        private void rd_SiPing_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            string str = rd_SiPingValue.Content.ToString();
            string strtwo = rd_Region.Content.ToString();
            string strthree = rd_SiPing.Tag.ToString();

          Question:   Three   lines   of   code   as   above    are   all   prompt     error:   "not   will  object    reference    set    to     an    instance   of     an object."
            Why???    

        } 
Yostec
Top achievements
Rank 1
 asked on 20 Aug 2012
1 answer
33 views
hi

I have a menu with a submenu, when I mouse over a menu item, the submenu expands over the right end of the menu.

Is there a way to stop the submenu expands over the right end of the menu? i.e. force the submenu to expand towards left instead of going over the right end of the menu

thanks in advance
Kate
Telerik team
 answered on 20 Aug 2012
3 answers
381 views
With the new Telerik Control panel, if each of our developers have this control panel this in theory means that each of us are going to be downloading Gigs worth of data. Is there any way to have this data cached or are you guys thinking of developing some kind of server tool such Windows Update Services?

Regards,
Jacques
Petar
Telerik team
 answered on 20 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?