Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
129 views
HI,
    I am using Telerik rad grid.Problem in my case is when I use Grid Calculated column,while doing sorting or paging its giving an error like this "

System.ArgumentException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Message : An item with the same key has already been added."
.I have tried a lot to solve this issue ,But all gone in vain.
Atlast I have commented all the Gridcalculated column codes.Then grid works fine.Problem is only with the grid calculated column.
I am using master pagein my webpage.

Please Help me to solve this issue,it very urgent.

Nikolay Rusev
Telerik team
 answered on 07 Apr 2010
1 answer
149 views
Hi,

I have a error message when generating my web page dynamically. The error message is : "Microsoft JScript runtime error: Object doesn't support this property or method".

In the web page i'm adding my RadDateTimePicker, I have a RadCalendar and a RadTimeView.

Once my control is created, I had it to the controls in my page and this is where I get the error. BTW, I have don't have any problem if I change the control to Telerik.Web.UI.RadDatePicker.

objReturn = New Telerik.Web.UI.RadDateTimePicker 
 
With DirectCast(objReturn, Telerik.Web.UI.RadDateTimePicker) 
    .AutoPostBack = True 
    .CssClass = v_drControl("cCss_class").ToString 
    .SharedCalendarID = "calShared" '<-- The name of my RadCalendar
    .SharedTimeViewID = "tvShared" '<-- The name of my RadTimeView
    .Skin = "CHCA" 
    .EnableEmbeddedSkins = False 
    .TabIndex = CType(v_intTabIndex, Short) 
End With 

Mira
Telerik team
 answered on 07 Apr 2010
6 answers
172 views

Dear Telerik,

            I am facing big blow in my applications performance with NestedGrid.

I am having the parent grid and it has four nested grids. Each nested grid placed in each tab section with the help of multipage.

 

As per the Telerik direction I used the Parentgrid’s pre_render event to bind all the child or nested grids as the code given below

 

 

protected void ParentGrid_PreRender(object sender, EventArgs e)  
{  
    foreach (GridDataItem item in ParentGrid.MasterTableView.Items)  
          {                
                if (item.Expanded)  
                {  
                  //foreach (GridNestedViewItem item1 in RadFirmGrid.MasterTableView.GetItems(GridItemType.NestedView))  
                  //{  
                    GridNestedViewItem item1 = RadFirmGrid.MasterTableView.GetItems(GridItemType.NestedView)[item.ItemIndex] as GridNestedViewItem;  
                      
                    // Binding Cutomer grid      
                    RadGrid Child1 = (RadGrid)item1.FindControl("Customer");  
          
                    // Binding Products grid      
                    RadGrid Child2 = (RadGrid)item1.FindControl("Products");  
 

 

But my application seemed is loading very slowly for each time the operation of grids or child grids Edit, grouping/sorting operation has been done. Because it calls parent grids pre_render event, then binds all the child grids again.

 

Note: Based on the above mentioned code logic, the grids expanded loops to be done as much of the time number of items I expanded. So again binding occurs as much time.

 

So how can I make my application more optimistic? Whether it would be ok if I bind the nested grid for each respective tab is selected. if i did that will the performance be ok. If so how can I achieve it?

So please direct me to solve the issue of performance with some sample of code.

 

Help would be appreciated..

 

Regards,

John            
John John
Top achievements
Rank 1
 answered on 07 Apr 2010
3 answers
773 views
hi,

I want to hide Horizontal Scrollbar when my window is opened.

I have set some stylesheet properties in body tag like style="overflow-x: hidden; " but still my window is showing horizontal scrollbar !

I have noticed that when vertical scroll bar is getting visible then only my horizontal scroll bar is displayed. I dont want to show horizontal scrollbar. And even my horizontal things are not getting overflow !

Please provide me the solution for this.

Thanks
Shinu
Top achievements
Rank 2
 answered on 07 Apr 2010
10 answers
225 views
I want the menu to have images instead of text. I already have the images. I want it to be a vertical menu that when the mouse hovers over a root menu item, the sub menu items expand to the right. All menu items would be images that I provide.

Part of the images include the text of the menu item (rather than having the text written out, it is part of the image).

When I add the image as ImageUrl it displays the image over top where the text would be, but still has a space for the text even when the text is left blank. The sub menu also appears under the root item rather than to the right of it.

Is it possible to change a Telerik Menu to do what I want?
Peter
Telerik team
 answered on 07 Apr 2010
3 answers
107 views
How can I open a radwindow after an insert, delete or edit operation?  If need to show confirmation that the operation succeeded.  I would also like to show a dialog after an insert asking the user if they want to do another insert operation without going back to the grid and clicking the add button.


I've tried this

RadWindowManager1.Windows[0].VisibleOnPageLoad = true;

But it doesn't work.

Thanks



Erik Kipp
Top achievements
Rank 1
 answered on 07 Apr 2010
1 answer
135 views
I am using Rad Scheduler on my page. When i load the page, Scheduler is only showing 10% of width for few seconds. Then auto expend to 100%.
It is working fine on my local even on server. But some of the client machine is not working. It is only showing 10% of width.  I have put 100% width in Design view but still showing 10%..

Please let me know.

Thanks you for you help.


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FXRateSummary.aspx.cs" Inherits="DCCPP.Currency.Views.FXRateSummary" 
    Title="Global Refund DCCPP - Currency - FX Rate Summary" MasterPageFile="~/Shared/DCCPPMaster.master" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<asp:Content ID="content" ContentPlaceHolderID="DCCPPMasterContent" runat="Server"> 
     
 
    <script  type="text/javascript"> 
         
        function OnClientTimeSlotClick(sender, eventArgs) { 
            //alert(eventArgs.get_time());eventArgs.get_time().toLocaleString()); 
            var dt = new Date(); 
            var dt2 = new Date(); 
            dt2 = eventArgs.get_time(); 
             
 
            if (dt2 > dt) { 
                alert("You can't not enter FXRate for future date."); 
                return false; 
            }  
            window.radopen("../Currency/FxRateEntry.aspx?Date=" + eventArgs.get_time().toLocaleString(), "dwFxRateEntry"); 
 
            return false; 
        } 
 
        function refreshGrid(arg) { 
            if (!arg) { 
                $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind"); 
            } 
            else { 
                $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate"); 
            } 
        } 
        
             
                </script> 
    <telerik:RadSplitter ID="RadSplitter2" runat="server" Width="100%" VisibleDuringInit="true" Skin="Office2007"> 
        <telerik:RadSplitBar ID="RadSplitBar1" runat="server" /> 
        <telerik:RadPane ID="RadPane1" runat="server" Scrolling="None" BorderColor="#6C91C0"> 
            <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Horizontal" Width="100%" 
                BorderColor="#6C91C0"> 
                 
                <telerik:RadSplitBar ID="Radsplitbar3" runat="server"></telerik:RadSplitBar> 
                <telerik:RadPane ID="Radpane3" runat="server"> 
                    <div style="padding: 5px"> 
                         
                        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"> 
                            <AjaxSettings> 
                                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"> 
                                    <UpdatedControls> 
                                        <telerik:AjaxUpdatedControl ControlID="Panel1" 
                                           LoadingPanelID="RadAjaxLoadingPanel1" /> 
                                    </UpdatedControls> 
                                </telerik:AjaxSetting>       
                                <telerik:AjaxSetting AjaxControlID="rdScheduler"> 
                                    <UpdatedControls> 
                                       <telerik:AjaxUpdatedControl ControlID="Panel1" 
                                           LoadingPanelID="RadAjaxLoadingPanel1" /> 
                                   </UpdatedControls> 
                                </telerik:AjaxSetting>    
                            </AjaxSettings> 
                        </telerik:RadAjaxManager> 
                         <asp:Panel ID="Panel1" runat="server"> 
                        <telerik:RadScheduler runat="server" ID="rdScheduler" Width="100%" Height="95%" ShowViewTabs="false" 
                         DataKeyField="ID" DataSubjectField="Subject" 
                         DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID"  
                         SelectedView="MonthView" OnClientTimeSlotClick="OnClientTimeSlotClick"  
                         AllowDelete="False" AllowEdit="False" AllowInsert="False"  
                             EnableAdvancedForm="False" EnableResourceEditing="False"  
                         StartEditingInAdvancedForm="False"   
                         onappointmentdatabound="rdScheduler_AppointmentDataBound" Skin="Office2007"  
                                 OverflowBehavior="Scroll" onformcreating="rdScheduler_FormCreating"  
                                 ontimeslotcreated="rdScheduler_TimeSlotCreated" > 
                            <ResourceTypes> 
                                <telerik:ResourceType KeyField="ProcessLogID" ForeignKeyField="ProcessLogID" Name="ProcessType" TextField="ProcessType" /> 
                            </ResourceTypes> 
                        </telerik:RadScheduler> 
                        </asp:Panel> 
                         
                    </div> 
                </telerik:RadPane> 
            </telerik:RadSplitter> 
        </telerik:RadPane> 
    </telerik:RadSplitter> 
                     
    <telerik:RadWindowManager id="SingletonContent" runat="server" Skin="Office2007" DestroyOnClose="false" VisibleStatusbar="false"> 
        <windows> 
            <telerik:RadWindow id="dwFxRateEntry"  
                Skin="Office2007"  
                ReloadOnShow = "true"  
                Left="5px" 
                Modal = "true" 
                Runat="server"  
                Width="700px"                        
                Height="500px"  
                Title="FX Rate Listing"> 
            </telerik:RadWindow> 
        </windows>   
    </telerik:RadWindowManager> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" Width="75px"> 
    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0;" /> 
    </telerik:RadAjaxLoadingPanel> 
</asp:Content> 
 
Chip
Top achievements
Rank 1
 answered on 07 Apr 2010
1 answer
68 views
Hi There,

I set my upload, view paths in code as each client has their own image folder.  The issue I am having is, when they go into a folder they have no way to get back to the root folder.  The back button is greyed out and only allows me to go back if I am more then 2 folders deep.

Any ideas why this is happening?

I am using the new 2010 Q1 version.

Thanks
Rumen
Telerik team
 answered on 07 Apr 2010
3 answers
81 views
hello,
I have a problem using the radgrid to do grouping.
I have enabled client grouping
server side :
 DocumentGrid.ShowGroupPanel = true;
            DocumentGrid.GroupingEnabled = true;
            DocumentGrid.ClientSettings.AllowGroupExpandCollapse = true;
            DocumentGrid.ClientSettings.AllowDragToGroup = true;
            DocumentGrid.ClientSettings.AllowExpandCollapse = true;
            
            DocumentGrid.MasterTableView.GroupLoadMode = GridGroupLoadMode.Client;
            DocumentGrid.MasterTableView.GroupsDefaultExpanded = true;

On the client page, the grouping panel is shown with a default grouping. I can add/remove grouping to/from the panel. The control however does not do any grouping.
The control however creates a new column to put the > symbols for grouping each time a new grouping column is added to the grouping panel. The records remain unsorted.

When i try this using a simple asp test project i can get grouping to work ok, however the application i am working on hosts the client controls as a Dotnetnuke module.

The following client events are intercepted:-
"gridView.onRowDataBound" -- modifies some of the data field formats/icons/links
"gridView.onCommand" -- intercepts the Paging command and returns cancel event in order to use own paging scheme.

Is there anything else i need to do client side to get this working ?



Mira
Telerik team
 answered on 07 Apr 2010
1 answer
83 views
Hi Folks ,

I am getting two colors in the RadgridHeader.

i have applied the outlook skin.

Please let me know the reason.

Thanks
Satya
Pavlina
Telerik team
 answered on 07 Apr 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?