Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
61 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
67 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
67 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
51 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
126 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
67 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
108 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
176 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
66 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
5 answers
129 views
Hi,

I'm trying to get the reference of the label object inside NoRecordsTemplate using client side.
Is it possible? How?


Thanks.
Dexter
Tsvetoslav
Telerik team
 answered on 14 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?