Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
139 views
I want to removed the y vales from the chart, but not from the axis.  How do I do this?
Schlurk
Top achievements
Rank 2
 answered on 01 Mar 2010
2 answers
152 views
Following this documentation article:

http://www.telerik.com/help/aspnet-ajax/grdtotalsingridfooters.html

I've gotten the intuitive way to work, by just setting the columns Aggregate value, and I see that value in the footer.

The only way I see to programmatically change this value is to modify one of the cell values, in my case, Cell(5).

When I tried accessing the aggregated value through using the Column Name as the ColumnUniqueName parameter to the Item collection with the syntax:

item("AggregatedColumnName").Text

I received the following error:

Referenced object has a value of 'Nothing'

I believe I have the correct ColumnUniqueName, because I am using the same value I get from the syntax:

RadGrid3.Columns(2).UniqueName

Is the only way to reference this Aggregated value, to use the cell index, or am I going about this the wrong way. I see in the documentation that there is a programmatic way to go about summing the values to display in the footer, but I would like to utilize the efficiency of the Aggregate value, while also being able to define what text is inserted into the footer.

Thank you,

.:edit:.

Interesting development. The UniqueColumnName I was trying to reference the value by was the default value column1, as soon as I changed that to something else, I was able to reference the summed value by the UniqueColumnName. So now the question becomes, why did the default columnuniquename not work, but the modified value work?
Jason Divis
Top achievements
Rank 1
 answered on 01 Mar 2010
1 answer
159 views
I have a page with a usercontrol on (MyUserControl). MyUserControl is able to raise a "custom" event which is handled by the page code-behind.

Both MyUserControl and page have RadAjaxManagerProxy controls (the main page is controlled by a master page.)

Here is the process:

MyUserControl initiates an ajaxrequest through client-side script:

       function Refresh() {             
           $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest('Refresh');  
       } 

This is then dealt with by MyUserControl in its code behind.

Private Sub Control_Load(ByVal Sender As ObjectByVal e As EventArgs) Handles MyBase.Load   
      
    Dim Manager As RadAjaxManager = RadAjaxManager.GetCurrent(Page)   
    AddHandler Manager.AjaxRequest, AddressOf AjaxManager_AjaxRequest  
 
 
End Sub 
 
Protected Sub AjaxManager_AjaxRequest(ByVal sender As ObjectByVal e As AjaxRequestEventArgs)     
    
            Select Case e.Argument.ToString()     
    
                Case "Refresh"    
    
                    RaiseSaved()     
    
                    Refresh()     
    
            End Select    
    
        End Sub    


For info, the RaiseSaved sub call is for raising the MyUserControl OnUpdated event. The Refresh() sub call just refreshes controls in MyUserControl.

The event is then handled by the code behind in the main page:
Public Sub MyUserControl_Updated(ByVal Sender As ObjectByVal e As EditorUpdatedEventArgs) Handles MyUserControl.OnUpdated     
   
            'Check to see if event is being handled/firing  
            MyUserControl.Visible = False 
 
            'Update a control on the main page   
            RebindStatus.RebindStatus = True    
    
        End Sub    
 

The event is definitely firing as the "MyUserControl.Visible = False" statement hides MyUserControl.

However, the control on the main page (RebindStatus) is not being updated and this is the problem.  I need to be able to update this (and any other) control on the main page.

For info, RebindStatus is another usercontrol which has a custom property that updates a label in the RebindStatus control.

I have probably got the Ajax settings incorrect. For the RadAjaxManagerProxy on MyUserControl:

<telerik:RadAjaxManagerProxy ID="WindowAjaxManagerProxy" runat="server">  
    <AjaxSettings>  
        <telerik:AjaxSetting AjaxControlID="MasterPageAjaxManager">  
            <UpdatedControls>  
                <telerik:AjaxUpdatedControl ControlID="MyUserControl" />  
                <telerik:AjaxUpdatedControl ControlID="RebindStatus" />     
            </UpdatedControls>  
        </telerik:AjaxSetting>  
            </UpdatedControls>  
    </AjaxSettings>   
</telerik:RadAjaxManagerProxy> 
NB. MasterPageAjaxManager is the name of the RadAjaxManager on the MasterPage controlling the main page.

For the RadAjaxManagerProxy on the main page:
<telerik:RadAjaxManagerProxy ID="WindowAjaxManagerProxy" runat="server">  
        <AjaxSettings>  
            <telerik:AjaxSetting AjaxControlID="MyUserControl" EventName="OnUpdated">  
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="RebindStatus" />                 
                </UpdatedControls>  
            </telerik:AjaxSetting>  
            <telerik:AjaxSetting AjaxControlID="MyUserControl">  
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="MyUserControl" />   
                    <telerik:AjaxUpdatedControl ControlID="RebindStatus" />            
                    <telerik:AjaxUpdatedControl ControlID="MainPageAjaxManager" />            
                </UpdatedControls>  
            </telerik:AjaxSetting>  
            <telerik:AjaxSetting AjaxControlID="MainPageAjaxManager">  
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="BookingEditor" />  
                    <telerik:AjaxUpdatedControl ControlID="MainPageAjaxManager" />  
                    <telerik:AjaxUpdatedControl ControlID="RebindStatus" />                      
                </UpdatedControls>  
            </telerik:AjaxSetting>  
            <telerik:AjaxSetting AjaxControlID="RebindStatus">  
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="RebindStatus" />                      
                </UpdatedControls>  
            </telerik:AjaxSetting>  
        </AjaxSettings>   
    </telerik:RadAjaxManagerProxy>  

How can I update the RebindStatus control from the event raised by MyUserControl? To confirm, the OnUpdated event is firing, but no controls on the main page can be updated from this event.

thanks

Graham.
robertw102
Top achievements
Rank 1
 answered on 01 Mar 2010
1 answer
107 views
Hello

I am trying to use silverlight gridview control to bind data from a custom list in WSS 3.0 using object model.

Since I cannot add any reference to outside world(non silverlight projects) from a silverlight project, I am not able to use object model.
For using object model, I need to add Sharepoint.dll as a reference.

Please suggest me a way to solve this.

Thanks in advance,

-Laks
Stefan Dobrev
Telerik team
 answered on 01 Mar 2010
2 answers
248 views
hi
i have the requirement like this when i select a item in drop down list, depends on the selected item another combo box and text field will dispaly...pls let me know asap...

thanks
Jo
Top achievements
Rank 1
 answered on 01 Mar 2010
6 answers
154 views
Hello,

Try to decorate a dropdownlist with a list of all countries. There are no scroll !!!

Regards,
Newton
Georgi Tunev
Telerik team
 answered on 01 Mar 2010
1 answer
128 views
Hi all,

I've been looking at the examples and my code all morning and cannot see what I'm doing wrong.  I hope you can help. 

I have a page that has 2 comboboxes on it right now.  Of course it'll have more later :-)  But basically when the user selects an entry from the first combobox, the 2nd one loads it's items based on what the user selected in the first.  That part's working fine.  But I've been trying to get a "loading...." graphic to show up with the 2nd combobox while it's reloading and I just cannot get it to show up.  The combobox still loads, but but no graphic. 

Does anyone see what I'm missing, please?  I'm including the markup here.  The only thing in the codebehind is a call to a stored procedure that loads the items in the 2nd combobox after a selection is made in the first. 

Thanks in advance for the help.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="LinkReqsToActs.aspx.vb" Inherits="ScoutingWithTheMouse.WebPages.Admin.Admin_LinkReqsToActs" %> 
<%@ Register TagPrefix="swm" TagName="OrgCombobox" Src="~/Components/OrganizationDropdown.ascx" %> 
<%@ Register TagPrefix="swm" TagName="LevelCombobox" Src="~/Components/LevelDropdown.ascx" %> 
<%@ Register TagPrefix="swm" TagName="ReqCombobox" Src="~/Components/RequirementsDropdown.ascx" %> 
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title>Scouting with the Mouse - Admin - Link Requirements to Activities</title> 
     
        <!-- custom head section --> 
    <style type="text/css"
        .module1 
        { 
            background-color: #dff3ff; 
            border: 1px solid #c6e1f2; 
        } 
        .loading 
        { 
            background-color: #fff; 
            height:100%; 
            width:100%; 
        } 
    </style> 
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
    <script type="text/javascript"
        function RequestStart(sender, eventArgs) { 
            var loadingImage = document.getElementById('<%= upProgLevel.FindControl("Image1").ClientID %>'); 
            var panel1 = $get("<%= updtLevel.ClientID %>"); 
            loadingImage.style.position = "relative"
            loadingImage.style.top = (parseInt(panel1.style.height) / 2) + "px"; 
        } 
        function MyClientShowing(sender, args) { 
            args.get_loadingElement().style.border = "2px solid red"
            args.set_cancelNativeDisplay(true); 
            $telerik.$(args.get_loadingElement()).show("slow"); 
        } 
 
        function MyClientHiding(sender, args) { 
            args.get_loadingElement().style.border = "2px solid blue"
            args.set_cancelNativeDisplay(true); 
            $telerik.$(args.get_loadingElement()).hide("slow"); 
        } 
    </script> 
    </telerik:RadCodeBlock> 
    <!-- end of custom head section --> 
     
     
     
</head> 
<body> 
    <form id="form1" runat="server"
    <telerik:RadScriptManager ID="rsmPage" runat="server" /> 
    <telerik:RadFormDecorator ID="radFormDecorator_Page" runat="server" DecoratedControls="all"  
        Skin="Vista" /> 
     
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="updtLevel"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="updtLevel" LoadingPanelID="upProgLevel" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="cboOrgs"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="updtLevel"  LoadingPanelID="upProgLevel" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
        <ClientEvents OnRequestStart="RequestStart" /> 
    </telerik:RadAjaxManager>     
     
     
    <asp:Table ID="tblPageLayout" runat="server" Width="95%"
        <asp:TableRow> 
            <asp:TableCell Width="20%"
                <h4>Organizations</h4><swm:OrgCombobox ID="cboOrgs" runat="server" /> 
            </asp:TableCell> 
            <asp:TableCell Width="20%"
               <telerik:RadAjaxPanel ID="updtLevel" LoadingPanelID="upProgLevel" runat="server"
                    <h4>Level</h4><swm:LevelCombobox id="cboLevels" runat="server" /> 
                </telerik:RadAjaxPanel> 
                <telerik:RadAjaxLoadingPanel ID="upProgLevel" runat="server" Transparency="30"
                    <div class="loading"
                        <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/ajax-loader_small.gif" /> 
                    </div> 
                </telerik:RadAjaxLoadingPanel> 
            </asp:TableCell> 
    <%--        <asp:TableCell Width="60%"
                <h4>Rank/Badge Requirements</h4><swm:ReqCombobox ID="cboRequirements" runat="server"  width="100%"/> 
            </asp:TableCell>--%> 
        </asp:TableRow> 
    </asp:Table> 
 
 
    </form> 
</body> 
</html> 
 

Tsvetoslav
Telerik team
 answered on 01 Mar 2010
1 answer
93 views

Hi there,
I'm trying to export my rad grid content to an Excel file but nothing exported.

please take a look at my sample here
www.shahabfar.com/test.rar

bear in mind that my data layer methods work fine.

Daniel
Telerik team
 answered on 01 Mar 2010
1 answer
80 views
Hi i have the columns called ID,NAME and ParentID. The normal scenario is to group by ID field and ParentID field so that the expand/collapse button would be under the ID field.

In my Case. i have to group based on the name field. Im confused how to use relationships for name field in self referencing grid.
I mean how to relate parent and child row using the name field.

Any help is appreciated.

ZRegards,
Krishnan
Veli
Telerik team
 answered on 01 Mar 2010
1 answer
101 views
hi suppurt team.
i use this code for change text of upload but dose nit work
 fileExplorer1.Upload.Localization.Add = "اضافه کردن"
            fileExplorer1.Upload.Localization.Clear = "پاک کردن"
            fileExplorer1.Upload.Localization.Delete = "حذف کردن"
            fileExplorer1.Upload.Localization.Remove = "جا به جا کردن"
            fileExplorer1.Upload.Localization.Select = "انتخاب کردن";

what is problem?

and another question :
how i can change Upload Image button background?

tnx alot
Shinu
Top achievements
Rank 2
 answered on 01 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?