Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
73 views
Hi Telerik team:

I'm currently using DropDownList with checkboxes on javascript and I found out that method get_checked, that retrieves wether an item is checked or not
does not work on IE.
Exists some fix to use this method on IE? 

Any help would be appreciated.
Thanks.


function doSaveReport(id) {

            if ($("#txtSaveAs").val() == "" && id == "")
                alert("You must specify a name for the report definition");
            else {
            
                      oEmployee = $find("<%= ddlEmployees.ClientID %>").get_items(),
                        
                var ReportData = {                  
                    EmployeeId: []
                }   
           
                for (i = 0; i < oEmployee.get_count(); i++) {
                    item = oEmployee.getItem(i);
                    if (item.get_checked())
                        ReportData.EmployeeId.push(item.get_value());
                }
}

























Shinu
Top achievements
Rank 2
 answered on 28 May 2014
6 answers
747 views
How do we prevent submit button click, if user has selected invalid date.

Currently, I am able to display the error message. But even if the error message is there and user clicks on Submit/Save  I am still able to submit form with invalid date.

While searching in Google, I found one suggestion to achieve this is adding RequiredFieldValidator on page. But this would turn make that field mandatory, which I cannot do.

Thanks.
Princy
Top achievements
Rank 2
 answered on 28 May 2014
5 answers
196 views
Hello,

I need to show a RadWindow through javascript and what I need on there are two dropdown controls that are binded. The first the user will select a company and the second will list contacts for that company that was selected. Can I do this binding update all on the window without any postback or at least keeping the radwindow modal?

Thanks,

Warren
Shinu
Top achievements
Rank 2
 answered on 28 May 2014
4 answers
205 views
Hi,

I'm opening a radwindow from within a radwindow. I want to use some of the client side functionsm like, center(), set_modal(). But when I run it, the webpage throws error says these functions are undefined. I'm using the following code. Also, is there a way to set radwindow skin using client code.

Thanks!

01.function GetRadWindow() {
02.        var oWindow = null; if (window.radWindow)
03.            oWindow = window.radWindow; else if (window.frameElement.radWindow)
04.            oWindow = window.frameElement.radWindow; return oWindow;
05.    }
06. 
07.    function openWinTest() {
08. 
09.        //store the overflow   
10. 
11.        bodyOverflow = document.body.style.overflow;
12. 
13.        htmlOverflow = document.documentElement.style.overflow;
14. 
15.        //hide the overflow   
16. 
17.        document.body.style.overflow = "hidden";
18. 
19.        document.documentElement.style.overflow = "hidden";
20. 
21.        var oBrowserWnd = GetRadWindow().BrowserWindow;
22.       
23. 
24.        var url = "www.google.com"
25. 
26.        oBrowserWnd.radopen(url, "", 1100, 620);
27.        oBrowserWnd.center()
28.        oBrowserWnd.set_modal(true);
29.    }

Tao
Top achievements
Rank 1
 answered on 27 May 2014
1 answer
75 views
I have a RadGrid with the below code:


<telerik:RadGrid ID="CDSRGridView" runat="server" PageSize="15" AllowPaging="True" AllowSorting="True"

                                        AutoGenerateColumns="False" Width="700px" Height="240px">

                                        <HeaderContextMenu EnableImageSprites="True" CssClass="GridContextMenu
GridContextMenu_Vista"></HeaderContextMenu>

                                        <FilterMenu EnableImageSprites="False">

                                        </FilterMenu>

                                        <MasterTableView CommandItemDisplay="Top" DataKeyNames="MyID" TableLayout="Fixed"

                                            HorizontalAlign="NotSet" AutoGenerateColumns="False" EditMode="InPlace" EditItemStyle-VerticalAlign="Top">

                                            <CommandItemSettings ShowExportToExcelButton="true" ShowRefreshButton="False"></CommandItemSettings>

                                            <Columns>

                                                â€¦

                                            </Columns>

 

                                            <EditFormSettings>

                                               
<EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column"></EditColumn>

                                            </EditFormSettings>

 

                                            <EditItemStyle VerticalAlign="Top"></EditItemStyle>

                                        </MasterTableView>

                                        <ExportSettings ExportOnlyData="True" FileName="MyExcelFile" Excel-Format="Biff">

                                        </ExportSettings>

                                        <ClientSettings>

                                            <Scrolling AllowScroll="true" UseStaticHeaders="true" />

                                            <Resizing AllowColumnResize="true" EnableRealTimeResize="true" />

                                        </ClientSettings>

                                    </telerik:RadGrid>


But, when I debug and click the Export button, the BiffExporting event does not fire.  So, I put a breakpoint in the GridExporting event, and it shows the ExportType = ExcelML.  Why would the grid change the ExportType when I have it explicitly set to Biff? 
Kathy
Top achievements
Rank 1
 answered on 27 May 2014
5 answers
259 views
Hi ,

We are currently using RadEditor in our project.  We customized the Toolbars by removing some tools. I knew that adding or removing tools will automatically disable the built-in context menus. So I added the context menus manually. It worked fine on text that was directly typed into RadEditor. However, if we copied some text from other files and pasted it into RadEditor, the context menu did not show copy, cut and paste menu items when you right-click on the copy-paste text after highlighting. (Cut, Copy and Paste functions on Toolbars and Key board still work well ). After researching, I have learned that the context menus of RadEditor had some issue with IE8 and the issue could be resolved by installing Telerik 2014 Q1 SP1. We did that today but the problem still remains  (copy, cut and paste didn't show up  on context menu on the text that was copied and pasted into RadEditor). I spend some days try to figure out the reason but failed to get right answer (I remember one or two telerik team member said that issue  related privilege/Security. but can we avoid security checking or bypass this privilege be certain way?) . Could anyone have any suggestion?
Thanks in advance.
Iris
Top achievements
Rank 1
 answered on 27 May 2014
4 answers
284 views
I have a grid that has a GridNumericColumn and AllowFilteringByColumn="True".  the filter has a value for between and notbetween.  since the numericcolumn does not allow spaces or alpha how do you use the between filter?
Milena
Telerik team
 answered on 27 May 2014
3 answers
94 views
Hi, 
i have the following problem with radeditor. 
Editor remove width and height tags while saving content. I know that i can use style attribute, but we have a lot of content with width and height tags(which loses after saving) and we cannot change all of it manually. 

Please, help me with that. 
Rumen
Telerik team
 answered on 27 May 2014
2 answers
114 views
I have a rad scheduler and a html element outside of the scheduler. I need to drag the element to rad scheduler's cell. I used jquery UI for drag and drop. I made the radscheduler droppable. But could not find the timeslot in drop function. How can I get the timeslot information inside drop event. Please help.

p:s: Have seen dragging from radgrid to radscheduler demo. But I need to drag this html element and drop it tp rad scheduler.
Boyan Dimitrov
Telerik team
 answered on 27 May 2014
4 answers
163 views
Hello,

I thought I read somewhere that I can make changes and put my own input fields in the popup. Can I do this? And if so, can I put a data binded dropdown with a list of business names and when one is selected bind another dropdown on the popup with the contact name? SO I need two data binded dropdown controls on the popup and one will rebind the other after a selection is made.

Thanks,
Warren
Nencho
Telerik team
 answered on 27 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?