Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
78 views
I'm running into this very strange problem with RadEditor whereas before we were able to use it without any issue.  The toolbar, dropdowns, popups, editor mode buttons etc all show ***Missing, while there are no other issues with other controls.  I've attached a screenshot of the toolbar.  We are using 2009.2.701.35.

Does anyone know what's going on?




Rumen
Telerik team
 answered on 26 May 2010
1 answer
119 views
Hi,

i want to change the Provider because the current provider get the document library but i want to get document library and sub site.
I want to get the sub site in form folder in File Explorer.

Please help me :)

Thanks for your help.

Best Regards
Fiko
Telerik team
 answered on 26 May 2010
2 answers
119 views
I was wondering if someone could tell me what exactly "'get_selecteditem()' is null or not an object" means? 
Thanks
Jojo Patino
Top achievements
Rank 1
 answered on 26 May 2010
1 answer
157 views
hey i hope some one can help me in this roblem
i have grid with with template columns that have  text boxes with its required field validation controls
there is a button outside the grid on the page which save all the values on those text box

what i want when some text box is empty the page never post back ,
i've set validation groups to all button , grid(Validation-setting, text box , validators
but still the validation text show but the page post back


so hope any one can help thanks



<table width="100%">  
<tr><td>Clinical Group:</td><td><telerik:RadComboBox id="cmbClinicalGroups"   
        runat="server" AutoPostBack="True"   
        onselectedindexchanged="cmbClinicalGroups_SelectedIndexChanged"></telerik:RadComboBox></td></tr> 
<tr><td>Services:</td><td><telerik:RadComboBox id="cmbServices" runat="server"></telerik:RadComboBox></td></tr> 
<tr><td></td><td><asp:Button ID="btnLoad" runat="server" onclick="btnLoad_Click"   
        Text="Load" /></td></tr> 
<tr><td colspan="2">  
    <telerik:RadGrid ID="grdServiceFees" runat="server" ValidationSettings-ValidationGroup="save" ValidationSettings-EnableValidation="true"   
        AllowAutomaticDeletes="True" AllowAutomaticInserts="True"   
        AllowAutomaticUpdates="True" AllowFilteringByColumn="True" AllowPaging="True"   
        AllowSorting="True" AutoGenerateColumns="False"   
          
        ShowFooter="True"   
        ShowGroupPanel="True" Width="100%">  
        <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="true"   
            AllowRowsDragDrop="false" Resizing-AllowColumnResize="true"   
            Resizing-AllowRowResize="false">  
            <Selecting AllowRowSelect="True" /> 
            <Scrolling AllowScroll="false" UseStaticHeaders="True" /> 
        </ClientSettings> 
        <MasterTableView AllowAutomaticInserts="false" AllowAutomaticUpdates="false"   
            AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false"   
            CommandItemDisplay="TopAndBottom" DataKeyNames="Id" PageSize="10"   
            RetrieveAllDataFields="false">  
            <CommandItemSettings ShowExportToExcelButton="true"   
                ShowExportToPdfButton="false" ShowExportToWordButton="true" /> 
            <Columns> 
                <telerik:GridTemplateColumn AllowFiltering="true" AutoPostBackOnFilter="true"   
                    DataField="Active" GroupByExpression="Active Group By Active"   
                    HeaderStyle-Width="60px" HeaderText="Active" SortExpression="Active"   
                    UniqueName="Active">  
                    <ItemTemplate> 
                        <asp:Image ID="ImgActive" runat="server" AlternateText="active"   
                            ImageUrl="~/Images/Enabled.png" Visible='<%# bool.Parse(Eval("Active").ToString()) %>' /> 
                        <asp:Image ID="ImgInactive" runat="server" AlternateText="inactive"   
                            ImageUrl="~/Images/Disabled.png" Visible='<%# ! bool.Parse(Eval("Active").ToString()) %>' /> 
                    </ItemTemplate> 
                    <EditItemTemplate> 
                        <asp:CheckBox ID="chkActive" runat="server" Checked="true" /> 
                    </EditItemTemplate> 
                    <HeaderStyle Width="60px" /> 
                </telerik:GridTemplateColumn> 
 
                <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="ContractName"   
                    HeaderText="ContractName" UniqueName="ContractName"></telerik:GridBoundColumn> 
 
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" DataField="PayerName"   
                    HeaderText="PayerName" UniqueName="PayerName">  
                </telerik:GridBoundColumn> 
 
                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" DataField="PatientFee"   
                    HeaderText="PatientFee" UniqueName="PatientFee">  
                    <ItemTemplate> 
                    <asp:TextBox ID="txtPatientFee" runat="server" Value='<%# float.Parse(Eval("PatientFee").ToString()) %>' ValidationGroup="save"></asp:TextBox> 
                    <asp:RequiredFieldValidator ID="patientFeesValidator" runat="server" ControlToValidate="txtPatientFee" ErrorMessage="no" ValidationGroup="save"></asp:RequiredFieldValidator> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
 
                <telerik:GridTemplateColumn AutoPostBackOnFilter="true" DataField="InsuranceFees"   
                    HeaderText="InsuranceFees" UniqueName="InsuranceFees">  
                    <ItemTemplate> 
                    <asp:TextBox ID="txtinsuranceFee" runat="server" Value='<%# float.Parse(Eval("InsuranceFee").ToString()) %>' ValidationGroup="save"></asp:TextBox> 
                    <asp:RequiredFieldValidator ID="insuranceFeesValidator" runat="server" ControlToValidate="txtPatientFee" ErrorMessage="no" ValidationGroup="save"></asp:RequiredFieldValidator> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                  
            </Columns> 
       
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px" /> 
            </ExpandCollapseColumn> 
        </MasterTableView> 
        <HeaderContextMenu EnableAutoScroll="True">  
        </HeaderContextMenu> 
    </telerik:RadGrid> 
    </td></tr>  
<tr><td></td><td align="right"><asp:Button id="btnSave" Text="Save" runat="server"   
        ValidationGroup="Save" CausesValidation="false" onclick="btnSave_Click" /></td></tr> 
</table> 

Radoslav
Telerik team
 answered on 26 May 2010
6 answers
184 views
Hello,

When editing an image such that its align property is set to align="left", such as <img src="myimage.gid" align="left"/> and then switching to design view and then back to html view, the source is altered to:

<img src="myimage.gid" style="float:left"/>

Why is this happening?  I understand a float may be better, but in this case this is for HTML that will appear in an Email Newsletter, and many email clients do not support the float attribute.

Thanks
Christian
Rumen
Telerik team
 answered on 26 May 2010
3 answers
229 views
Hi,

I have a dynamic pivot SQL query in a stored procedure, which returns a table. I used auto-generated columns, because that's the only way forward (number of columns and even column names changes). The first 2 columns are always the same, so i have the column name fixed. The rest are dynamic. Every cell has this format aaa|123. I need to split the string, put the first value in the cell and create an event on mouse click with the second value as parameter.

I saw i can get the value with ItemDataBound event, but it requires column name, not index. For example:
If TypeOf e.Item Is GridDataItem Then
            Dim dataItem As GridDataItem = DirectCast(e.Item, GridDataItem)
            dataItem.Item("ColumnX").Text = "Custom text"
        End If

What i need is something like

If TypeOf e.Item Is GridDataItem Then
            Dim dataItem As GridDataItem = DirectCast(e.Item, GridDataItem)
            dataItem.Item(3).Text = "Custom text"
        End If

And also i need to add a mouse click event in every cell

Please help!

Thank you!
Veli
Telerik team
 answered on 26 May 2010
1 answer
113 views
Well, maybe not on its own. My problem is that it fires before even Page_Load. I have the following code to create each page view programmatically :

        protected void Multipage1PageViewCreated(object sender, RadMultiPageEventArgs e) 
        { 
            RadPageView newpage = e.PageView; 
 
            RadEditor editor = new RadEditor { ID = "radeditor" + e.PageView.Index, Width = 800}; 
 
            UpdatePanel updatepanel = new UpdatePanel 
                                          { 
                                              ID = "updatepanel" + e.PageView.Index, 
                                              UpdateMode = UpdatePanelUpdateMode.Conditional 
                                          }; 
 
            //RadioButtonList Start  
            RadioButtonList rbl = new RadioButtonList {RepeatDirection = RepeatDirection.Vertical, Width = 130}; 
            rbl.SelectedIndexChanged += new EventHandler(RadioButtonListEditModeSelectedIndexChanged); 
            rbl.AutoPostBack = true
 
 
            ListItem li1 = new ListItem(); 
            ListItem li2 = new ListItem(); 
            ListItem li3 = new ListItem(); 
            rbl.ID = "radiobuttonlist" + e.PageView.Index; 
            li1.Value = "FullSet"
            li1.Text = "Advanced toolset"
            li2.Value = "Default"
            li2.Text = "Default"
            li3.Value = "BasicTools"
            li3.Text = "Basic toolset"
            rbl.Items.Add(li1); 
            rbl.Items.Add(li2); 
            rbl.Items.Add(li3); 
            //RadioButtonList End  
 
            Literal ltr = new Literal 
            { 
                Text = "<div class=\"radiobuttonlist\"><b>Choose a toolbar style:</b>" 
            }; 
            Literal ltr2 = new Literal { Text = "</div>" }; 
            Literal ltrTitle = new Literal {Text = "<h2>Τίτλος</h2>"}; 
            TextBox txtTitle = new TextBox(); 
            txtTitle.Width = 800; 
            txtTitle.Height = 20; 
            Literal ltrDivStart = new Literal {Text = "<div class='ArticleTitle'>"}; 
            Literal ltrDivEnd = new Literal {Text = "</div>"}; 
            Literal ltrDivStart2 = new Literal { Text = "<div style='float:left;'>" }; 
            Literal ltrDivEnd2 = new Literal { Text = "</div>" }; 
            updatepanel.ContentTemplateContainer.Controls.Add(editor); 
            updatepanel.ContentTemplateContainer.Controls.Add(ltr); 
            updatepanel.ContentTemplateContainer.Controls.Add(rbl); 
            updatepanel.ContentTemplateContainer.Controls.Add(ltr2); 
 
            newpage.Controls.Add(ltrDivStart); 
            newpage.Controls.Add(ltrTitle); 
            newpage.Controls.Add(txtTitle); 
            newpage.Controls.Add(ltrDivEnd); 
            newpage.Controls.Add(ltrDivStart2); 
            newpage.Controls.Add(updatepanel); 
            newpage.Controls.Add(ltrDivEnd2); 
            HiddenField hiddenField = new HiddenField(); 
            hiddenField.Value = Languages[e.PageView.Index]; 
            newpage.Controls.Add(hiddenField); 
        } 
 

This was suggested by a member of the team. Now, outside of the control that contains the tab strip and multi page and all that I have an asp:Button. On its OnClick event I want to get the values of everything in this control. My problem is that PageViewCreated fires before everything else when I click the button. Before the function I have for OnClick and before Page_Load. Any solutions? Thanks in advance.
Yana
Telerik team
 answered on 26 May 2010
2 answers
111 views
Hello, I'm wondering if it's possible for RadSpell to check and correct the spelling inside an HTML SELECT element?  For example, say I have this HTML snippet:
<select title="Select the correct answer in the pull-down." style="max-width: 650px;" class="pulldown_choice_options" id="sel_choice_0" tabindex="0">
<option value="forezt">forezt</option><option value="G">G</option><option value="d">d</option><option value="e">e</option><option value="f">f</option></select>

Notice the incorrectly spelled word "forezt". 

Now to add a twist to this, say I have several SELECT elements, all with the same options. Would it be possible to get RAD spell check treat all the SELECT's as one?  i.e.  look only at the first SELECT element and it's OPTIONs, but then correct the spelling in all the other SELECT elements with the class id of pulldown_choice_options.

We're using jQuery, ASP.NET MVC

Hope this makes sense.

TIA
Tom Opgenorth
Top achievements
Rank 1
 answered on 26 May 2010
3 answers
76 views
Does anyone know if the RadMenu have a problem when using named portal instances vs. numbered portal instances it DotNetNuke.
We are having an issue with the Admin and Host icons displaying as broken images with named portal instances.

For example...
We have a shared portal environment setup.
When we use the RadMenu with the following structure:
/Portals/0/skins/telerik/
The Admin menu and Host menu display without issue.

However, when we use the RadMenu with the following structure:
/Portals/telerik/skins/telerik/
The Admin menu and Host menu icons do not display correctly.  Upon further inspection, the path that get's injected is as follows.
/Portals/telerik/~/images/icon_sitesettings_16px.gif

Please advise.

Thanks in advance.
Dimitar Milushev
Telerik team
 answered on 26 May 2010
1 answer
209 views
Hi,
I am trying to use RadAjaxManager tool to update  third party control. AjaxManager works fine if I  just use ASP.Net web controls. Once I introduce  ThinkGeo map control my application does not display map. My application is supposed to have partial page update on button click, but I am loosing my map even during page load.
Without the RadAjax Manager, my applicatio
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Test" %> 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ Register assembly="WebEdition" namespace="ThinkGeo.MapSuite.WebEdition" tagprefix="cc1" %> 
<%@ Register Src="~/Map.ascx" TagName="Map" TagPrefix="ucMap" %> 
<%@ Register Src="~/ElementInfo.ascx" TagName="ExcelData" TagPrefix="cc2" %> 
 
<!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>Next Gen Web Browser</title> 
    <link href="MainPageStyle.css" rel="stylesheet" type="text/css" /> 
 </head> 
    <body> 
    <form  runat="server"
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    </telerik:RadScriptManager> 
    <%-- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" ></script
 <script type="text/javascript">   
            $(document).ready(function() { 
                SendPostBack(); 
            }); 
            function SendPostBack() { 
               <%=Page.GetPostBackEventReference(btnDummy)%>
            } 
     </script>--%> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
         <AjaxSettings> 
             <telerik:AjaxSetting AjaxControlID="Button1"
                 <UpdatedControls> 
                     <telerik:AjaxUpdatedControl ControlID="MapDivSplitter" /> 
                 </UpdatedControls> 
             </telerik:AjaxSetting> 
             <telerik:AjaxSetting AjaxControlID="Button2"
                 <UpdatedControls> 
                     <telerik:AjaxUpdatedControl ControlID="MapDivSplitter" /> 
                 </UpdatedControls> 
             </telerik:AjaxSetting> 
             <telerik:AjaxSetting AjaxControlID="Map1"
                 <UpdatedControls> 
                     <telerik:AjaxUpdatedControl ControlID="Map1" /> 
                 </UpdatedControls> 
             </telerik:AjaxSetting> 
         </AjaxSettings> 
    </telerik:RadAjaxManager>   
    <telerik:RadSplitter ID="MainSplitter" runat="server" Height="100%"   
        Width="100%" PanesBorderSize="0"  BorderSize="0"   
             Orientation="Horizontal" Skin="Vista" LiveResize="true"  
        VisibleDuringInit="false" ResizeWithBrowserWindow="true"  > 
        <telerik:RadPane ID="TitleBarPane" runat="server" Locked="true" Height="94px"
                 <asp:Image ID="logoImage" ImageUrl="theme/default/Logo.JPG"  alt="Company Logo" runat="server" /> 
                <asp:Image id="logoStretch" ImageUrl="theme/default/LogoStretch.JPG" alt="Fill Image"   runat="server" Height="95px" Width="100%" /> 
        </telerik:RadPane> 
        <telerik:RadSplitBar ID="TitleRadSplitBar" runat="server"  /> 
        <telerik:RadPane ID="ContentPane" runat="server" Scrolling="None"
            <telerik:RadSplitter ID="ContentRadSplitter" runat="server" Skin="Vista" PanesBorderSize="0"  BorderSize="0" > 
                <telerik:RadPane ID="LeftRadPane" runat="server" Width="230" BackColor="White" Scrolling="None"
                     <asp:Button ID="Button1" runat="server" Text="Display Second Image "   onclick="Button1_Click"/> 
                     <asp:Button ID="Button2" runat="server" Text="Hide Second Image "   onclick="Button2_Click"/> 
               </telerik:RadPane> 
                <telerik:RadSplitBar ID="NavRadSplitBar" runat="server" CollapseMode="Forward"  /> 
                <telerik:RadPane ID="MapRadPane" runat="server" Scrolling="None"   > 
                             <telerik:RadSplitter ID="MapDivSplitter" runat="server" Orientation="Horizontal" Skin="Vista" LiveResize="true" VisibleDuringInit="false" PanesBorderSize="0"  BorderSize="0"   > 
                             <telerik:RadPane ID="MapPane" runat="server" Scrolling="None" > 
                             <%--<asp:Button ID="btnDummy" runat="server"    Width="200" Height="30" 
                                    style="z-index:200; position:absolute; top:9px; left:179px;"  
                                    onclick="btnDummy_Click"  />--%> 
                                    <asp:Panel  ID="MyPanel" Height="100%" Width="100%" runat="server" ScrollBars="None"
                                <cc1:Map ID="Map1" runat="server" Height="100%" Width="100%" > 
                                </cc1:Map> 
                                </asp:Panel> 
                                 </telerik:RadPane> 
                                <telerik:RadSplitBar ID="MapRadSplitBar" runat="server" CollapseMode="None" /> 
                                <telerik:RadPane ID="DataGridPane" runat="server" MinHeight="100" Height="130" Scrolling="Both" Collapsed="true">  
                                     <%--<cc2:ExcelData  ID="Exceldata" runat="server"  />--%> 
                                </telerik:RadPane> 
                            </telerik:RadSplitter> 
                </telerik:RadPane> 
            </telerik:RadSplitter> 
        </telerik:RadPane> 
    </telerik:RadSplitter> 
    </form> 
</body> 
</html> 
 
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using Telerik.Web.UI; 
using System.Data.SqlClient; 
using System.Data; 
using ThinkGeo.MapSuite.Core; 
using ThinkGeo.MapSuite.WebEdition; 
using System.Drawing; 
 
    public partial class Test : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            if (!IsPostBack) 
                   openMap(); 
           // NextGenProject.OpenProject(); 
        } 
 
        protected void Button1_Click(object sender, EventArgs e) 
        { 
            DataGridPane.Collapsed = false
            DataGridPane.Splitter.SplitBarsSize = 6; 
            MapRadSplitBar.CollapseMode = SplitBarCollapseMode.Both; 
            //Map1.BackColor = Color.Green; 
            //if (DataGridPane.Controls.Count > 0) 
            //    DataGridPane.Controls.Clear(); 
            //Control userControl = LoadControl("~/ElementInfo.ascx"); 
            //DataGridPane.Controls.Add(userControl); 
 
        } 
 
        protected void Button2_Click(object sender, EventArgs e) 
        { 
            DataGridPane.Collapsed = true
            DataGridPane.Splitter.SplitBarsSize = 6; 
            MapRadSplitBar.CollapseMode = SplitBarCollapseMode.None; 
           // Map1.BackColor = Color.Lavender; 
            //if (MapPane.Controls.Count > 0) 
            //    MapPane.Controls.Clear(); 
            //Control userControl = LoadControl("~/Map.ascx"); 
            //MapPane.Controls.Add(userControl); 
 
        } 
 
        void openMap() 
        { 
            string connectionString = "Data Source=MAPCOM071\\SQLEXPRESS2008;Initial Catalog=Lakeland;Integrated Security=True"
            MsSql2008FeatureLayer fsl = new MsSql2008FeatureLayer(connectionString, "msiOverview""ID"); 
            fsl.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = LineStyles.Canal1; 
            fsl.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; 
            fsl.Open(); 
            RectangleShape currentExtent = fsl.GetBoundingBox(); 
            fsl.Close(); 
            fsl.Srid = 0; 
            Map1.StaticOverlay.Layers.Add(fsl); 
            Map1.MapUnit = GeographyUnit.Feet; 
            Map1.CurrentExtent = currentExtent; 
            Map1.BackColor = Color.DarkGoldenrod; 
        } 
 
        protected void btnDummy_Click(object sender, EventArgs e) 
        { 
            Map1.BackColor = Color.Indigo; 
        } 
 
   
    } 
 
 
n displays map on right and buttons on left but with RadAjax Manager my map panel is empty. How can I ajaxify  my application with Ajax Manager. Given below is my code and mark up.

I have another issue with RadAjax manager.  I wanted to  set  "Initiater control" and  "Update control"  using visual builder but I cannot see my user control in visual builder.  Is it normal or  am I missing something?


Thanks
Prava
Maria Ilieva
Telerik team
 answered on 26 May 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?