Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
133 views
To,
Problem: Unabled get Invalid file index
to remove the invalid file by upload.deleteFileInputAt(i); since upload.getUploadedFiles(); only get valid file index.



<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1"
                        MultipleFileSelection="Automatic" AllowedFileExtensions=".sql" MaxFileSize="1000000"
                        OnClientValidationFailed="DeleteInvalidFiles">
</telerik:RadAsyncUpload>

function DeleteInvalidFiles() {
            var upload = $find("<%= RadAsyncUpload1.ClientID %>");
            var inputs = upload.getUploadedFiles(); //Get Valid File only

            for (i = inputs.length - 1; i >= 0; i--) {
                alert(inputs[i].value);
                if (!upload.isExtensionValid(inputs[i].value))
                    upload.deleteFileInputAt(i);
            }
}

Thks
From Tan;
Bozhidar
Telerik team
 answered on 14 Feb 2012
1 answer
70 views
Hi,

We have used RadWindow in our application and create a multiple instances on a page. So at the time of Page loading multiple scripts (ScriptResources.axd & WebResources.axd) being included for multiple instances of RadWindow.

So is there any approach to load a single ScriptResources.axd & WebResources.axd for all radwindow instances.

So please help us.

Thanks,
Abhishek
Top achievements
Rank 2
 answered on 14 Feb 2012
7 answers
349 views
Hi,

I enabled EnableCheckAllItemsCheckBox="true". When i click on check all text area its unchecking all other checked items in radcombobox. It should not uncheck other checkbox items when i click on check all text area(not check all check box).


Thanks,
Mahesh
Kalina
Telerik team
 answered on 14 Feb 2012
1 answer
102 views
Hello,
I have the skins working fine in visual studios. I have added the .dll to the project and I select the skin I want from the interface. When I play the project it shows up fine, but after I deploy and try to navigate to the page with the radscheduler it shows an error page saying it cant find the windows 7 skin.. I checked the server and the .dll is in the bin directory. Any ideas where I went wrong?
Peter
Telerik team
 answered on 14 Feb 2012
2 answers
170 views
hi i place ActiveX control in RadWindow
why the Install bar Appear in Parent window please refer 1.jpg

if i click install another window apeear with "Retry" and "Cancel"
if i click retry the the whole page reloads again - refer 2.jpg
if i click cancel and again open radwindow then oni appear "Install" window on RadWindow - refer 3.jpg

is it the behavior of RadWindow how can i handle this?
couldn't use ActiveX control on RadWindow ah?

i am using vs2010 ans Telerik Asp.net Ajax controls 2011 Q3
rdmptn
Top achievements
Rank 1
 answered on 14 Feb 2012
1 answer
237 views

We are opening a pop-up window from the parent window with the following code. The child window which we are opening does not have any Telerik controls and it’s an external link. The window opens fine, without any issues.

In the new opened child page there is a Query which gets executed when the print button is clicked. When this Jquery is called it opens a print dialog box as expected, but when the window is printed, it’s not taking the print.css and also its printing the parent page.

 

 

.cs code
txtDDDD.NavigateUrl = "javascript:top.openMaximizePopup(‘URL’)

 

JavaScript Code in the parent page
function
openMaximizePopup(url)

{

var oWnd = top.radopen(url, "modalPopup");

      oWnd.SetSize(widthValue - 260, heightValue - 150);

      oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Maximize);

      oWnd.set_modal(true);

      if (title != "") oWnd.set_title(title);

      oWnd.Center();

}

 

Javascript in Child Page

 <script language = "javascript" type="text/javascript">

        $(document).ready(function () {

            $("input[id$= ImageButtonPrint]").click(function() 

            {

                   window.print();

            });

        });

 

 

Any help on this is appreciated.

rdmptn
Top achievements
Rank 1
 answered on 14 Feb 2012
1 answer
71 views
Hi,

I'm using a User Control Edit Form to insert/update records on RadGrid. On my User Control Edit Form, there is a DropDownList control. The problem is when the DropDownList is focused, if I hit Up/Down Keys to select a item, the selected row on the RadGrid changes.

Let's say I have 5 records on the grid, and 3. record/row is selected. On the DropDownList, if I hit Up Key to go through the items, 2. record/row will be selected on the RadGrid.

Thanks,

Nazmi
Tsvetoslav
Telerik team
 answered on 14 Feb 2012
2 answers
86 views
on page

http://demos.telerik.com/aspnet-ajax/listview/examples/appearancestyling/customlayouts/defaultvb.aspx

Marc
Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 14 Feb 2012
1 answer
71 views
Greetings,

  I am trying to do client side databind to a webservice.  I have created a simple test service and a test page that is almost identical to the ones used in the demos.  I have updated my telerik controls and jquery.  I am getting an error with the set_dataSource() function off of the grid.  When debugging the js I get a null value for "tableView'.  Here is the code I am using.

<%

 

@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<!

 

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<

 

 

html xmlns="http://www.w3.org/1999/xhtml">

<

 

 

head id="Head1" runat="server">

 

<telerik:radcodeblock id="RadCodeBlock1" runat="server">

 

<script src="../scripts/jquery-1.7.1.min.js" type="text/javascript"></script>

 

<script type="text/javascript">

//<![CDATA[

 

function pageLoad(sender, args) {

getData();

}

 

function getData() {

 TestDataService.TestDataRows(updateGrid);

}

 

function updateGrid(result) {

 

var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();

tableView.set_dataSource(result);

tableView.dataBind();

}

 

function OnRowDataBound(sender, args) {

 

var spanControl = args.get_item().get_cell("Change").getElementsByTagName('span')[0];

 

var image = args.get_item().get_cell("Change").getElementsByTagName('img')[0];

 

if (args.get_dataItem().Change > 0) {

image.style.display =

 

"";

image.src =

 

"Images/up.gif";

spanControl.style.color =

 

"green";

}

 

else if (args.get_dataItem().Change < 0) {

image.style.display =

 

"";

image.src =

 

"Images/down.gif";

spanControl.style.color =

 

"red";

}

 

else {

image.style.display =

 

"none";

spanControl.style.color =

 

"";

}

}

 

//]]>

 

 

</script>

 

</telerik:radcodeblock>

</

 

 

head>

<

 

 

body class="BODY">

 

<form runat="server" id="mainForm" method="post">

 

<telerik:radscriptmanager id="RadScriptManager" runat="server">

 

<Services>

 

<asp:ServiceReference Path="~/WebServices/TestDataService.asmx" />

 

</Services>

 

</telerik:radscriptmanager>

 

<!-- content start -->

 

<h3 class="qsfSubtitle">

RadGrid bound to live data:

 

</h3>

 

<telerik:radgrid id="RadGrid1" autogeneratecolumns="false" runat="server">

 

<MasterTableView TableLayout="Fixed">

 

<Columns>

 

<telerik:GridBoundColumn DataField="OID" UniqueName="OID" HeaderText="OID">

 

</telerik:GridBoundColumn>

 

</Columns>

 

</MasterTableView>

 

</telerik:radgrid>

 

<!-- content end -->

 

</form>

</

 

 

body>

</

 

 

html>

Tsvetoslav
Telerik team
 answered on 14 Feb 2012
2 answers
58 views
Hi,

I'm updating multiple edit row column, is updated in db also but once i call the rebind it show the old record.

please help me this issue.

Regards,
Yasar
Tsvetoslav
Telerik team
 answered on 14 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?