Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
147 views
I've got a TreeView object with no specified Width parameter -- so its width is just defined by the nodes inside of it.  Here's my question:  Is there a way on the server-side for me to calculate the width of the total TreeView, after its nodes have been programmatically loaded?

Thanks!

PS:  Come to think of it, I could just as easily do what I'm after on the client-side, too -- so any way of determining the actual height/width of a populated TreeView, client-side or server-side, would be great.
Jesse Lawler
Top achievements
Rank 1
 answered on 27 Jul 2010
1 answer
76 views
Hi Friends:
I had AjaxLoadPanel placed in custom control and i want to display the load panel when radGrid in update mode , but when i test this control the ajaxloadpanel doesn't appear .
Is There anyone can help me to find solution? 

I will post the code for user control :

<telerik:RadAjaxManager ID="allowanceUpdate" runat="server" DefaultLoadingPanelID="allowanceLoadPanel"
    EnableAJAX="true">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="filterCtrl" EventName="FilterData" >
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="allowanceList" LoadingPanelID="allowanceLoadPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="addAllowance" EventName="RefreshAllowance">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="allowanceList" LoadingPanelID="allowanceLoadPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel runat="server" ID="allowanceLoadPanel" Skin="Web20"
    EnableEmbeddedSkins="false" EnableAjaxSkinRendering="true" HorizontalAlign="Center">
</telerik:RadAjaxLoadingPanel>
Tsvetoslav
Telerik team
 answered on 27 Jul 2010
1 answer
93 views
Hi,

Is there a way to make an ajax post to a web service using asp,net ajax telerik controls like I would using say jquery ajax call ?

i.e. $.Ajax...  I just want to post a few bits of data I have collected from a radgrid.

Thanks
Tsvetoslav
Telerik team
 answered on 27 Jul 2010
1 answer
232 views
Hi,

I am looking for a strategy to accomplish the following:

I am looking for a behaviour similar to linked list boxed where I can move selection from one to another except that I am trying to accomplish the same with 2 RadGrid like so:

<RadGrid1>

<RadWindow>
<RadGrid2>
</RadWindow>

I select some rows from RadGrid2 and pass them onto radgrid1 where both rad grids are fed from the same db persisted collections.
Radgrid2 has cheeckboxes in the records that I tag and then I can pass them to the RadGrid1 after a button click.

I am thinking of implementing this with Javascript (Client side) but is there another way of doing this that takes advantage of Telerik control features ?

Thanks in Advance,
Tuka
Tsvetoslav
Telerik team
 answered on 27 Jul 2010
2 answers
72 views
What is the css  class that I need to modify to change the top border of the radEditor. There are properties to modify the entire border, but I want the top one to be different.
Sébastien
Top achievements
Rank 1
 answered on 27 Jul 2010
1 answer
224 views
My grid gets bound on the client side but when the data's loading it shows me a blank grid,I need a loading panel to show then.

Secondly I was unable to figure out how to have text show up beside a GridClientSelectColumn intuitive ones were Text and HeaderText
but they don't seem to work.

Another problem I faced was hiding columns, I have couple of buttons minimize and maximize in a user control these buttons are currently from a tool bar, no clicking them I set a hidden textbox to have which button was clicked and have the columns of the grid displayed accordingly.
I call the grid binding function and the hide columns function in the grids OnMasterTableViewCreated function, having hide columns there gives me the Error: 'this.get_columns()[...]' is null or not an object.

below is my hidecolumns function
 function hideColumns() {
            debugger;
            var tableView = $find("<%= radExhibitorList.ClientID %>").get_masterTableView();
            var Mode = $get("pnlExhibitor_hdnMode").value
            var gridcolumns = [0,1]; //tableView.get_Columns();
            var count = 0;

            for (count = 0; count <= gridcolumns.length; count++) {
                if (Mode == 'Minimise') {
                    var ParentControl = $get($get("pnlExhibitor_RadDock1_C_pnlHeader_hdnParentControl").value);
                    //
                    ParentControl.style.display = "none";
                }
                else if (Mode == 'Max') {
                    tableView.showColumn(gridcolumns[count]);
                }
                else { tableView.hideColumn(gridcolumns[count]); }
            }

        }


Tsvetoslav
Telerik team
 answered on 27 Jul 2010
1 answer
206 views
I have found an interesting scenario where the display property of some columns are turned off when they should be turned on. I am using a grid with UseStaticHeaders="True", AllowColumnHide="True" and FrozenColumnCount turned on (in my case set ="4"), and there is a horizontal scroll bar on the grid because there are 20+ columns.  On load the grid looks fine, but when use the horizontal scroll bar, then right-click a column heading and look at the Columns, any column between the last frozen column and the first visible column shows as not being checked when in fact it should be checked.  This allows the user to turn back on columns that were on in the first place.

Another issue I found is when you right-click a column heading, hover over columns, and turn on additional columns, the horizontal scrollbar does not change and you cannot scroll to the newly displayed columns.  This happens when the columns being turned on are off to the right of the last visible column being displayed on the webpage.

Here is my ASPX code for my radgrid and my javascript.  I am using Telerik version 2010.1.519.35

<telerik:RadGrid ID="rgWorkOrderDetails" OnNeedDataSource="rgWorkOrderDetails_OnNeedDataSource"
            runat="server" PageSize="10" AllowPaging="true" EnableHeaderContextFilterMenu="true"
            OnItemDataBound="rgWorkOrderDetails_OnItemDataBound" EnableHeaderContextMenu="true"
            CssClass="RadGridCustomClass" EnableLinqExpressions="false" OnItemCommand="rgWorkOrderDetails_ItemCommand"
            OnItemCreated="rgWorkOrderDetails_ItemCreated">            
            <ClientSettings AllowColumnHide="true" AllowColumnsReorder="true">
                <ClientEvents OnGridCreated="GridCreatedwScroll" />
                <Resizing AllowColumnResize="true" EnableRealTimeResize="true" />
                <Scrolling AllowScroll="true" UseStaticHeaders="true" FrozenColumnsCount="4" />
            </ClientSettings>
            <PagerStyle Mode="NextPrevAndNumeric" />
            <GroupingSettings CaseSensitive="false" />
            <ExportSettings ExportOnlyData="true" IgnorePaging="true"
                OpenInNewWindow="true" />
            <MasterTableView CommandItemDisplay="Top" AllowFilteringByColumn="true" AllowSorting="true"
                AutoGenerateColumns="false" Visible="true" AllowMultiColumnSorting="true">
                <SortExpressions>
                    <telerik:GridSortExpression FieldName="SampleID" SortOrder="Ascending" />
                    <telerik:GridSortExpression FieldName="ReportHeaderDisplayOrder" SortOrder="Ascending" />
                    <telerik:GridSortExpression FieldName="ReportName" SortOrder="Ascending" />
                    <telerik:GridSortExpression FieldName="DisplayOrder" SortOrder="Ascending" />
                    <telerik:GridSortExpression FieldName="AnalyteName" SortOrder="Ascending" />
                </SortExpressions>
                <NoRecordsTemplate>
                    There is no Sample Data to display
                </NoRecordsTemplate>                
                <Columns>
                    <telerik:GridBoundColumn DataField="ReportHeaderDisplayOrder" UniqueName="ReportHeaderDisplayOrder"
                        Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DisplayOrder" UniqueName="DisplayOrder" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="clientsampleid" DataField="ClientSampleID" FilterControlWidth="60%"
                        CurrentFilterFunction="Contains" HeaderText="Client Sample ID" AutoPostBackOnFilter="true">
                        <ItemStyle Width="90px" HorizontalAlign="Center" />
                        <HeaderStyle Width="90px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="sampleid" DataField="SampleID" FilterControlWidth="60%"
                        CurrentFilterFunction="Contains" HeaderText="Lab Sample ID" AutoPostBackOnFilter="true">
                        <ItemStyle Width="105px" HorizontalAlign="Center" />
                        <HeaderStyle Width="105px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridDateTimeColumn UniqueName="collectiondate" DataField="CollectionDate"
                        DataFormatString="{0:M/dd/yyyy hh:ss tt}" FilterControlWidth="60%" CurrentFilterFunction="GreaterThanOrEqualTo"
                        HeaderText="Collection Date" AutoPostBackOnFilter="true">
                        <ItemStyle Width="85px" HorizontalAlign="Center" />
                        <HeaderStyle Width="85px" HorizontalAlign="Center" />
                    </telerik:GridDateTimeColumn>
                    <telerik:GridBoundColumn UniqueName="analytename" DataField="AnalyteName" FilterControlWidth="60%"
                        CurrentFilterFunction="Contains" HeaderText="Analyte Name" AutoPostBackOnFilter="true">
                        <ItemStyle Width="125px" HorizontalAlign="Center" />
                        <HeaderStyle Width="125px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="result" DataField="Result" FilterControlWidth="60%"
                        CurrentFilterFunction="Contains" HeaderText="Result" EmptyDataText="--" ConvertEmptyStringToNull="true"
                        AutoPostBackOnFilter="true">
                        <ItemStyle Width="60px" HorizontalAlign="Center" />
                        <HeaderStyle Width="60px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="units" DataField="Units" FilterControlWidth="60%"
                        CurrentFilterFunction="Contains" HeaderText="Units" EmptyDataText="--" ConvertEmptyStringToNull="true"
                        AutoPostBackOnFilter="true">
                        <ItemStyle Width="100px" HorizontalAlign="Center" />
                        <HeaderStyle Width="100px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn DataField="Qualifier" UniqueName="qualifier" FilterControlWidth="60%"
                        HeaderText="Qualifier" CurrentFilterFunction="Contains" ConvertEmptyStringToNull="true">
                        <HeaderStyle Width="75px" HorizontalAlign="Center" />
                        <ItemTemplate>
                            <asp:Label ID="lblStatus" runat="server" Text='<%#Convert.ToBoolean(Eval("Qualifier").ToString() == "")? "--" : Eval("Qualifier") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="75px" HorizontalAlign="Center" />
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn UniqueName="reportlimit" DataField="ReportLimit" FilterControlWidth="60%"
                        CurrentFilterFunction="Contains" HeaderText="Report Limit" EmptyDataText="--"
                        ConvertEmptyStringToNull="true" AutoPostBackOnFilter="true">
                        <ItemStyle Width="60px" HorizontalAlign="Center" />
                        <HeaderStyle Width="60px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="mcl" DataField="MCL" FilterControlWidth="60%"
                        CurrentFilterFunction="Contains" HeaderText="MCL" AutoPostBackOnFilter="true">
                        <ItemStyle Width="60px" HorizontalAlign="Center" />
                        <HeaderStyle Width="60px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="method" DataField="Method" EmptyDataText="--"
                        FilterControlWidth="60%" CurrentFilterFunction="Contains" HeaderText="Method"
                        AutoPostBackOnFilter="true">
                        <ItemStyle Width="80px" HorizontalAlign="Center" />
                        <HeaderStyle Width="80px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn Display="True" UniqueName="ReportName" EmptyDataText="--"
                        ConvertEmptyStringToNull="true" DataField="ReportName" FilterControlWidth="60%"
                        CurrentFilterFunction="Contains" HeaderText="Report Name" AutoPostBackOnFilter="true">
                        <ItemStyle Width="100px" HorizontalAlign="Center" />
                        <HeaderStyle Width="100px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="matrix" DataField="Matrix" FilterControlWidth="60%"
                        CurrentFilterFunction="Contains" HeaderText="Matrix" AutoPostBackOnFilter="true">
                        <ItemStyle Width="80px" HorizontalAlign="Center" />
                        <HeaderStyle Width="80px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="begindepth" DataField="BeginDepth" FilterControlWidth="60%"
                        CurrentFilterFunction="Contains" HeaderText="Begin Depth" AutoPostBackOnFilter="true">
                        <ItemStyle Width="50px" HorizontalAlign="Center" />
                        <HeaderStyle Width="50px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="enddepth" DataField="EndDepth" FilterControlWidth="60%"
                        CurrentFilterFunction="Contains" HeaderText="End Depth" AutoPostBackOnFilter="true">
                        <ItemStyle Width="50px" HorizontalAlign="Center" />
                        <HeaderStyle Width="50px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridDateTimeColumn UniqueName="datereceived" DataField="DateReceived" FilterControlWidth="60%"
                        CurrentFilterFunction="GreaterThanOrEqualTo" HeaderText="Date Received" AutoPostBackOnFilter="true">
                        <ItemStyle Width="100px" HorizontalAlign="Center" />
                        <HeaderStyle Width="100px" HorizontalAlign="Center" />
                    </telerik:GridDateTimeColumn>
                    <telerik:GridDateTimeColumn UniqueName="analysisdate" DataField="AnalysisDate" FilterControlWidth="60%"
                        CurrentFilterFunction="GreaterThanOrEqualTo" HeaderText="Analysis Date" AutoPostBackOnFilter="true">
                        <ItemStyle Width="85px" HorizontalAlign="Center" />
                        <HeaderStyle Width="85px" HorizontalAlign="Center" />
                    </telerik:GridDateTimeColumn>
                    <telerik:GridBoundColumn Display="false" UniqueName="analyzedby" ConvertEmptyStringToNull="true"
                        EmptyDataText="--" DataField="AnalyzedBy" FilterControlWidth="60%" CurrentFilterFunction="Contains"
                        HeaderText="Analyzed By" AutoPostBackOnFilter="true">
                        <ItemStyle Width="80px" HorizontalAlign="Center" />
                        <HeaderStyle Width="80px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridDateTimeColumn Display="false" UniqueName="extracteddate" DataField="ExtractedDate"
                        FilterControlWidth="60%" CurrentFilterFunction="GreaterThanOrEqualTo" HeaderText="Extracted Date"
                        AutoPostBackOnFilter="true">
                        <ItemStyle Width="85px" HorizontalAlign="Center" />
                        <HeaderStyle Width="85px" HorizontalAlign="Center" />
                    </telerik:GridDateTimeColumn>
                    <telerik:GridBoundColumn Display="false" UniqueName="fieldsampler" DataField="FieldSampler"
                        FilterControlWidth="60%" CurrentFilterFunction="Contains" HeaderText="Field Sampler"
                        AutoPostBackOnFilter="true">
                        <ItemStyle Width="80px" HorizontalAlign="Center" />
                        <HeaderStyle Width="80px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn Display="false" UniqueName="tagno" EmptyDataText="--" ConvertEmptyStringToNull="true"
                        DataField="TagNo" FilterControlWidth="60%" CurrentFilterFunction="Contains" HeaderText="Tag #"
                        AutoPostBackOnFilter="true">
                        <ItemStyle Width="80px" HorizontalAlign="Center" />
                        <HeaderStyle Width="80px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn Display="false" UniqueName="sitetype" EmptyDataText="--"
                        ConvertEmptyStringToNull="true" DataField="SiteType" FilterControlWidth="60%"
                        CurrentFilterFunction="Contains" HeaderText="Site Type" AutoPostBackOnFilter="true">
                        <ItemStyle Width="80px" HorizontalAlign="Center" />
                        <HeaderStyle Width="80px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn Display="false" UniqueName="sampleprogram" EmptyDataText="--"
                        ConvertEmptyStringToNull="true" DataField="SampleProgram" FilterControlWidth="60%"
                        CurrentFilterFunction="Contains" HeaderText="Sample Program" AutoPostBackOnFilter="true">
                        <ItemStyle Width="80px" HorizontalAlign="Center" />
                        <HeaderStyle Width="80px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn Display="false" UniqueName="testname" EmptyDataText="--"
                        ConvertEmptyStringToNull="true" DataField="TestName" FilterControlWidth="60%"
                        CurrentFilterFunction="Contains" HeaderText="Test Name" AutoPostBackOnFilter="true">
                        <ItemStyle Width="80px" HorizontalAlign="Center" />
                        <HeaderStyle Width="80px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn Display="false" UniqueName="testcode" EmptyDataText="--"
                        ConvertEmptyStringToNull="true" DataField="TestCode" FilterControlWidth="60%"
                        CurrentFilterFunction="Contains" HeaderText="Test Code" AutoPostBackOnFilter="true">
                        <ItemStyle Width="80px" HorizontalAlign="Center" />
                        <HeaderStyle Width="80px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn Display="false" UniqueName="casno" EmptyDataText="--" ConvertEmptyStringToNull="true"
                        DataField="CasNo" FilterControlWidth="60%" CurrentFilterFunction="Contains" HeaderText="Cas #"
                        AutoPostBackOnFilter="true">
                        <ItemStyle Width="60px" HorizontalAlign="Center" />
                        <HeaderStyle Width="60px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn Display="false" UniqueName="WorkOrderNumber" EmptyDataText="--"
                        ConvertEmptyStringToNull="true" DataField="WorkOrderNumber" FilterControlWidth="60%"
                        CurrentFilterFunction="Contains" HeaderText="Work Order Number" AutoPostBackOnFilter="true">
                        <ItemStyle Width="100px" HorizontalAlign="Center" />
                        <HeaderStyle Width="100px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn Display="false" UniqueName="ClientName" EmptyDataText="--"
                        ConvertEmptyStringToNull="true" DataField="ClientName" FilterControlWidth="60%"
                        CurrentFilterFunction="Contains" HeaderText="Client Name" AutoPostBackOnFilter="true">
                        <ItemStyle Width="100px" HorizontalAlign="Center" />
                        <HeaderStyle Width="100px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn Display="false" UniqueName="ProjectName" EmptyDataText="--"
                        ConvertEmptyStringToNull="true" DataField="ProjectName" FilterControlWidth="60%"
                        CurrentFilterFunction="Contains" HeaderText="Project Name" AutoPostBackOnFilter="true">
                        <ItemStyle Width="100px" HorizontalAlign="Center" />
                        <HeaderStyle Width="100px" HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="AnalytesKey" DataField="AnalytesKey" Visible="false" ConvertEmptyStringToNull="true" EmptyDataText="" />
                    <telerik:GridBoundColumn UniqueName="SamplesKey" DataField="SamplesKey" Visible="false" ConvertEmptyStringToNull="true" EmptyDataText="" />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
<telerik:RadCodeBlock ID="rcb1" runat="server">
       <script type="text/javascript">
           function attachEventHandler(element, eventToHandle, eventHandler) {
               if (element.attachEvent) {
                   element.attachEvent(eventToHandle, eventHandler);
               } else if (element.addEventListener) {
                   element.addEventListener(eventToHandle.replace("on", ""), eventHandler, false);
               } else {
                   element[eventToHandle] = eventHandler;
               }
           }
           attachEventHandler(window, "onresize", function () {
               // the code you want to run when the browser is resized
               resizeGrid();
           });
           var offsetHeight = 113; 
           
           function GridCreatedwScroll(sender, args) {
               //rgWorkOrderDetails
               var scrollArea = sender.GridDataDiv;
               var dataHeight = getSize();
               scrollArea.style.height = dataHeight - offsetHeight + "px";
               if (sender.ClientSettings.Scrolling.UseStaticHeaders) {
                   var header = document.getElementById("<%= rgWorkOrderDetails.ClientID %>" + "_GridHeader");
                   scrollArea.style.height = dataHeight - offsetHeight - header.offsetHeight + "px";
               }
           }
           function resizeGrid() {
               //Resize each grid on this page on page load and on page resize                
               var gridHeight = getSize();
               var scrollArea = document.getElementById("<%= rgWorkOrderDetails.ClientID %>" + "_GridData");
               if (scrollArea) {
                   scrollArea.style.height = gridHeight - offsetHeight + "px";
               }
               if (document.getElementById("<%= rgWorkOrderDetails.ClientID %>" + "_GridHeader")) {
                   //Find and subtract header height
                   var header = document.getElementById("<%= rgWorkOrderDetails.ClientID %>" + "_GridHeader");
                   scrollArea.style.height = gridHeight - offsetHeight - header.offsetHeight + "px";
                   gridHeight = gridHeight - header.offsetHeight;
               }
               if (document.getElementById("<%= rgWorkOrderDetails.ClientID %>" + "_ctl01_Pager")) {
                   var pagerArea = document.getElementById("<%= rgWorkOrderDetails.ClientID %>" + "_ctl01_Pager");
                   scrollArea.style.height = gridHeight - offsetHeight - pagerArea.offsetHeight + "px";
               }
           }
       </script>
   </telerik:RadCodeBlock>

Tsvetoslav
Telerik team
 answered on 27 Jul 2010
1 answer
116 views
Hey guys, I am using the ExchangeSchedulerProvider classes from the Telerik live demos App_Code folder. I have figured out how to group by resources (using 2 conference room mailboxes that have anonymous access). Users credentials are being passed to the class alongside a comma separated list of the 2 conference room mailboxes. The Scheduler control nicely displays the 2 side by side. As they are used as resources in the Scheduler, they also show up correctly in the advanced form. I am having the following issue: When I create an appointment, the service successfully places the appointment in my calendar, but not in the conference room calendar used as resource for this appointment.

I guess what I need to do is figure out how to add RequiredAttendees to this appointment which will turn it into a meeting request...

Any help is greatly appreciated!

Sergiu
Sergiu
Top achievements
Rank 2
 answered on 27 Jul 2010
9 answers
258 views
Hi,

I implemented a cascading dropdown exactly like in this example multiplecomboboxes

The issue im facing is that the SelectedItem in ServerSide code is always the first item in the ComboBox. No matter which item is selected the SelectedItem is always the first item in the ComboBox. In the javascript though the selecteditem is captured correctly.

The values are confirmed to be unique values.

I am using the Radcontrols version 2010.1 519
Kindly advice how to resolve this issue.



Simon
Telerik team
 answered on 27 Jul 2010
2 answers
264 views
Hello,

I have a page with several asp:panels and a RadAjaxManager to tie them together. It was previously set up like this:

      <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="panel1">
                <UpdatedControls>
                      <telerik:AjaxUpdatedControl ControlID="panel1" />
                    <telerik:AjaxUpdatedControl ControlID="panel2" />
                    <telerik:AjaxUpdatedControl ControlID="panel3" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
 
It worked perfectly; when I changed a combobox in panel1 it would update the controls in all of the panels. However, I needed to utilize the AjaxRequest event of the AjaxManager and have it also update all of the panels, so I changed the AjaxManager to look like this:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="panel1" />
                <telerik:AjaxUpdatedControl ControlID="panel2" />
                <telerik:AjaxUpdatedControl ControlID="panel3" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="panel1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="panel1" />
                <telerik:AjaxUpdatedControl ControlID="panel2" />
                <telerik:AjaxUpdatedControl ControlID="panel3" />
            </UpdatedControls>
        </telerik:AjaxSetting>  
</telerik:RadAjaxManager>

When the AjaxRequest event fires, it can update the panels. However, the 'panel1' panel now only updates itself - the other panels do not get updated when panel1 fires an event. I have tried adding<telerik:AjaxUpdatedControl ControlID="RadAjaxManager1" /> in the UpdatedControls for both the manager and the panel, neither of which had any effect. Am I missing something?

Additional info: After the AjaxRequest event has been fired at least once, panel1 can now update any other panels which were updated in the AjaxRequest.

Using Q1 2010 .net 2.0 & IE7

Thank you
Josh
Top achievements
Rank 1
 answered on 27 Jul 2010
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?