Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
152 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
118 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
151 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
789 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
1 answer
77 views

hi

this is srikanth

When I move my mouse around on the grid there is a vertical scroll bar which appears and disappears very fast.

<telerik:RadGrid ID="RG" Skin="WebBlue" runat="server" Width="100%" AutoGenerateColumns="False"
                                                            EnableTheming="True" OnItemCreated="RG_ItemCreated" OnSelectedIndexChanged="RG_SelectedIndexChanged"
                                                            AllowMultiRowSelection="True" OnItemDataBound="RG_ItemDataBound" AllowSorting="true"
                                                            OnPreRender="RG_PreRender" OnNeedDataSource="RG_NeedDataSource">
                                                            <MasterTableView HierarchyLoadMode="Client" TableLayout=fixed  ClientDataKeyNames="InvPrimaryId"
                                                                AllowSorting="true" Width="800px">
                                                                <NestedViewTemplate>
                                                                    <asp:Panel ID="pnlnestedview" runat="server">
                                                                        <table ondblclick="RadGrid1_OnRowDblClick()">
                                                                            <td style="width: 2px">
                                                                            </td>
                                                                            <td>
                                                                                <table class="CustomGridTableBorder" width="650px" style="background: window">
                                                                                    <tr>
                                                                                        <td align="right" class="CustomGridtextboxlabel">
                                                                                            <asp:Label ID="LabelH1" runat="server"></asp:Label>
                                                                                        </td>
                                                                                        <td align="left" class="CustomGridtextboxlabelleft">
                                                                                            <asp:Label ID="LabelD1" runat="server"></asp:Label>
                                                                                        </td>
                                                                                        <td>
                                                                                        </td>
                                                                                        <td align="right" class="CustomGridtextboxlabel">
                                                                                            <asp:Label ID="LabelH2" runat="server"></asp:Label>
                                                                                        </td>
                                                                                        <td align="left" class="CustomGridtextboxlabelleft">
                                                                                            <asp:Label ID="LabelD2" runat="server"></asp:Label>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td align="right" class="CustomGridtextboxlabel">
                                                                                            <asp:Label ID="LabelH3" runat="server"></asp:Label>
                                                                                        </td>
                                                                                        <td align="left" class="CustomGridtextboxlabelleft">
                                                                                            <asp:Label ID="LabelD3" runat="server"></asp:Label>
                                                                                        </td>
                                                                                        <td>
                                                                                        </td>
                                                                                        <td align="right" class="CustomGridtextboxlabel">
                                                                                            <asp:Label ID="LabelH4" runat="server"></asp:Label>
                                                                                        </td>
                                                                                        <td align="left" class="CustomGridtextboxlabelleft">
                                                                                            <asp:Label ID="LabelD4" runat="server"></asp:Label>
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td align="right" class="CustomGridtextboxlabel">
                                                                                            <asp:Label ID="LabelH5" runat="server"></asp:Label>
                                                                                        </td>
                                                                                        <td align="left" class="CustomGridtextboxlabelleft">
                                                                                            <asp:Label ID="LabelD5" runat="server"></asp:Label>
                                                                                        </td>
                                                                                        <td>
                                                                                        </td>
                                                                                        <td align="right" class="CustomGridtextboxlabel">
                                                                                            <asp:Label ID="LabelH6" runat="server"></asp:Label>
                                                                                        </td>
                                                                                        <td align="left" class="CustomGridtextboxlabelleft">
                                                                                            <asp:Label ID="LabelD6" runat="server"></asp:Label>
                                                                                        </td>
                                                                                    </tr>
                                                                                </table>
                                                                            </td>
                                                                        </table>
                                                                    </asp:Panel>
                                                                </NestedViewTemplate>
                                                                <ExpandCollapseColumn Visible="True">
                                                                </ExpandCollapseColumn>
                                                                <PagerStyle AlwaysVisible="True" />
                                                                <RowIndicatorColumn Visible="true">
                                                                </RowIndicatorColumn>
                                                            </MasterTableView>
                                                            <PagerStyle AlwaysVisible="True" />
                                                            <HeaderStyle CssClass="RadGridHeader" />
                                                            <ItemStyle CssClass="RadGridItem" />
                                                            <AlternatingItemStyle CssClass="RadGridAlterNativeItem" />
                                                            <ClientSettings>
                                                                <ClientEvents OnHierarchyExpanding="RadGrid1_HierarchyExpanding" OnRowSelecting="RadGrid1_OnRowSelecting"
                                                                    OnRowDeselecting="RadGrid1_OnRowDeselecting" OnRowDblClick="RadGrid1_OnRowDblClick" OnGridCreated="GridCreated"   />
                                                                <Selecting AllowRowSelect="True" />
                                                                <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" FrozenColumnsCount="1" >
                                                                </Scrolling>
                                                            </ClientSettings>
                                                        </telerik:RadGrid>


thanks and regards
srikanth.n


Pavlina
Telerik team
 answered on 03 Jun 2010
1 answer
161 views
I've got a sliding pane on a page which contains a search box and radGrid.  The user can carry out a search and when they select an entry from the grid I fire the SelectedIndexChanged event to populate the main content pane with the results.

What I would like to do is once the results are populated is then automatically close the sliding pane from the code behind but I cannot find an option to do this - does a method exist?

Cheers
Cliff
Tsvetie
Telerik team
 answered on 03 Jun 2010
1 answer
92 views
Hi,

Somehow i do not get the following scenario to work:

Within a RadPane I have 2 usercontrols. Each usercontrol contains a RadAjaxPanel that surrounds a RadGrid and a RadAjaxLoadingPanel that shows loading progress. Based on a client-side javascript event  one or the other RadAjaxPanel's ajaxRequest methods will be called and the enclosed grid will be loaded with data from a database.

The problem is that only the first defined usercontrol will show a loading panel and displays the data. How can I solve this problem ?

page code containing the usercontrol definitions:

 

 

 

<telerik:RadPane ID="TelerikSearch_Level2BottomRadPane" runat="server" Scrolling="None">

 

 

 

<Control:TelerikDocGrid runat="server" Id = "TelerikDocGrid_Control"/>

 

 

 

<Control:TelerikCompGrid runat="server" Id = "TelerikCompGrid_Control" />

 

 

 

</telerik:RadPane>


code TelerikDocGrid user control:

    function TelerikDocGrid_UpdateGrid(e) {  
 
        //create ajaxrequest argument  
          
        var args = "CN_CLASS_CONCATENATE=" + e.CN_CLASS_CONCATENATE;  
        args += "#RelatedProjectObjectId=" + e.related_project_object_id;  
        args += "#RelatedProjectObjectType=" + e.related_project_object_type;  
        args += "#RevisionFilter=" + e.RevisionFilter;  
        if (e.Id != "") args += "#Id=" + e.Id;  
        if (e.Description != "") args += "#Description=" + e.Description;  
        if (e.CN_AUTHOR != "") args += "#CN_AUTHOR=" + e.CN_AUTHOR;  
        if (e.CN_CLIENT_DOCUMENT_ID != "") args += "#CN_CLIENT_DOCUMENT_ID=" + e.CN_CLIENT_DOCUMENT_ID;  
        if (e.CN_THIRD_PARTY_DOCUMENT_ID != "") args += "#CN_THIRD_PARTY_DOCUMENT_ID=" + e.CN_THIRD_PARTY_DOCUMENT_ID;  
        if (e.CN_AUTHOR_EXTERNAL != "") args += "#CN_AUTHOR_EXTERNAL=" + e.CN_AUTHOR_EXTERNAL;  
 
        var radpanel = $find("<%= TelerikDocGrid_RadAjaxPanel.ClientID %>");  
        radpanel.ajaxRequest(args);  
    }  
 
    function TelerikDocGrid_RowSelected(sender, eventArgs) {  
          
        //debugger   
 
        //var grid = sender;  
        //var MasterTable = grid.get_masterTableView();  
        //var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];  
        //var cell = MasterTable.getCellByColumnUniqueName(row, "column3");  
        //alert(cell.innerHTML); //here cell.innerHTML holds the value of the cell  
          
        //view document  
 
        var url = eventArgs.getDataKeyValue("DocumentViewUrl");  
        window.open(url);  
    }  
 
    function TelerikDocGrid_RowContextMenu(sender, eventArgs) {  
          
        currentDocumentViewUrl = eventArgs.getDataKeyValue("DocumentViewUrl");  
        currentDocumentDownloadUrl = eventArgs.getDataKeyValue("DocumentDownloadUrl");  
 
        var menu = $find("<%= TelerikDocGrid_Context_RadMenu.ClientID %>");  
        var evt = eventArgs.get_domEvent();  
        menu.show(evt);  
     
        //var index = eventArgs.get_itemIndexHierarchical();  
        //document.getElementById("radGridClickedRowIndex").value = index;  
 
        //sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index].get_element(), true);  
        evt.cancelBubble = true;  
        evt.returnValue = false;  
        if (evt.stopPropagation) {  
            evt.stopPropagation();  
            evt.preventDefault();  
        }  
    }  
 
 
    function TelerikDocGrid_RowContextMenu_ItemClicked(sender, eventArgs) {  
 
        var item = eventArgs.get_item();  
        var action = item.get_attributes().getAttribute("Action");  
 
        switch (action) {  
 
            case "view":  
                window.open(currentDocumentViewUrl);  
                break;  
            case "download":  
                window.open(currentDocumentDownloadUrl);  
        }  
    }  
 
</script> 
 
</telerik:RadCodeBlock> 
 
<telerik:RadAjaxLoadingPanel ID="TelerikDocGrid_RadAjaxLoadingPanel" runat="server" Skin="Default">  
</telerik:RadAjaxLoadingPanel> 
 
<telerik:RadAjaxPanel ID="TelerikDocGrid_RadAjaxPanel" runat="server"   
Height="100%" Width="100%" OnAjaxRequest="TelerikDocGrid_AjaxRequest"   
LoadingPanelID="TelerikDocGrid_RadAjaxLoadingPanel">  
 
    <telerik:RadGrid ID="TelerikDocGrid_RadGrid" runat="server" AllowSorting="True"   
        GridLines="None" Width="100%" Height="100%"   
        OnNeedDataSource="TelerikDocGrid_RadGrid_NeedDataSource" ShowFooter="True" 
        EnableEmbeddedSkins="true">  
        <ClientSettings Scrolling-AllowScroll="true" Scrolling-UseStaticHeaders="true"   
        EnableRowHoverStyle="true" EnablePostBackOnRowClick="false">  
            <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
            <Selecting AllowRowSelect="true" /> 
            <ClientEvents OnRowSelected="TelerikDocGrid_RowSelected" OnRowContextMenu="TelerikDocGrid_RowContextMenu"/>  
        </ClientSettings> 
        <MasterTableView AutoGenerateColumns="False" ShowFooter="True"   
        TableLayout="Fixed" ClientDataKeyNames="DocumentViewUrl,DocumentDownloadUrl">  
            <Columns> 
                <telerik:GridBoundColumn DataField="ClassName"   
                    HeaderText="Document" UniqueName="column3" Visible="false">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="TypeIconUrl"   
                    HeaderText="Document" UniqueName="column4"  Visible="false">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="StateText"   
                    HeaderText="Document" UniqueName="column5"  Visible="false">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="StateIconUrl"   
                    HeaderText="Document" UniqueName="column6"  Visible="false">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Author"   
                    HeaderText="Owner" UniqueName="column8"  Visible="false">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Department"   
                    HeaderText="Department" UniqueName="column9"  Visible="false">  
                </telerik:GridBoundColumn> 
                <telerik:GridTemplateColumn HeaderText="Document" UniqueName="TemplateColumn"   
                DataField="DocumentName" Aggregate="Count" FooterText="Number of documents found: "   
                SortExpression="DocumentName" ItemStyle-Wrap="false">  
                    <ItemTemplate> 
                        <asp:Image ID="Image1" runat="server" AlternateText='<%# Eval("ClassName") %>'   
                        ImageUrl='<%# Eval("TypeIconUrl") %>' ToolTip='<%# Eval("ClassName") %>' /> 
                        <asp:Image ID="Image2" runat="server" AlternateText='<%# Eval("StateText") %>'   
                        ImageUrl='<%# Eval("StateIconUrl") %>' ToolTip='<%# Eval("StateText") %>' />                                         
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("DocumentName") %>'></asp:Label> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridBoundColumn AutoPostBackOnFilter="True" DataField="Description"   
                    HeaderText="Description" UniqueName="column1">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn AutoPostBackOnFilter="True" DataField="MODIFICATION_DATE"   
                    HeaderText="Modified" UniqueName="column2" DataFormatString="{0:d}"   
                    DataType="System.DateTime" HeaderStyle-Width="100px"   
                    ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn AutoPostBackOnFilter="True" DataField="CN_CLASS_LEVEL_LEAF"   
                    HeaderText="Classification" UniqueName="column" Visible="true">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn AutoPostBackOnFilter="True" DataField="ViState"   
                    HeaderText="VI State" UniqueName="column7"  DataType="System.String"   
                    HeaderStyle-Width="100px" ItemStyle-HorizontalAlign="Center"   
                    HeaderStyle-HorizontalAlign="Center">  
                </telerik:GridBoundColumn> 
            </Columns> 
            <NestedViewTemplate> 
                <div class="document-details">  
                    <ul> 
                        <li><label>Owner:</label><%# Eval("Author") %></li>  
                        <li><label>Department:</label><%# Eval("Department") %></li>  
                    </ul> 
                </div> 
            </NestedViewTemplate> 
        </MasterTableView> 
        <GroupingSettings  CaseSensitive="false"/>  
    </telerik:RadGrid> 
    <telerik:RadContextMenu ID="TelerikDocGrid_Context_RadMenu" runat="server"   
    Skin="Default" EnableRoundedCorners="true" OnClientItemClicked="TelerikDocGrid_RowContextMenu_ItemClicked">  
        <Items> 
            <telerik:RadMenuItem Text="View document" Action="view"></telerik:RadMenuItem> 
            <telerik:RadMenuItem Text="Download document" Action="download"></telerik:RadMenuItem> 
        </Items> 
    </telerik:RadContextMenu> 
</telerik:RadAjaxPanel> 

The code concerning the TelerikCompGrid user control is more or less the same as the TelerikDocGrid user control.

This one is bugging me for some time. Help is much appreciated.
Maria Ilieva
Telerik team
 answered on 03 Jun 2010
1 answer
113 views
Hi,
I think I've a problem with some styles.
The context menu of the scheduler control is not appearing at the position it should. If I right click on an event, the menu is appearing at the very top of the page.
The attached screen shots show that during the load of the the page, the items of the context menu appear very short beneath the scheduler.
<div class="panelContainer" runat="server"> 
    <%--<telerik:RadFormDecorator ID="radFormDecorator" runat="server" DecoratedControls="All" />--%> 
    <telerik:RadAjaxLoadingPanel ID="LoadingPanel" runat="server" Skin="Windows7" /> 
    <telerik:RadAjaxPanel ID="RadAjaxPanel" runat="server" LoadingPanelID="LoadingPanel" > 
        <%--<telerik:RadSkinManager ID="RadSkinManager" Runat="server" Skin="Default" ShowChooser="True" Enabled="true"> 
            <TargetControls> 
                <telerik:TargetControl ControlID="RadAjaxPanel" Enabled="false" Skin="Default" /> 
                <telerik:TargetControl ControlID="LoadingPanel" Enabled="true" Skin="Windows7" /> 
            </TargetControls> 
        </telerik:RadSkinManager>--%> 
        <div class="tabsContainer" ID="TabsContainer" runat="server"> 
            <telerik:RadDockLayout ID="RadDockLayout" runat="server"> 
                <telerik:RadDockZone ID="RadDockZone" Runat="server" MinHeight="420px" Width="900px"> 
... 
</telerik:RadDockZone> 
            </telerik:RadDockLayout> 
      </div> 
      <div class="contentContainer"> 
         <div class="panelContent"> 
                <asp:Panel ID="Panel1" runat="server" Style="font: normal 12px Arial, Verdana, Sans-serif; color: #a6a896;"></asp:Panel> 
         </div> 
      </div> 
      <div class="controlsContainer"> 
            <asp:Label CssClass="ms-error" ID="ShowException" runat="server" /> 
      </div> 
    </telerik:RadAjaxPanel> 
</div> 

Additionally the selected style from the skinmanager is not applied to the loadingpanel, if I comment in the skinmanager.
Do you have any idea where I might have an error? The version I use is 2010.1.519.35

Thank you
Greetings from Germany
René
T. Tsonev
Telerik team
 answered on 03 Jun 2010
3 answers
115 views
I have tried to follow your remval instructions but no matter what I do after retracting the solution, I get the following error when loading the front page :

An error occurred during the processing of . Could not load file or assembly 'RadEditorSharePoint, Version=4.5.3.0.........

I have tried editing the publishing template that does not seem to help, please advise!

Stanimir
Telerik team
 answered on 03 Jun 2010
1 answer
132 views
I am trying to implement drag and drop functionality for a single RadGrid. My RadGrid is bound as follows:

       private void RetrieveData() 
        { 
            ////first retrieve projects 
            List<UIProject> projects = RetrieveProjects(); 
 
            projects.ForEach(a => 
            { 
                a.Features = (from u in Helper.DataContextFromWeb.MagUserstories 
                              where u.MagProjectId == a.ProjectId && u.Statuscode == 1 
                              orderby u.MagTitle 
                              select new UIFeature 
                              { 
                                  FeatureId = u.MagUserstoryId, 
                                  FeatureName = u.MagTitle 
                              }).ToList(); 
 
                a.Features.ForEach(b => 
                { 
                    b.Tasks = (from t in Helper.DataContextFromWeb.MagTasks 
                               where t.MagUserStoryId == b.FeatureId && t.Statuscode == 1 
                               orderby t.MagTitle 
                               select new UITask 
                               { 
                                   TaskName = t.MagTitle, 
                                   ActualHours = t.MagActualTime, 
                                   EstimatedHours = t.MagEstimatedTime, 
                                   //Status =  
                                   //Owner =  
                               }).ToList(); 
                }); 
            }); 
 
            BindMasterBackLog(projects); 
        } 
 
        private void BindMasterBackLog(List<UIProject> projects) 
        { 
            this.masterbacklog.DataSource = projects; 
            this.masterbacklog.DataMember = MagProject.Fields.MagProjectId; 
            this.masterbacklog.DataBind(); 
        } 
Data is retrieved from Microsoft Dynamics CRM and displayed in the grid correctly. Now, I am trying to implement the server-side onRowDrop event handler. The line below is giving me an "Index was out of range. Must be non-negative and less than the size of the collection" error. Could this be due to the way that I have bound the RadGrid? Please help.

UIProject project = RetrieveProject(projects, (Guid)e.DestDataItem.GetDataKeyValue("ProjectId")); 



Radoslav
Telerik team
 answered on 03 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?