Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
167 views
I have a RadTabStrip inside an iFrame (RadWindow) that has 3 tabs linked to a RadMultiPage. In Chrome, everything works as expected. However, when in Firefox or IE10, when I click a tab, the browser freezes. In firebug I can see the following error
NS_ERROR_OUT_OF_MEMORY: Out of Memory
if(e){b=e[a];
in the following script handler /ScriptResource.axd?d=L4WBh96PmKNCiYr3K6CV0_ZHQcTFtyYsMMhJHDHizCIjUYPB1QMHsdVHkAqaPl2iW-js_t_mCG5P7euqU0HZJjinokxnSpRjMsTiR7f_8XfUO9RR0PmqEDIwMXTaHZyZv_jJwsr634ePuuIZJpwAkQ2&t=4004e9e8 on line 123

I have also tried attaching client side event to the tabs. They're triggered correctly in chrome, but nothing in both IE and Firefox.

Is there a known fix for this problem?
Nencho
Telerik team
 answered on 08 Jul 2013
1 answer
76 views
I need to get the datakey value of a radgrid dragged item on  RowDropping event  but everything I tried returns null.
e.g. 
args._dragedItems[0].getDataKeyValue('ProcedureID')

var UIProceduresGrid = $find($telerik.$("[id$='UIProceduresGrid']")[0].id);
            var UIProceduresGridTable = UIProceduresGrid.get_masterTableView();
            var UIProceduresGridRows = UIProceduresGridTable.get_dataItems();
            var dragged = UIProceduresGridRows[args._dragedItems[0]._itemIndexHierarchical];
dragged.getDataKeyValue("ProcedureID") 


and few other things

 Can anyone please help me with this.

Thanks in advance.
Eyup
Telerik team
 answered on 08 Jul 2013
1 answer
201 views
Hi,

I have a filter template which is using my own custom filter, this is setup in the item command. After this event Telerik build up the rest of the filter expression by looping through the columns. I need this loop to exclude the column that I have already built the filter expression for.

The custom filter template is a combobox with check boxes. I convert the comma separated string into OR conditions in the grid filter expression. For example 'cup, plate, glass' gets converted to "(([category] = 'cup') OR ([category] = 'plate') OR ([category] = 'glass') )" which is correct, however after the item command event the value from the filter control is automatically used for my column with the custom filter so the filter expression becomes "(([category] = 'cup') OR ([category] = 'plate') OR ([category] = 'glass') ) AND ([category] = 'cup,plate,glass')". This occurs when I filter another column when a filter already exists for my custom column.

Can I exclude my column from the in-built filtering but keep my custom filtering?

Eyup
Telerik team
 answered on 08 Jul 2013
2 answers
130 views
When the grid control displays its data, the child rows are collapsed and the user needs to click on the arrow to the left to expand it and the only way a user knows if a row has child data is to expand it.  Is there a way to have the expand arrow (or some other way) display a different color if there are child rows?  I don't want to expand every child row as that would make it difficult for the users to quickly find the data they want.
Jon
Top achievements
Rank 1
 answered on 08 Jul 2013
1 answer
67 views
Hi guys

I am trying to access a menu item in javascript using get_items but I am getting the parent items only. The subitems are not listed. What can I do?
Please help
Joseph
Shinu
Top achievements
Rank 2
 answered on 08 Jul 2013
4 answers
113 views
Hi,

 I am  showing bill register in RADGRID. However if a customer has bought more than one item, then I am adding Bill Total in the "B.AMT"  column. But the problem is ,while doing column summary, the bill total is counted as per number of items in case there are more than one item bought by customer. Please find in the attached screenshot.
Here Gopal TODI has bought 2 items  of total amt. 66778. But while calculating the summary of B.AMT ,66778 is added twice.

Please look into this.

Regards
Purojit
Princy
Top achievements
Rank 2
 answered on 08 Jul 2013
4 answers
177 views
I have a radgrid in batch edit mode.  When I click on add new I only get 1 column to edit even though I have 2 visible columns?

Also the Add New resizes my grid by 1/2 to say Save Changed even though I have plenty of space to keep it all on one line? 

Third I can not get any of the command events to fire except BatchEdit Command??


                                                 <telerik:RadGrid ID="dgCompNonGrid" GridLines="None" runat="server" AllowAutomaticDeletes="True"
                                                    AllowAutomaticInserts="True" PageSize="40" Skin="Default" OnItemDeleted="dgCompNonGrid_ItemDeleted" OnItemInserted="dgCompNonGrid_ItemInserted"
                                                    OnItemUpdated="dgCompNonGrid_ItemUpdated" AllowAutomaticUpdates="True" AllowPaging="False"
                                                    AutoGenerateColumns="False" Width="440px" OnBatchEditCommand="dgCompNonGrid_BatchEditCommand" Height="230px">
                                                     <ExportSettings>
                                                         <Pdf>
                                                             <PageHeader>
                                                                 <LeftCell Text="" />
                                                                 <MiddleCell Text="" />
                                                                 <RightCell Text="" />
                                                             </PageHeader>
                                                             <PageFooter>
                                                                 <LeftCell Text="" />
                                                                 <MiddleCell Text="" />
                                                                 <RightCell Text="" />
                                                             </PageFooter>
                                                         </Pdf>
                                                     </ExportSettings>
                                                    <ClientSettings>
                                                        <Selecting AllowRowSelect="True" />
                                                    </ClientSettings>
                                                    <MasterTableView AllowNaturalSort="False"  EditMode="Batch" BatchEditingSettings-OpenEditingEvent ="DblClick">
                                                        <BatchEditingSettings EditType="Cell" />
                                                        <CommandItemSettings ExportToPdfText="Export to PDF" />
                                                        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                                                        </RowIndicatorColumn>
                                                        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                                                        </ExpandCollapseColumn>
                                                        <EditFormSettings>
                                                            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                                            </EditColumn>
                                                        </EditFormSettings>
                                                        <PagerStyle PageSizeControlType="RadComboBox" />
                                                    </MasterTableView>
                                                     <MultiHeaderItemStyle Wrap="False" />
                                                     <ItemStyle Wrap="False" />
                                                    <PagerStyle PageSizeControlType="RadComboBox" />
                                                    <FilterMenu EnableImageSprites="False">
                                                    </FilterMenu>
                                                </telerik:RadGrid>

CODE==================================================================================

           With dgCompNonGrid
                .Columns.Clear()
                .DataSource = Nothing
                .DataSource = ippService.SelectPlanComponentsDetails(iCompID)
            End With

            Dim boundColumn As GridBoundColumn

            boundColumn = New GridBoundColumn()
            dgCompNonGrid.MasterTableView.Columns.Add(boundColumn)
            boundColumn.DataField = "ippComponentID"
            boundColumn.UniqueName = "dgippComponentID"
            boundColumn.Display = False
            boundColumn.HeaderText = ""
            boundColumn.ItemStyle.Font.Size = 8
            boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Left
            boundColumn.ReadOnly = True

            boundColumn = New GridBoundColumn()
            dgCompNonGrid.MasterTableView.Columns.Add(boundColumn)
            boundColumn.DataField = "ippComponentSeq"
            boundColumn.UniqueName = "dgippComponentSeq"
            boundColumn.Display = False
            boundColumn.HeaderText = ""
            boundColumn.ItemStyle.Font.Size = 8
            boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Left

            boundColumn = New GridBoundColumn()
            dgCompNonGrid.MasterTableView.Columns.Add(boundColumn)
            boundColumn.DataField = "ippComponentSrcValue"
            boundColumn.UniqueName = "dgippComponentSrcValue"
            boundColumn.Display = True
            boundColumn.HeaderText = "Value"
            boundColumn.ItemStyle.Font.Size = 8
            boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Left

            boundColumn = New GridBoundColumn()
            dgCompNonGrid.MasterTableView.Columns.Add(boundColumn)
            boundColumn.DataField = "ippComponentBonusPct"
            boundColumn.UniqueName = "dgippComponentBonusPct"
            boundColumn.Display = True
            boundColumn.HeaderText = "Bonus %"
            boundColumn.ItemStyle.Font.Size = 8
            boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Left

            Dim oDeleteColumn As New GridButtonColumn

            With oDeleteColumn
                .UniqueName = "Delete"
                .HeaderText = "Remove"
                .ItemStyle.Font.Size = 8
                .ButtonType = GridButtonColumnType.ImageButton
                .ImageUrl = "~/Images/style7/cancel.gif"
                .Display = True
                .Visible = True
                .CommandName = "Delete"
                .ConfirmText = "Delete this increment?"
                .ConfirmDialogType = GridConfirmDialogType.RadWindow
                .ItemStyle.HorizontalAlign = HorizontalAlign.Left
            End With

            dgCompNonGrid.MasterTableView.Columns.Add(oDeleteColumn)

            dgCompNonGrid.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top


Angel Petrov
Telerik team
 answered on 08 Jul 2013
6 answers
250 views
I have a fairly complex page with RadSplitters/RadPanes/PanelBars/RadGrids and RadButtons.  When I expand the RadPanelBar, then scroll, the buttons don't seem to scroll with the page.  Locally, in Debug mode, they seem to scroll fine, but when I deploy them to the server, that is when I see the problem.  See attached image.

I searched this forum but I didn't see many possible solutions.

thanks

mark
Bozhidar
Telerik team
 answered on 08 Jul 2013
14 answers
1.9K+ views
I can't seem to get my datepicker control to properly enable/disable on the client side. I've included my javascript below.

When the function is called, it partially works. The textbox portion of the control is enabled/disabled appropriately. But the popup button seems to always work, regardless of wether the control is enabled/disabled.

What am I doing wrong? I've searched for other answers on this, but they are all really old (more than 2 years) and the api has changed significantly since then.

function ToggleDatePicker(enable) 
{ 
    var DatePicker = $find('<%= StartDate.ClientID %>'); 
     
    if (!enable) 
    { 
        DatePicker.get_dateInput().disable();  
        DatePicker.get_popupButton().onclick = null; 
    } 
    else 
    { 
        DatePicker.get_dateInput().enable();  
        DatePicker.get_popupButton().onclick = function() { DatePicker.togglePopup(); return false; };  
    } 
} 
Shinu
Top achievements
Rank 2
 answered on 08 Jul 2013
3 answers
114 views
I have a form that has the following workflow.

1. user fills out form, including optionally uploading a file
2. the information gets saved to the database
3. using the ID of the entry, a new folder is created with that ID number
4. the file is uploaded to that folder
5. the user is redirected to another page

I can't seem to place the file uploading process in the right place.  Can someone point me in the right direction of the method to use?  Should I move the files in the button click action? Page load? onFileUpload?  
Jayesh Goyani
Top achievements
Rank 2
 answered on 08 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?