Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
84 views
I'm working with the portal example docking scripts (http://www.telerik.com/demos/aspnet/prometheus/Dock/Examples/MyPortal/DefaultVB.aspx) which creates custom docks and saves the state.

Two issues:
1. Whenever a dock is dragg from Dock 2 to Dock1, the page does a full postback (non async).  Works fine, dragging from 1 to 2.
2. Any time the page is reloaded or posts back, (such as in issue 1) all the controls disappear and the state is lost.

Any suggestions?

Thanks

ataxia1
Top achievements
Rank 1
 answered on 15 Jul 2008
1 answer
59 views
I have a dropdown list with autopostback="true" in a grid TemplateColumn. How to ajaxify a postback from that control? The AjaxManager's settings below work only for the grid events.

<telerik:AjaxSetting AjaxControlID="MyGrid">
<UpdatedControls>
    
<telerik:AjaxUpdatedControl ControlID="MyGrid" LoadingPanelID="lp" />
</UpdatedControls>
</telerik:AjaxSetting>

miksh
Top achievements
Rank 1
Iron
 answered on 15 Jul 2008
11 answers
416 views
Search (web user control) using RadGrid, RadCombobox, RadTextBox, RadAjaxManager, RadScriptManager, RadStyleSheetManager, RadFormDecorator, SqlDataSource(s)

Background:
All controls are from RadControls for ASP.NET AJAX (not counting sqldatasources)
I've disabled ViewState, Embedded Scripts, Embedded Skins, Embedded Base Style Sheets and have added the necessary files to enable the WebBlue skin using RadScriptManager and RadStyleSheetManager.
The controls that comprise the search: Pairs of RadComboboxes (A filter RadComboBox with Ignore, Equals, Does Not Equal and the RadComboBox with the Selection to be filtered), the sqldatasources that populate them except for the ones that are load on demand, RadTextImputs, RadGrid and RadAjaxManager are part of a web user control that is being placed in a test page with the afore mentioned RadScriptManager and RadStyleSheetManager.
The SqlDataSource that's connected to the RadGrid is taking it's control parameter data from the SelectedValue of the RadComboBoxes and Text properties of the InputBoxes.
The stored procedure conneted to the SqlDataSource of the RadGrid can take any combination of paramters (logic in stored proc) and it's CancelSelectOnNullParameter property is set to False.
The RadComboBoxes have their AutoPostBack Properties set to True because there is codebehind that takes additional action when a selection is made (changes the SelectedValue of another RadComboBox to say pay attention to this parameter).  To reduce page refresh, these RadComboBox triggers are managed by the RadAjaxManager.  e.g. Select a state, and in the SelectedIndexChanged event of that control, the SelectedValue of its filter changes to = (with an additional option of !=).
I've also got SQL Server Profiler running to see what's actually being sent to the server.
The search button is set up in the RadAjaxManager to update the RadGrid.

Problem:
Only values from the RadTextBoxes are making it through to the Stored Procedure.  Simply allowing the search button to do a full page postback wipes the values of the RadComboBoxes (but not the RadTextInputs).  I've spent the last week+ going through property change combinations with no success. As a final test I included a pair of Standard DropDownLists and configured them the same way as the RadComboBoxes: Disabled viewstate, Created code for SelectedIndexChanged event, Wired up to RadAjaxManager.  The standard DropDownLists worked as expeted and their values were passed to the SqlDataSource/Stored Procedure and reflected in the results of the RadGrid.

I'd only planned to use the RadComboBoxes where I needed their functionality, but standard DropDownLists create too much of a visual contrast.  Now I've spent 2 weeks just trying to get this one page to work.  It's a bit frustrating.

Question:
Why aren't the RadComboBox's selections/values being lost?

Side Note:
I can find No Way to make the Paging slider visible without the RadGrid's EmbeddedSkin being enabled.

Subset of Web User Control Code:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
  <AjaxSettings> 
    <telerik:AjaxSetting AjaxControlID="btnSearch"> 
      <UpdatedControls> 
        <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
      </UpdatedControls> 
    </telerik:AjaxSetting> 
    <telerik:AjaxSetting AjaxControlID="rcbState"> 
      <UpdatedControls> 
        <telerik:AjaxUpdatedControl ControlID="rcbStateFltr" /> 
      </UpdatedControls> 
    </telerik:AjaxSetting> 
    <telerik:AjaxSetting AjaxControlID="ddlStage"> 
      <UpdatedControls> 
        <telerik:AjaxUpdatedControl ControlID="ddlStageFltr" /> 
      </UpdatedControls> 
    </telerik:AjaxSetting> 
  </AjaxSettings> 
</telerik:RadAjaxManager> 
 
 
<asp:SqlDataSource ID="sqldsFilter" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="FlterLst" SelectCommandType="StoredProcedure" DataSourceMode="DataReader"></asp:SqlDataSource> 
<asp:SqlDataSource ID="sqldsState" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="StateLst" SelectCommandType="StoredProcedure" DataSourceMode="DataReader"></asp:SqlDataSource> 
<asp:SqlDataSource ID="sqldsStage" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="StageLst" SelectCommandType="StoredProcedure" DataSourceMode="DataReader"></asp:SqlDataSource> 
<asp:SqlDataSource ID="sqldsSearch" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="Search" SelectCommandType="StoredProcedure" CancelSelectOnNullParameter="False"> 
  <SelectParameters> 
    <asp:ControlParameter ControlID="txtCompany" Name="SearchCompanyName" PropertyName="Text" Type="String" ConvertEmptyStringToNull="False" /> 
    <asp:ControlParameter ControlID="rcbState" Name="SearchCompanyState" PropertyName="SelectedValue" Type="String" ConvertEmptyStringToNull="False" /> 
    <asp:ControlParameter ControlID="rcbStateFltr" Name="SearchCompanyStateFilter" PropertyName="SelectedValue" Type="Int32" /> 
    <asp:ControlParameter ControlID="ddlStage" Name="SearchStageID" PropertyName="SelectedValue" Type="String" ConvertEmptyStringToNull="False" /> 
    <asp:ControlParameter ControlID="ddlStageFltr" Name="SearchStageIDFilter" PropertyName="SelectedValue" Type="Int32" /> 
  </SelectParameters> 
</asp:SqlDataSource> 
 
<telerik:RadTextBox ID="txtCompany" runat="server" EnableTheming="True" Skin="WebBlue" Width="150px" EnableEmbeddedBaseStylesheet="False" EnableEmbeddedScripts="False" EnableAjaxSkinRendering="False" EnableEmbeddedSkins="False" EnableViewState="False"></telerik:RadTextBox> 
 
<asp:DropDownList ID="ddlStageFltr" runat="server" DataSourceID="sqldsFilter" DataTextField="Filter" DataValueField="FilterID" EnableViewState="False"></asp:DropDownList> 
<asp:DropDownList ID="ddlStage" runat="server" AutoPostBack="True" DataSourceID="sqldsStage" DataTextField="Stage" DataValueField="StageID" EnableViewState="False" OnSelectedIndexChanged="ddlStage_SelectedIndexChanged"></asp:DropDownList> 
 
<telerik:RadComboBox ID="rcbStateFltr" runat="server" DataSourceID="sqldsFilter" Skin="WebBlue" Width="50px" DataTextField="Filter" DataValueField="FilterID" EnableEmbeddedBaseStylesheet="False" EnableEmbeddedScripts="False" EnableAjaxSkinRendering="False" EnableViewState="False"> 
<CollapseAnimation Duration="200" Type="OutQuint" /></telerik:RadComboBox> 
<telerik:RadComboBox ID="rcbState" runat="server" Skin="WebBlue" Width="155px" AutoPostBack="True" DataSourceID="sqldsState" DataTextField="State" DataValueField="StateID" OnSelectedIndexChanged="rcbState_SelectedIndexChanged" EnableEmbeddedBaseStylesheet="False" EnableEmbeddedScripts="False" EnableAjaxSkinRendering="False" EnableViewState="False"> 
<CollapseAnimation Duration="200" Type="OutQuint" /></telerik:RadComboBox> 
 
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" DataSourceID="sqldsSearch"    EnableTheming="True" GridLines="Vertical" ShowFooter="True" ShowStatusBar="True" Skin="WebBlue" Width="700px" AutoGenerateColumns="False"  ImagesPath="skins\webblue\grid" EnableEmbeddedBaseStylesheet="False" EnableEmbeddedScripts="False" EnableViewState="False"> 
  <MasterTableView DataSourceID="sqldsSearch" DataKeyNames="CompanyID" EnableColumnsViewState="False" EnableViewState="False"> 
    <RowIndicatorColumn Visible="False"> 
      <HeaderStyle Width="20px" /> 
    </RowIndicatorColumn> 
    <ExpandCollapseColumn Resizable="False" Visible="False"> 
      <HeaderStyle Width="20px" /> 
    </ExpandCollapseColumn> 
    <EditFormSettings> 
      <PopUpSettings ScrollBars="None" /> 
      <EditColumn CancelImageUrl="../Skins/WebBlue/Grid/Cancel.gif" EditImageUrl="../Skins/WebBlue/Grid/Edit.gif" FilterImageUrl="../Skins/WebBlue/Grid/Filter.gif" InsertImageUrl="../Skins/WebBlue/Grid/Insert.gif" SortAscImageUrl="../Skins/WebBlue/Grid/SortAsc.gif" SortDescImageUrl="../Skins/WebBlue/Grid/SortDesc.gif" UpdateImageUrl="../Skins/WebBlue/Grid/Update.gif"> 
      </EditColumn> 
    </EditFormSettings> 
    <Columns> 
      Columns Removed 
    </Columns> 
    <PagerStyle Mode="Slider" FirstPageImageUrl="../Skins/WebBlue/Grid/PagingFirst.gif" LastPageImageUrl="../Skins/WebBlue/Grid/PagingLast.gif" NextPageImageUrl="../Skins/WebBlue/Grid/PagingNext.gif" PrevPageImageUrl="../Skins/WebBlue/Grid/PagingPrev.gif" /> 
    <CommandItemSettings AddNewRecordImageUrl="../Skins/WebBlue/Grid/AddRecord.gif" RefreshImageUrl="../Skins/WebBlue/Grid/Refresh.gif" /> 
  </MasterTableView> 
  <ClientSettings> 
    <Selecting AllowRowSelect="True" /> 
  </ClientSettings> 
  <PagerStyle FirstPageImageUrl="../Skins/WebBlue/Grid/PagingFirst.gif" LastPageImageUrl="../Skins/WebBlue/Grid/PagingLast.gif" NextPageImageUrl="../Skins/WebBlue/Grid/PagingNext.gif" PrevPageImageUrl="../Skins/WebBlue/Grid/PagingPrev.gif" /> 
</telerik:RadGrid> 

Subset of Code Behind:
    protected void rcbState_SelectedIndexChanged (object o , RadComboBoxSelectedIndexChangedEventArgs e) { 
      if ( rcbState.SelectedValue != "" && rcbStateFltr.SelectedValue == "" ) { rcbStateFltr.SelectedValue = "1"; } 
    } 
 
    protected void ddlStage_SelectedIndexChanged (object sender , EventArgs e) { 
      if ( ddlStage.SelectedValue != "" && ddlStageFltr.SelectedValue == "0" ) { ddlStageFltr.SelectedValue = "1"; } 
    } 
 
Trevor
Top achievements
Rank 1
 answered on 15 Jul 2008
6 answers
320 views
Hi,

I downloaded the RadEditor_MOSS_4_5_3.zip and deployed the RadEditorMOSS solution to MOSS 2007. I followed your sample code to make a custom webpart and it doesn't work. The constructor of MOSSRadEditor is missing in RadEditorSharePoint.dll so I can't even instantiate the instance of MOSSRadEditor class. I used RadEditorMOSS_4_5_2_trial.zip and it works.
Could you please let me know what's going on?

using System;
using System.Runtime.InteropServices;
using System.Web.UI;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Serialization;
using Telerik.SharePoint;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using Microsoft.SharePoint.WebPartPages;

namespace Web_Part1
{
   public class Web_Part1 : System.Web.UI.WebControls.WebParts.WebPart
   {
       private MOSSRadEditor contentEditor;
       protected override void CreateChildControls()
       {
           contentEditor = new MOSSRadEditor();//this doesn't work while compiling the code
           contentEditor.Content = "Enter content...";
           base.CreateChildControls();
       }
       protected override void Render(HtmlTextWriter writer)
       {
           EnsureChildControls();
           // TODO: add custom rendering code here.
           // writer.Write("Output HTML");
       }
   }
}



Thanks,
Ken
ken
Top achievements
Rank 1
 answered on 15 Jul 2008
3 answers
115 views
Hi There,
I am using a Rad Tooltip on page that returns a value selected by user. The Tooltip is on Manual Close Mode. It repeats itself after I programmatically close it. Conversely, It is OK when I close it using the default close button. You can see the application in https://www.maxteleco.cc/map/ManageRates.aspx

Please help me!
Regards
Mahdi
Svetlina Anati
Telerik team
 answered on 15 Jul 2008
2 answers
147 views
Hi, I've been reading all forum posts related to the Navigation buttons but I still can't get them to work properly. I am using the latest version of the controls and when I start navigating (month view) it shows August but gets stuck there. When I click on the left navigation button, it jumps to June. I've used Ajax Manager, then removed it, still the same thing. This behaviour is also true for the other views as well. What am I missing?

Thanks
Goksun
Goksun
Top achievements
Rank 1
 answered on 15 Jul 2008
2 answers
148 views
In the MOSSradEditor 4.5.3 full I can see the js files and would like to make changes to them to tweak some client behaviors. Specifically the RadEditor.js file.

I am using the MOSSradEditor webpart.

What is the recommended way to be able to alter that file?
Troy
Top achievements
Rank 1
 answered on 15 Jul 2008
8 answers
250 views
When I use a button control inside a RadPane, FormDecorator displays the buttons static within the pane. When the content of the pane needs to be scrolled, buttons stay on the same position, resulting in all the content being scrolled behind the buttons. This problem occurs in both Firefox and Internet Explorer.
Svetlina Anati
Telerik team
 answered on 15 Jul 2008
4 answers
142 views
I use the version RadControls_Q4_2006_SP2_dev into my existing project. I would like to use RadControls_for_ASP.NET_AJAX_2008_1_619 into this project.

I read this article http://www.telerik.com/help/aspnet-ajax/tree_overviermigrating.html.

Into Client-Side Changes, th project doesn't recognize this javascript method :

- node.expand();
- node.set_expanded(true);

I don't know what to do... Do you have any idea ?

Thanks in advance,
Suzi
Top achievements
Rank 1
 answered on 15 Jul 2008
1 answer
242 views
Hi

    I had added one rad menu which have a group setting property expand direction = auto. While i load the page for the first time. The submenus will expand in the right direction and i can't see any option in that because the window is small. if i  open the menu items second time with out page refresh the menu sub items will open in the left direction.

 Is there any property to set for opening the sub menus to the left if the page is small and if there is enough space in right side let it open to right direction.

Thanks in advance
Rajeev

Peter
Telerik team
 answered on 15 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?