Telerik Forums
UI for ASP.NET AJAX Forum
12 answers
420 views
Greetings,

I have a control called CCMNav.ascx, which contains a RadTabStrip.  There are 4 tabs within it, with each pointing at a different page.  I also have a MasterPage, CCMMaster.Master, which is where I placed CCMNav.ascx in to a ContentPlaceholder (cphContent1).  I then have another ContentPlaceholder (cphContent2), which is where the four pages are to be displayed.  The problem is, I need to add a TabClick event to the RadTabStrip so that when I select a tab, it calls up a method that will save the data to a Session variable.  Here is what I have thus far.

private void SetTabClickEvents()  
        {  
            ContentPlaceHolder con = (ContentPlaceHolder) Master.Master.FindControl("cphContent1");  
 
            if (con != null)  
            {  
                CCMNav nav = (CCMNav) con.FindControl("CCMNav");  
 
                if (nav != null)  
                {  
                    RadTabStrip tabs = (RadTabStrip) nav.FindControl("radCCMNav");  
 
                    if (tabs != null)  
                    {  
                        tabs.TabClick += SendCoPObjectToSession;  
 
                        //RadTab configurationTab = (RadTab) tabs.FindTabByText("Configuration");  
                        //RadTab displayTab = (RadTab) tabs.FindTabByText("Display");  
                        //RadTab knowareaTab = (RadTab) tabs.FindTabByText("Knowledge Areas");  
                        //RadTab modulesTab = (RadTab) tabs.FindTabByText("Modules");  
                    }  
                }  
            }  
        } 

This method is called during the Page_Load event.  Right now, it traces all the way in and does seemingly add the TabClick.  The problem is, when I click the tab, nothing happens.  The event is never fired.  Does anyone have any ideas?  I would be most appreciative if you do.  Thank you.

~Chad Johnson
AvastoneTech
Top achievements
Rank 1
 answered on 16 Dec 2009
1 answer
103 views
Hi,

i'm getting the below error in OnClientValueChanging for a dual handle slider -

GetActiveDragHandle is not defined

Below is my code -

<script language="javascript" type="text/javascript">
        function OnClientValueChangingCost(sender,args)
        {
            var newValue = args.get_newValue();
            var isFirstHandleActive = GetActiveDragHandle(sender);
        }
</script>

<telerik:RadSlider runat="server" ID="RadSlider2" Style="margin-top: 20px; margin-bottom: 6px;"
                            Width="368px" IsSelectionRangeEnabled="true" SelectionStart="20" SelectionEnd="80"
                             OnClientValueChanging="OnClientValueChangingCost" />

Is this a bug in slider? Can you please help?

Thank you,
Manoj Bhatty
Manoj Bhatty
Top achievements
Rank 1
 answered on 16 Dec 2009
3 answers
126 views
RadGrid has a drag and drop feature to be able to sort rows. http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx

Is it possible for ListView to do something similar to this? For example, showing a photo gallery and allow users to move the photos around for sorting.
Sebastian
Telerik team
 answered on 16 Dec 2009
6 answers
390 views
Hi,

Not sure if this is possible - I've been able to open a window from code-behind, but haven't been able to stop a full page refresh occurring. 

Is it possible to open a window from code-behind without the page refresh? If not, are there any other ways around the following:

- There are two user controls on a page, one is the control, the other is a filter for the control.
- When a user clicks "view filters", an event should be raised to the filter controls to show the filters (a rad window).
- When the user clicks "ok", the filters should be applied and the window closed.

Controls have been split out because I'm following an MVP pattern in ASP.Net.

Thanks,

Paul
DvdBrink
Top achievements
Rank 1
 answered on 16 Dec 2009
4 answers
167 views
I'm using a custom UC inside a RadGrid's EditItemTemplate tag:
<telerik:RadAjaxPanel runat="server"
    <asp:TextBox runat="server" ID="useridTextbox" MaxLength="3" Width="25px"></asp:TextBox> 
    <asp:ImageButton runat="server" ID="checkNameImageButton" ImageAlign="AbsMiddle" ImageUrl="~/Images/checknames.gif" /> 
</telerik:RadAjaxPanel> 

The UC has a button (checkNameImageButton) that does a server-side lookup to verify the entry against Active Directory.  I would like to have it so when the user clicks the checkNameImageButton, only the ajax panel in the UC does a callback.  Currently it appears that the grid is what initiates the callback.  Is it possible to have the Ajax Panel initiate the callback when it is inside a RadGrid?

Thanks in advance
Andy Spears
Top achievements
Rank 1
 answered on 16 Dec 2009
1 answer
143 views
Hi,

I have a user control that contains a RadMenu that is populated from the users permissions in the code behind.

the ascx control is very simple and looks like this
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Menu.ascx.vb" Inherits="Controls_Menu" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<style type="text/css">  
    .RadMenu_Simple  
    {  
        width: 100%;  
    }  
</style> 
 
<div id="divMenu" style="position: fixed; top: 0px; left: 0px; height: 26px; width: 100%;  
    z-index: 10001000;"> 
       <telerik:RadMenu ID="tmuMenu" runat="server" Skin="Simple" ClickToOpen="true" Width="100%" 
            Style="z-index: 1001000" RegisterWithScriptManager="false">  
        </telerik:RadMenu> 
</div> 

The Menu sits in a div to ensure that it is always at the top of the pane even if the pane is scrolled.

The page sits inside a pane of a RadSplitter.

On most pages this works fine and the buttons on the page fire, but for some the control is stripping out the on click for the buttons. The pages used to use a different menuing technique and I am changein every page of the system to use the new Menu user control.

The rendered page looks as follows (I have reduced most of the menu items for brevity)

<div id="divMenu" style="position: fixed; top: 0px; left: 0px; height: 26px; width: 100%;  
    z-index: 10001000;"> 
        <input type="hidden"/>  
<script src="/Oper8/ScriptResource.axd?d=GiHDpx3Edvlp530KVXGWp5ALxOE0Ls5RydtpO73IdXWBNOXj09gi37oI7k__7quR0&amp;t=ffffffffecf21e5b" type="text/javascript"></script> 
<script src="/Oper8/ScriptResource.axd?d=GiHDpx3Edvlp530KVXGWp5ALxOE0Ls5RydtpO73IdXX9I-GQWD9MnriVZhlsVcpgQaTfODvIb3AG-9pkvJfD2w2&amp;t=ffffffffecf21e5b" type="text/javascript"></script> 
<script src="/Oper8/ScriptResource.axd?d=GiHDpx3Edvlp530KVXGWp5ALxOE0Ls5RydtpO73IdXXOKb8CUsIvjrIkhh_rBgPXy7D911nsMGrakc99_PV95g2&amp;t=ffffffffecf21e5b" type="text/javascript"></script> 
<script src="/Oper8/ScriptResource.axd?d=GiHDpx3Edvlp530KVXGWp5ALxOE0Ls5RydtpO73IdXU0VoPWJ2SI4SIgu7KssGH7rOknreQV7ToEwXhvapfXfFyzJx57mp9hh20sCVlwbRs1&amp;t=ffffffffecf21e5b" type="text/javascript"></script> 
<script src="/Oper8/ScriptResource.axd?d=GiHDpx3Edvlp530KVXGWp5ALxOE0Ls5RydtpO73IdXWGDYDAQCB-8MYRFupHbBu8kOT8PnpZ6GC8-yU7n7l514oWrAg7kaKICNurZYzPhbY1&amp;t=ffffffffecf21e5b" type="text/javascript"></script> 
<script src="/Oper8/ScriptResource.axd?d=GiHDpx3Edvlp530KVXGWp9dP_q-NBdO-uMRKggGPBSN2VYIjP5M3RGU45vAq7TDO8JhfG6GBjKpijAPPun0ZQw2&amp;t=ffffffffecf21e5b" type="text/javascript"></script> 
<div id="UserMenu_tmuMenu" class="RadMenu RadMenu_Simple rmSized" style="width:100%;z-index: 1001000">  
    <ul class="rmHorizontal rmRootGroup">  
        <li class="rmItem rmFirst"><href="#" class="rmLink"><span class="rmText">Daily</span></a><div class="rmSlide">  
            <ul class="rmVertical rmGroup rmLevel1">  
                <li class="rmItem rmFirst"><href="DayBuytoList.aspx" class="rmLink"><span class="rmText">Work-to</span></a></li><li class="rmItem "><href="Expedite.aspx" class="rmLink"><span class="rmText">Expedite</span></a></li><li class="rmItem "><href="DayRefresh.aspx" class="rmLink"><span class="rmText">Daily Refresh</span></a></li><li class="rmItem "><href="UnAttendedLog.aspx" class="rmLink"><span class="rmText">Import Log</span></a></li><li class="rmItem "><href="NoTargets.aspx" class="rmLink"><span class="rmText">No Targets</span></a></li><li class="rmItem "><href="PartAnalysis.aspx" class="rmLink"><span class="rmText">Part Analysis</span></a></li><li class="rmItem "><href="PartPlans.aspx" class="rmLink"><span class="rmText">Part Plan</span></a></li><li class="rmItem "><href="Editwt005.aspx" class="rmLink"><span class="rmText">Live Open PO's</span></a></li><li class="rmItem "><href="Editwt007.aspx" class="rmLink"><span class="rmText">Live Open SO's</span></a></li><li class="rmItem rmLast"><href="StockStatus.aspx" class="rmLink"><span class="rmText">Stock Status</span></a></li> 
            </ul> 
        </div></li><li class="rmItem "><href="#" class="rmLink"><span class="rmText">Import</span></a><div class="rmSlide">  
            <ul class="rmVertical rmGroup rmLevel1">  
                <li class="rmItem rmFirst"><href="RawImport.aspx" class="rmLink"><span class="rmText">RAW Import</span></a></li><li class="rmItem "><href="ValidateRAW.aspx" class="rmLink"><span class="rmText">Validate</span></a></li><li class="rmItem "><href="MthBuildDemands.aspx" class="rmLink"><span class="rmText">Build Demand</span></a></li><li class="rmItem "><href="CombineCustomers.aspx" class="rmLink"><span class="rmText">Combine Demand</span></a></li><li class="rmItem rmLast"><href="ImportVVA.aspx" class="rmLink"><span class="rmText">Import VVA</span></a></li> 
            </ul> 
        </div></li><li class="rmItem "><href="#" class="rmLink"><span class="rmText">S&OP</span></a><div class="rmSlide">  
            <ul class="rmVertical rmGroup rmLevel1">  
                <li class="rmItem rmFirst"><href="#" class="rmLink"><span class="rmText">Planning</span></a><div class="rmSlide">  
                    <ul class="rmVertical rmGroup rmLevel2">  
                        <li class="rmItem rmFirst"><href="MthRefresh.aspx" class="rmLink"><span class="rmText">Refresh</span></a></li><li class="rmItem "><href="MthShowAnalysis.aspx" class="rmLink"><span class="rmText">Targets</span></a></li><li class="rmItem "><href="SOPTargetMovement.aspx" class="rmLink"><span class="rmText">Target Movement</span></a></li><li class="rmItem "><href="SOPDemandTrends.aspx" class="rmLink"><span class="rmText">Demand Trends</span></a></li><li class="rmItem "><href="AlternativePart.aspx" class="rmLink"><span class="rmText">Substitute Parts</span></a></li><li class="rmItem "><href="PhaseIn.aspx" class="rmLink"><span class="rmText">Phase In</span></a></li><li class="rmItem "><href="PhaseOut.aspx" class="rmLink"><span class="rmText">Phase Out</span></a></li><li class="rmItem "><href="Promotions.aspx" class="rmLink"><span class="rmText">Promotions</span></a></li><li class="rmItem "><href="PhaseInParts.aspx" class="rmLink"><span class="rmText">Lifecycle</span></a></li><li class="rmItem "><href="CurrentTargetsKanbans.aspx" class="rmLink"><span class="rmText">Current Targets</span></a></li><li class="rmItem "><href="Capacity.aspx" class="rmLink"><span class="rmText">Capacity</span></a></li><li class="rmItem "><href="Forecasts.aspx" class="rmLink"><span class="rmText">Forecasts</span></a></li><li class="rmItem "><href="FEPBuildCube.aspx" class="rmLink"><span class="rmText">FEP Build Cube</span></a></li><li class="rmItem "><href="FEPResults.aspx" class="rmLink"><span class="rmText">FEP Results</span></a></li><li class="rmItem rmLast"><href="FEPSavedResults.aspx" class="rmLink"><span class="rmText">FEP Saved Results</span></a></li> 
                    </ul> 
                </div></li><li class="rmItem rmLast"><href="#" class="rmLink"><span class="rmText">Analysis</span></a><div class="rmSlide">  
                    <ul class="rmVertical rmGroup rmLevel2">  
                        <li class="rmItem rmFirst"><href="StockDiscrepancies.aspx" class="rmLink"><span class="rmText">Stock Discrepancies</span></a></li><li class="rmItem "><href="SOPReportsMulti.aspx" class="rmLink"><span class="rmText">S&OP Reports</span></a></li><li class="rmItem "><href="SOPSchedule.aspx" class="rmLink"><span class="rmText">S&OP Schedule</span></a></li><li class="rmItem "><href="RuleSeasonality.aspx" class="rmLink"><span class="rmText">Seasonality</span></a></li><li class="rmItem "><href="ABCAnalysis.aspx" class="rmLink"><span class="rmText">ABC Analysis</span></a></li><li class="rmItem rmLast"><href="FamilySplit.aspx" class="rmLink"><span class="rmText">Family % Split</span></a></li> 
                    </ul> 
                </div></li>  
            </ul> 
        </div></li><li class="rmItem rmLast"><href="#" class="rmLink"><span class="rmText">Module</span></a><div class="rmSlide">  
            <ul class="rmVertical rmGroup rmLevel1">  
                <li class="rmItem rmFirst"><href="Redirector.aspx?System=Collabor8" class="rmLink"><span class="rmText">Collabor8</span></a></li><li class="rmItem rmLast"><href="Redirector.aspx?System=Communic8" class="rmLink"><span class="rmText">Communic8</span></a></li> 
            </ul> 
        </div></li>  
    </ul><input id="UserMenu_tmuMenu_ClientState" name="UserMenu_tmuMenu_ClientState" type="hidden" /> 
</div><script type="text/javascript">  
//<![CDATA[ 
    Sys.Application.add_init(function(){$create(Telerik.Web.UI.RadMenu, {"_childListElementCssClass":null,"_skin":"Simple","attributes":{},"clickToOpen":true,"clientStateFieldID":"UserMenu_tmuMenu_ClientState","collapseAnimation":"{\"duration\":450}","expandAnimation":"{\"duration\":450}","itemData":[{"items":[{"navigateUrl":"~/DayBuytoList.aspx"},{"navigateUrl":"~/Expedite.aspx"},{"navigateUrl":"~/DayRefresh.aspx"},{"navigateUrl":"~/UnAttendedLog.aspx"},{"navigateUrl":"~/NoTargets.aspx"},{"navigateUrl":"~/PartAnalysis.aspx"},{"navigateUrl":"~/PartPlans.aspx"},{"navigateUrl":"~/Editwt005.aspx"},{"navigateUrl":"~/Editwt007.aspx"},{"navigateUrl":"~/StockStatus.aspx"}]},{"items":[{"navigateUrl":"~/RawImport.aspx"},{"navigateUrl":"~/ValidateRAW.aspx"},{"navigateUrl":"~/MthBuildDemands.aspx"},{"navigateUrl":"~/CombineCustomers.aspx"},{"navigateUrl":"~/ImportVVA.aspx"}]},{"items":[{"items":[{"navigateUrl":"~/MthRefresh.aspx"},{"navigateUrl":"~/MthShowAnalysis.aspx"},{"navigateUrl":"~/SOPTargetMovement.aspx"},{"navigateUrl":"~/SOPDemandTrends.aspx"},{"navigateUrl":"~/AlternativePart.aspx"},{"navigateUrl":"~/PhaseIn.aspx"},{"navigateUrl":"~/PhaseOut.aspx"},{"navigateUrl":"~/Promotions.aspx"},{"navigateUrl":"~/PhaseInParts.aspx"},{"navigateUrl":"~/CurrentTargetsKanbans.aspx"},{"navigateUrl":"~/Capacity.aspx"},{"navigateUrl":"~/Forecasts.aspx"},{"navigateUrl":"~/FEPBuildCube.aspx"},{"navigateUrl":"~/FEPResults.aspx"},{"navigateUrl":"~/FEPSavedResults.aspx"}]},{"items":[{"navigateUrl":"~/StockDiscrepancies.aspx"},{"navigateUrl":"~/SOPReportsMulti.aspx"},{"navigateUrl":"~/SOPSchedule.aspx"},{"navigateUrl":"~/RuleSeasonality.aspx"},{"navigateUrl":"~/ABCAnalysis.aspx"},{"navigateUrl":"~/FamilySplit.aspx"}]}]},{"items":[{"items":[{"navigateUrl":"~/Editwt001.aspx"},{"navigateUrl":"~/Editwt002.aspx"},{"navigateUrl":"~/Editwt003.aspx"},{"navigateUrl":"~/Editwt004.aspx"},{"navigateUrl":"~/Editwt004b.aspx"},{"items":[{"navigateUrl":"~/Editwt005.aspx"},{"navigateUrl":"~/Editwt007.aspx"},{"navigateUrl":"~/Editwt006.aspx"}]},{"items":[{"navigateUrl":"~/Editwt009.aspx"},{"navigateUrl":"~/Editwt010.aspx"},{"navigateUrl":"~/Editwt011.aspx"}]},{"navigateUrl":"~/Editwt008.aspx"},{"navigateUrl":"~/Editwt004a.aspx"}]},{"items":[{"navigateUrl":"~/Editit001.aspx"},{"navigateUrl":"~/Editit002.aspx"},{"navigateUrl":"~/Editit003.aspx"},{"navigateUrl":"~/Editit004.aspx"},{"navigateUrl":"~/Editit004b.aspx"},{"items":[{"navigateUrl":"~/Editit005.aspx"},{"navigateUrl":"~/Editit007.aspx"},{"navigateUrl":"~/Editit006.aspx"}]},{"items":[{"navigateUrl":"~/Editit009.aspx"},{"navigateUrl":"~/Editit010.aspx"},{"navigateUrl":"~/Editit011.aspx"}]},{"navigateUrl":"~/Editit008.aspx"},{"navigateUrl":"~/Editit004a.aspx"}]},{"items":[{"navigateUrl":"~/EditRAW001.aspx"},{"navigateUrl":"~/EditRAW002.aspx"},{"navigateUrl":"~/EditRAW003.aspx"},{"navigateUrl":"~/EditRAW004.aspx"},{"navigateUrl":"~/EditRAW004b.aspx"},{"items":[{"navigateUrl":"~/EditRAW005.aspx"},{"navigateUrl":"~/EditRAW007.aspx"},{"navigateUrl":"~/EditRAW006.aspx"}]},{"items":[{"navigateUrl":"~/EditRAW009.aspx"},{"navigateUrl":"~/EditRAW010.aspx"},{"navigateUrl":"~/EditRAW011.aspx"}]},{"navigateUrl":"~/EditRAW008.aspx"},{"navigateUrl":"~/EditRAW004a.aspx"}]}]},{"items":[{"navigateUrl":"~/SimImport.aspx"},{"navigateUrl":"~/MthO8Curves.aspx"},{"navigateUrl":"~/MthShowVVA.aspx"},{"navigateUrl":"~/PartSimulation.aspx"},{"navigateUrl":"~/GroupSimulation.aspx"},{"navigateUrl":"~/Scenarios.aspx?Readonly=1"},{"navigateUrl":"~/ForwardSimulation.aspx"},{"navigateUrl":"~/ForwardScenarios.aspx?Readonly=1"},{"items":[{"navigateUrl":"~/ForwardSimCapacity.aspx"},{"navigateUrl":"~/GroupSimCapacity.aspx"}]}]},{"items":[{"items":[{"navigateUrl":"~/CustomerPartTypeInfo.aspx"},{"navigateUrl":"~/PTCConfiguration.aspx"},{"navigateUrl":"~/Shutdown.aspx"},{"navigateUrl":"~/ChangeSupplierByItem.aspx"},{"navigateUrl":"~/CustomerInfo.aspx"},{"navigateUrl":"~/MthBuildCalender.aspx"},{"navigateUrl":"~/CustShutdown.aspx"},{"navigateUrl":"~/NodeInfo.aspx"},{"navigateUrl":"~/ReasonCodes.aspx"}]},{"items":[{"navigateUrl":"~/PartStatus.aspx"},{"navigateUrl":"~/ReviewParts.aspx"},{"navigateUrl":"~/DualSourced.aspx"},{"navigateUrl":"~/ContainerQty.aspx"},{"navigateUrl":"~/WorkCentres.aspx"},{"navigateUrl":"~/Routing.aspx"},{"navigateUrl":"~/SpecifyPTC.aspx"},{"navigateUrl":"~/FEPTemplates.aspx"}]},{"items":[{"navigateUrl":"~/SupplementaryParts.aspx"},{"navigateUrl":"~/SupplementaryBOM.aspx"},{"navigateUrl":"~/SupplementaryRoutings.aspx"},{"navigateUrl":"~/SupplementaryWorkCentres.aspx"}]}]},{"items":[{"navigateUrl":"~/SetVVARules.aspx"},{"navigateUrl":"~/SetRateRules.aspx"},{"navigateUrl":"~/SetROCRules.aspx"},{"navigateUrl":"~/SetVolumeRules.aspx"},{"navigateUrl":"~/SetValueRules.aspx"},{"navigateUrl":"~/SetMTORules.aspx"},{"navigateUrl":"~/RuleManagement.aspx"},{"navigateUrl":"~/SetFEPRules.aspx"}]},{"items":[{"navigateUrl":"~/ArchiveDayBuytoList.aspx"},{"navigateUrl":"~/ArchiveTargetsKanbans.aspx"},{"navigateUrl":"~/ArchiveRateBasedSchedule.aspx"},{"navigateUrl":"~/ArchiveExpedite.aspx"},{"navigateUrl":"~/ArchiveInv1.aspx"},{"navigateUrl":"~/ArchiveFore.aspx"},{"navigateUrl":"~/ArchiveFEP.aspx"},{"navigateUrl":"~/MyRecentReports.aspx"}]},{"items":[{"navigateUrl":"~/Redirector.aspx?System=Collabor8"},{"navigateUrl":"~/Redirector.aspx?System=Communic8"}]}]}, null, null, $get("UserMenu_tmuMenu"));});
//]]> 
</script> 
 
</div> 
 
 
    <div id="divMainContainer" style="position: absolute; top: 20px">  
        <span style="color:White;z-index: 127; left: 174px; position: absolute;  
            top: 230px"><input id="cbActive" type="checkbox" name="cbActive" checked="checked" onclick="javascript:setTimeout('__doPostBack(\'cbActive\',\'\')', 0)" tabindex="9" /></span>  
        <span id="Label6" style="font-family:Arial;font-size:12px;z-index: 126; left: 42px; position: absolute; top: 232px;  
            width: 127px;">Active Suppliers Only</span> 
        <input type="image" name="ImageButton1" id="ImageButton1" src="Images/HelpIcon32.gif" style="height:23px;width:25px;border-width:0px;z-index: 125; left: 786px; position: absolute;  
            top: 36px" /> 
        <span id="Label5" style="font-family:Arial;font-size:12px;z-index: 124; left: 616px; position: absolute; top: 125px;  
            width: 132px;">Append Import Tables</span> 
        <span style="color:White;z-index: 123; left: 752px; position: absolute;  
            top: 123px"><input id="cbAppend" type="checkbox" name="cbAppend" tabindex="9" /></span>  
        <img id="Image1" src="images/validate.gif" style="border-width:0px;z-index: 101; left: 31px; position: absolute; top: 27px" /> 
        <input type="submit" name="Button5" value="SQL" id="Button5" title="SQL Command Line" style="height:28px;width:86px;z-index: 102; left: 690px; position: absolute; top: 77px" /> 
        <input type="submit" name="Button4" value="Import" id="Button4" tabindex="11" title="Import the Valid Records from the RAW Table to the Import Tables" style="height:31px;width:104px;z-index: 103; left: 560px; position: absolute; top: 32px" /> 
        <span id="Label4" style="font-family:Arial;font-size:12px;z-index: 104; left: 648px; position: absolute; top: 211px;  
            width: 90px;">Record Count</span> 
        <input name="txtSupplierName" type="text" value="All Supplier Codes Selected" readonly="readonly" id="txtSupplierName" tabindex="2" style="background-color:White;width:311px;z-index: 105; left: 354px; position: absolute;  
            top: 90px" /> 
        <select name="ddlSupplierCode" onchange="javascript:setTimeout('__doPostBack(\'ddlSupplierCode\',\'\')', 0)" id="ddlSupplierCode" tabindex="6" style="background-color:#F9D295;width:168px;z-index: 106; left: 179px; position: absolute;  
            top: 91px"> 
    <option selected="selected" value="All">All</option> 
    <option value="Company A">COMPANY A</option> 

As you can see some things like the dropDownList and and the checkBox have __doPostBack events attached but the buttons (e.g Button5 and Button4) no longer do. Before implementing the RadMenu these used to fire without a problem

Does anybody have any idea what is causing this.

As I say this only seems to happen on some pages and most pages generate the HTML with the  required __doPostBack.

Stuart Watton
Top achievements
Rank 2
 answered on 16 Dec 2009
3 answers
176 views
I have a grid with the following filter:
 <telerik:RadGrid runat="server" ID="RadGrid1" ShowStatusBar="true" AllowSorting="True" AllowPaging="True" AllowFilteringByColumn="True"  DataSourceID="odsUsers">
<
MasterTableView AutoGenerateColumns="false" DataKeyNames="Id" DataSourceID="odsUsers" UseAllDataFields="true">
<Columns>
.........
<
telerik:GridTemplateColumn UniqueName="DepartName" AllowFiltering="true">
<ItemTemplate><asp:Label runat="server" ID="Label2" Text='<%# Eval("DepartName") %>' /></ItemTemplate>
<FilterTemplate>

 

<telerik:RadComboBox ID="cmbDepartments" DataSourceID="odsDepartments" DataTextField="Name"  DataValueField="Id" AppendDataBoundItems="true" SelectedValue='<%# filterSelectedDepartment %>'  runat="server" OnSelectedIndexChanged="cmbDepartments_SelectedIndexChanged" AutoPostBack="true">

 

<Items><telerik:RadComboBoxItem Text="All" Value="0" /></Items>

 

</telerik:RadComboBox>
</FilterTemplate>
</telerik:GridTemplateColumn>
..........
</Columns>
</MasterTableView></telerik:RadGrid><asp:ObjectDataSource ID="odsUsers" runat="server" SelectMethod="GetUsersDataSet" TypeName="TA2009.BusinessLogic.UsersManager" OnSelecting="odsUsers_Selecting">

</asp:ObjectDataSource>
<
asp:ObjectDataSource ID="odsDepartments" runat="server"  SelectMethod="GetDepartmentsDataSet" TypeName="TA2009.BusinessLogic.DepartmentsManager" >

</asp:ObjectDataSource>

GetUsersDataSet methods returns a whole list of users. I want to filter them by Department.

 

protected void cmbDepartments_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)

 

 

RadComboBox cmbDepartments = o as RadComboBox;

filterSelectedDepartment = cmbDepartments.SelectedValue;
String filter = String.Empty;

if (filterSelectedDepartment != "0")
    
filter = "DepartId=" + filterSelectedDepartment;
RadGrid1.MasterTableView.FilterExpression = filter ;

 

RadGrid1.Rebind();

}

When filter is applied, only filtered rows remains in the grid, this is right.  But number of pages and records in the paging panel remains the same as it was.
For example,  let's assume that grid contains 7 records, 5 records are displaing on the page, i.e. there are 2 pages, 5 records on the first page and 2 on the second. Let's assume that only 2 records satisfy to filter criteria, 1 on the first page and 1 on the second.  In this case when filter is appplied, I will still get a grid with 2 pages,  1 record will  be displayed on the first page and one on the second.
I thought , that I should get a grid with 1 page and 2 records displaying on it.
Please advice. 

 

 

 

 

 

 

 

 

Iana Tsolova
Telerik team
 answered on 16 Dec 2009
1 answer
100 views
Hi,

Having a small issue here.
I have the Rotator control set up to run off a dynamically updated XML file - the screen refreshing every 3 minutes. The problem is that I have the scrolling going downwards (at the clients' request), and the new items on the list appear at the foot of the screen, vanishing off the bottom almost instantly.

Is there any way for the scrolling to begin with the first item maybe halfway up the page, so that it has the bottom half of the screen to scroll down before vanishing off the end?
Fiko
Telerik team
 answered on 16 Dec 2009
1 answer
161 views
Hi.  I am trying to use the upgrade wizard to install the latest release of the ASP.Net AJAX controls.  I log in, and the wizard starts to download the upgrade, then an error is thrown: "The remote server returned an error: (407) Proxy Authentication Required."

Is this a firewall issue?
Atanas
Telerik team
 answered on 16 Dec 2009
1 answer
152 views
In Spain (es-ES) decimal separator is "," [comma] and group separator is '.' [dot].

In page with Culture="es-ES", if you try filter by decimal value for example "0.05" [en-US]:
- If you try spanish notation culture "0,05" the filter fail (AJAX error, etc ...)
- If you try en-US notation cultrue "0.05" the filter no fail but filter value is "5". It's wrong the filter value must be "0.05" [en-US].

Thanks.


Pavlina
Telerik team
 answered on 16 Dec 2009
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?