Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
77 views
Hi,

In a RadGrid I am using RadComboBox for filtering data. Filtering works but the selected value doesn’t persist even though I have set EnableViewState="true" of the RadComboBox. I may be able to make the selection persist by extra coding but is there any simple way (some property) to make the selection persist?

Thanks,
Parimal Modi

Yavor
Telerik team
 answered on 03 Jun 2010
3 answers
99 views
Hi All,

I am using the Telerik RadEditor for the first time. I have to build a control that will help me edit HTML Formatted Files. The RadEditor Control serves the purpose. But I am getting a peculiar error.

The Toolbar of the RadEditor crashes or goes into hiding when Mouse Hovers over the HyperLink Button or I click on the HyperLink Button.

Sometimes IE Script Debugger Throws the an Unspecified Error with number 3484 and the following Script. When I use the Script Debugger it breaks at the following Function. 

GetToolBarPlugin('dbe114f64f5fa38cc4211dc1a04f').Content.d2561485cd324b3d8c1ab4a1bcf7da2f.SetToolsStates(

        editor.getToolState("Bold"),

        editor.getToolState("Italic"),

        editor.getToolState("Underline"),

        editor.getToolState("JustifyLeft"),

        editor.getToolState("JustifyRight"),

        editor.getToolState("JustifyCenter"),

        editor.getToolState("JustifyFull"),

        editor.getToolState("InsertOrderedList"),

        editor.getToolState("InsertUnorderedList"),

        fontNameValue,

        editor.getToolState("FontName"),

        fontSizeValue,

        editor.getToolState("FontSize"),

        editor.getToolState("Superscript"),

        editor.getToolState("Subscript"),

        editor.getToolState("Undo"),

        editor.getToolState("Redo"),

        editor.getToolState("StrikeThrough"),

        linkHref,

        linkTitle,

        linkTarget,

        imgSrc,    

        imgAlt,    

        imgBorder

);



I am not sure but the the Toolbar hiding is a problem.

Amit Patel.


Valentin.Stoychev
Telerik team
 answered on 03 Jun 2010
1 answer
109 views
hi,
i have an error on js  , when  i open a rad window ,
its workin fine but an error exists on browser.

here is a code from debbuger  :

if(b){this.set_status(this._navigateUrl);
}

when "this._navigateUrl" - > "../controls/PhoneSelectorTelerikDialog.aspx?serviceid=1626&manu=61"


i can't find a source of an error.

all my logical flow work fine and the result is good .
can you help me with this problemm ?

thanks , Dima.


Princy
Top achievements
Rank 2
 answered on 03 Jun 2010
1 answer
103 views
HI

I have an issue... Could someone help me with it

I have a grid that has a footer template which shows the sum of price. I have also set the paging property of the grid to true and page size is set to 5. So the total of the first 5 rows are shown in the footer but when i go to the next page the sum of price shown are the sum of the rows in the 2nd page and not the total price (INcluding the first and the second page). Can something be done here to get the total of the 2 pages.I want to take the total of all the pages in the grid and show it in a textbox.

Could somebody give me a solution

Regards
Sharon
Pavlina
Telerik team
 answered on 03 Jun 2010
1 answer
111 views
Hi,

I have a user control that builds a grid programmatic-ally where column definitions are dynamically created and can change during a postback. I am trying to implement frozen columns so that only 5 or so are displayed, and the rest should be available with the scrolling feature. The problem is that when my grid is rendered, only the first 5 columns are displayed and no scrollbar. If I re-size the other columns, then the missing ones start appearing.

I have set the MasterTableView.Width = to the total width of all columns.

My columns are defined in an xml document as such:

<columns>
  <column
    HeaderText="Site"
    FooterText="Total"
    DataTextField="Site"
    DataValueField="Site"
    DataFormatString=""
    Sorting="true"
    Filtering="true"
    Aggregate="None"
    Hyperlinks="false"
    Hidden="false"
    CanHide="true"
    Width="20%"
    />
  <column
    HeaderText="PCount"
    FooterText=""
    DataTextField="PCount"
    DataValueField="PCount"
    DataFormatString=""
    Sorting="true"
    Filtering="true"
    Aggregate="Sum"
    Hyperlinks="false"
    Hidden="false"
    CanHide="true"
    Width="20%"
    />
  <column
    HeaderText="Number of Forms"
    FooterText=""
    DataTextField="FormCount"
    DataValueField="FormCount"
    DataFormatString=""
    Sorting="true"
    Filtering="true"
    Aggregate="Sum"
    Hyperlinks="false"
    Hidden="false"
    CanHide="true"
    Width="20%"
    />
  <column
    HeaderText="No Data"
    FooterText=""
    DataTextField="NoData"
    DataValueField="NoData"
    DataFormatString=""
    Sorting="true"
    Filtering="true"
    Aggregate="Sum"
    Hyperlinks="false"
    Hidden="false"
    CanHide="true"
    Width="20%"
    />
  <column
    HeaderText="Incomplete"
    FooterText=""
    DataTextField="Incomplete"
    DataValueField="Incomplete"
    DataFormatString=""
    Sorting="true"
    Filtering="true"
    Aggregate="Sum"
    Hyperlinks="false"
    Hidden="false"
    CanHide="true"
    Width="20%"
    />
  <column
    HeaderText="Complete"
    FooterText=""
    DataTextField="Complete"
    DataValueField="Complete"
    DataFormatString=""
    Sorting="true"
    Filtering="true"
    Aggregate="Sum"
    Hyperlinks="false"
    Hidden="false"
    CanHide="true"
    Width="20%"
    />
  <column
    HeaderText="Test"
    FooterText=""
    DataTextField="Test"
    DataValueField="Test"
    DataFormatString=""
    Sorting="true"
    Filtering="true"
    Aggregate="None"
    Hyperlinks="true"
    Hidden="false"
    CanHide="true"
    Width="10%"
    />
  <column
    HeaderText="Column1"
    FooterText=""
    DataTextField="Column1"
    DataValueField="Column1"
    DataFormatString=""
    Sorting="true"
    Filtering="true"
    Aggregate="None"
    Hyperlinks="false"
    Hidden="false"
    CanHide="true"
    Width="10%"/>
  <column
    HeaderText="Column2"
    FooterText=""
    DataTextField="Column2"
    DataValueField="Column2"
    DataFormatString=""
    Sorting="true"
    Filtering="true"
    Aggregate="None"
    Hyperlinks="false"
    Hidden="false"
    CanHide="true"
    Width="10%"
    />
  <column
  HeaderText="Column3"
  FooterText=""
  DataTextField="Column3"
  DataValueField="Column3"
  DataFormatString=""
  Sorting="true"
  Filtering="true"
  Aggregate="None"
  Hyperlinks="false"
  Hidden="false"
  CanHide="true"
  Width="10%"
  />
  <column
    HeaderText="Column4"
    FooterText=""
    DataTextField="Column4"
    DataValueField="Column4"
    DataFormatString=""
    Sorting="true"
    Filtering="true"
    Aggregate="None"
    Hyperlinks="false"
    Hidden="false"
    CanHide="true"
    Width="10%"
    />
</columns>

My grid is defined programmatically as such:


private void DefineGridStructure() 
        { 
            // general 
            this.grid = new RadGrid(); 
            grid.ID = "Grid1"
            grid.DataMember = DataMember; 
            grid.MasterTableView.AutoGenerateColumns = false
            if (!MasterKeyField.Equals(String.Empty)) 
                grid.MasterTableView.DataKeyNames = new string[] { MasterKeyField };             
 
            // formatting 
            grid.Width = Unit.Percentage(100); 
            grid.MasterTableView.Width = Unit.Percentage(170); 
            grid.Skin = "Outlook";                     
            grid.MasterTableView.TableLayout = GridTableLayout.Fixed;    
             
            // column resizing 
            grid.ClientSettings.Resizing.AllowColumnResize = AllowColumnResizing; 
 
            // scrolling 
            grid.ClientSettings.Scrolling.AllowScroll = AllowScroll; 
            grid.ClientSettings.Scrolling.UseStaticHeaders = UseStaticHeaders; 
            grid.ClientSettings.ClientEvents.OnGridCreated = "GridCreated"
            grid.ClientSettings.Scrolling.FrozenColumnsCount = 5;             
 
            // sorting 
            grid.MasterTableView.AllowMultiColumnSorting = AllowMultiColumnSorting; 
            grid.AllowSorting = AllowSorting; 
 
            // header context menu             
            grid.MasterTableView.EnableHeaderContextMenu = AllowHeaderContextMenu;             
 
            // viewstate 
            grid.EnableViewState = true
            grid.MasterTableView.EnableColumnsViewState = false
 
            // paging 
            grid.AllowPaging = AllowPaging; 
            grid.PageSize = 20; 
            grid.MasterTableView.PagerStyle.AlwaysVisible = AllowPaging; 
            grid.MasterTableView.PagerStyle.Position = GridPagerPosition.Bottom;             
            grid.MasterTableView.PagerStyle.Mode = GridPagerMode.NextPrevNumericAndAdvanced;             
 
            // filtering 
            grid.MasterTableView.AllowFilteringByColumn = true
            grid.FilterMenu.ExpandAnimation.Type = AnimationType.OutQuad; 
            grid.FilterMenu.ExpandAnimation.Duration = 2; 
 
            // hierarchy load mode 
            grid.MasterTableView.HierarchyLoadMode = GridChildLoadMode.ServerOnDemand; 
 
            // export settings             
            grid.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.None;                    
            grid.ExportSettings.ExportOnlyData = true
            grid.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML; 
            grid.ExportSettings.IgnorePaging = true
            grid.ExportSettings.OpenInNewWindow = true;             
        } 

Please help  with this issue.

Thanks,
Rick

Pavlina
Telerik team
 answered on 03 Jun 2010
1 answer
96 views
Hi, I am trying to open an inline window such as the open / edit inline window.

What code do I have to place in the client side JavaScript to open an inline window. (I have already created user control form)

I will also need to Bind some of the appointments attributes, or pass them as a query string.

Thanks.  
T. Tsonev
Telerik team
 answered on 03 Jun 2010
3 answers
144 views
Hi,

How to automatically delete the images in TempImageFolder? Is there any setting for it?

Here is the code that i used. But the images still keep in the TempImageFolder after few days.
  <telerik:RadChart ID="RadChart_Overall" runat="server" Width="450px"    
            IntelligentLabelsEnabled="True" DefaultType="Pie" AutoLayout="True" AutoTextWrap="True" Height="350px" TempImagesFolder="~/images/articles" UseSession="False" OnItemDataBound="RadChart_Overall_ItemDataBound" SeriesPalette="MyPalette">  
             <Series> 
                <telerik:ChartSeries Name="Series" Type="Pie" DataYColumn="cnt">  
                  <appearance centerxoffset="-50" barwidthpercent="5">  
                        <textappearance autotextwrap="True" textproperties-color="Black">  
                        </textappearance>   
                    </appearance> 
                </telerik:ChartSeries> 
            </Series> 
              <CustomPalettes> 
                                <telerik:Palette Name="MyPalette">  
                                    <Items> 
                                     <telerik:PaletteItem MainColor="DarkGreen" SecondColor="DarkGreen" /> 
                                       <telerik:PaletteItem MainColor="LightBlue" SecondColor="LightBlue" /> 
                                        <telerik:PaletteItem MainColor="Crimson"  SecondColor="Crimson" /> 
                                        <telerik:PaletteItem MainColor="DarkOrange" SecondColor="DarkOrange"  /> 
                                         <telerik:PaletteItem MainColor="MediumPurple" SecondColor="MediumPurple" /> 
                                          <telerik:PaletteItem MainColor="Yellow" SecondColor="Yellow" /> 
                                          <telerik:PaletteItem MainColor="PeachPuff" SecondColor="PeachPuff" /> 
                                          <telerik:PaletteItem MainColor="Brown" SecondColor="white" /> 
                                            
                                    </Items> 
                                </telerik:Palette> 
                            </CustomPalettes> 
                                <charttitle> 
                <textblock> 
                    <appearance textproperties-color="Black" textproperties-font="Arial, 10pt,style=bold">  
                    </appearance> 
                </textblock> 
                <appearance position-alignedposition="TopLeft" Dimensions-Width="450px">  
                </appearance> 
            </charttitle> 
            <PlotArea> 
        <xaxis> 
               <appearance color="76, 255, 255, 255" majortick-color="179, 255, 255, 255">  
                   <majorgridlines color="179, 255, 255, 255" width="2" /> 
                   <textappearance textproperties-color="Black">  
                   </textappearance> 
               </appearance> 
               <axislabel> 
                   <appearance dimensions-paddings="1px, 1px, 10%, 1px">  
                   </appearance> 
                   <textblock> 
                       <appearance textproperties-color="Black">  
                       </appearance> 
                   </textblock> 
               </axislabel> 
           </xaxis> 
             <Appearance Border-Width="0" Dimensions-AutoSize="true">  
            <fillstyle maincolor="" secondcolor="Transparent">  
            </fillstyle> 
      
             
             </Appearance> 
       </PlotArea> 
         
        <legend visible="true">  
              <appearance visible="true"   
                    location="InsidePlotArea" dimensions-margins="2px, 2px, 2px, 3px"   
                    position-alignedposition="Right" position-auto="True" > 
                   <itemtextappearance autotextwrap="True" textproperties-color="Black"></itemtextappearance> 
                    <fillstyle maincolor="37, 255, 255, 255">  
                    </fillstyle> 
                    <border color="White" /> 
                </appearance> 
                <textblock><appearance autotextwrap="True" position-alignedposition="Top"   
                    textproperties-color="220, 158, 119">  
                </appearance></textblock>  
            </legend> 
              
            </telerik:RadChart> 


Vladimir Milev
Telerik team
 answered on 03 Jun 2010
1 answer
110 views
i have a Combobox with this item template:

'Format Code Block'
<
ItemTemplate

    <table

         <tr

             <td><%# DataBinder.Eval(Container, "Attributes['contact']")%></td

             <td>(<%# DataBinder.Eval(Container, "Attributes['city']")%>)</td

         </tr>

    </table

</ItemTemplate>

 

 

 

is it possible to apply sorting on contact or city in code behind?
ie something like :

1- RadComboBox1.Items.Sort('contact');
2-RadComboBox1.Items.Sort('city');

 

so the 1st sorts the combobox according to contact whlie the 2nd sorts according to city?
Shinu
Top achievements
Rank 2
 answered on 03 Jun 2010
3 answers
141 views
Hello guys.

I have a grid with a GridDropDownColumn and a GridTemplateColumn with a upload control in editItem.

This grid is in a RadAjaxPanel, and, in edit mode, my dropdown is like disabled and the upload control doesn't appear.

But, if I remove the grid from RadAjaxPanel, the controls works fine.

Here is my code:
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"
            </telerik:RadAjaxLoadingPanel> 
            <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"
    <telerik:RadGrid ID="gdvPecas" runat="server" AllowPaging="True"  
        AllowSorting="True" AutoGenerateColumns="False" GridLines="None"  
        Width="70%" onneeddatasource="gdvPecas_NeedDataSource"  
                    onitemdatabound="gdvPecas_ItemDataBound"  
        onupdatecommand="gdvPecas_UpdateCommand"
        <ClientSettings EnableRowHoverStyle="true" /> 
        <HeaderContextMenu EnableAutoScroll="True"
        </HeaderContextMenu> 
        <MasterTableView CommandItemDisplay="None"  
            CommandItemSettings-AddNewRecordText="Adicionar nova peça"  
            DataKeyNames="pro_int_codigo"  
            GridLines="None"  
            NoMasterRecordsText="Nenhuma peça cadastrada"  
            Width="100%"
            <CommandItemSettings AddNewRecordText="Adicionar nova peça"  
                RefreshText="Atualizar" /> 
            <Columns> 
                <telerik:GridBoundColumn DataField="pro_int_codigo" ReadOnly="True"  
                    UniqueName="pro_int_codigo" Visible="false"
                </telerik:GridBoundColumn>                 
                <telerik:GridTemplateColumn HeaderStyle-HorizontalAlign="Center"  
                    HeaderText="Foto" ItemStyle-HorizontalAlign="Center"  
                    UniqueName="pro_str_thumbnail"
                    <EditItemTemplate> 
                        <telerik:RadUpload ID="uplThumb" runat="server" ControlObjectsVisibility="None"
                        </telerik:RadUpload> 
                    </EditItemTemplate> 
                    <ItemTemplate> 
                        <asp:Image ID="imgThumb" runat="server"  
                            ImageUrl="../Content/Images/imagem_off_tb.png" /> 
                    </ItemTemplate> 
                    <HeaderStyle HorizontalAlign="Center" /> 
                    <ItemStyle HorizontalAlign="Center" /> 
                </telerik:GridTemplateColumn>                                 
                <telerik:GridEditCommandColumn ButtonType="ImageButton" ItemStyle-Width="10px"  
                    UniqueName="EditCommandColumn"
                    <ItemStyle Width="10px" /> 
                </telerik:GridEditCommandColumn> 
                <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete"  
                    ConfirmText="Excluir esta peça?" ItemStyle-Width="10px" Text="Excluir"  
                    UniqueName="Delete"
                    <ItemStyle Width="10px" /> 
                </telerik:GridButtonColumn> 
            </Columns> 
            <EditFormSettings CaptionDataField="pro_int_codigo"  
                CaptionFormatString="editando..." ColumnNumber="2"
                <EditColumn CancelText="Cancelar" InsertText="Salvar"  
                    UniqueName="EditCommandColumn1" UpdateText="Atualizar registro"
                </EditColumn> 
                <FormStyle BackColor="#EEF2EA" Width="100%" /> 
                <FormTableStyle CellPadding="2" CellSpacing="0" CssClass="module"  
                    GridLines="Horizontal" Height="110px" Width="100%" /> 
                <FormMainTableStyle CellPadding="3" CellSpacing="0" Width="100%" /> 
                <FormCaptionStyle CssClass="EditFormHeader" /> 
                <FormTableItemStyle Wrap="False" /> 
                <FormTableAlternatingItemStyle Wrap="False" /> 
                <FormTableButtonRowStyle CssClass="EditFormButtonRow" HorizontalAlign="Right" /> 
            </EditFormSettings> 
        </MasterTableView> 
    </telerik:RadGrid> 
     
    </telerik:RadAjaxPanel> 

What I'm doing wrong?

Regards.
Pavlina
Telerik team
 answered on 03 Jun 2010
1 answer
773 views
I deployed a web application which uses the RadEditor (Telerik.Web.UI 2009.3.1314.35).

When I deploy using a Web Deployment project (precompiled in one big DLL), the localization doesn't work - there is always the English shown the the end users. When I do a "normal" deploy (with aspx, ascx etc.), it works in all available languages.

The bin folder contains the app_globalresources.compiled file and it seems that the .resx are compiled into satellite assemblies in the localized folders (de-DE, it-IT etc.) with the name of the precompiled big all-in-one assembly I chose in the deployment project.

Is there a way to make this work for deployment projects?

Thanks,
Stefan
Rumen
Telerik team
 answered on 03 Jun 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?