Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
221 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
58 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
62 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
65 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
48 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
3 answers
122 views
Is it possible to customize the radtreeview tristate behaviour in case of checkboxes. My requirement is to keep the tristate behavior, but i do not want the child nodes to be checked on checking of the parent node. Following are my settings,

<telerik:RadTreeView OnClientNodeChecking="ClientNodeChecking" Height="100%" ID="RadTreeView2" runat="server" CheckBoxes="True"
                                TriStateCheckBoxes="true" CheckChildNodes="False">

But this does not work as expected. Is this some known limitation or am I missing something?
mirang
Top achievements
Rank 1
 answered on 14 Feb 2012
1 answer
63 views
Hi there

we have decided to style some of our excel exports using the above event, and everything is so far going fine, however we have just one question for you:

- Rather than applying each individual style on the cell in question, is there any way to reference a css class which contains the intended styles? If not do you have any suggestions as to how we can achieve something similar to our requirements?

Thank you for your time

A.
Daniel
Telerik team
 answered on 14 Feb 2012
1 answer
105 views

I'm using RadGrid (RadGrid.Net2 (I know I should upgrade to a newer version, but that is not an option here..)). One of it's features is to export data to excel. Withgrid.MasterTableView.ExportToExcel(); an excel file is created with filtered and sorted data from the grid (all pages). How can i grab this data?

grd.ExportSettings.ExportOnlyData = true;
grd.ExportSettings.IgnorePaging = true;
grd.MasterTableView.ExportToExcel();

I want to grab the same data as the grid is writing to excel but can't figure out how to do this..

grd.MasterTableView.GetExportDataAsDataTable() would be perfect ;)

Daniel
Telerik team
 answered on 14 Feb 2012
9 answers
172 views
Does AsyncUpload support files drag and drop?(HTML5 feature) Is it possible to implement it by ourself?
Ivan Zhekov
Telerik team
 answered on 14 Feb 2012
2 answers
61 views
Hi

I am new to Telerik and the scheduler and I am trying to get to grips with how it all works.
On my Scheduler I don't want my user to use the inline insert. I want them to always use the advanced so they will see the appointment type drop down.
Is there a way of telling it when a user click "new appointment" for it just to open the advanced one straight away?

I know I can create custom insert templates, but if there is a simple option just to show the advanced one immediately then it would be quicker.

Thanks
Bex

Bex
Top achievements
Rank 1
 answered on 14 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?