Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
57 views
 

Dear All,
I am new to Telerik RAD Controls and new to this forum too...
Actually,
I am using a Telerik Rad Grid. With in the detail grid, I got various columns, say col1 and col2, col3. When the user entered a value in col1 and col2, I should add them and set to the col3.

 

In the itemdatabound event I have added code to add javascript method to get fired onfocuschange of col1 and col2

 

 

var

 

 

col1 = item["col1"].Controls[0] as RadNumericTextBox;

 

 

 

 

var col2 = item["col2"].Controls[0] as RadNumericTextBox;

 

 

 

 

var col3 = item["col3"].Controls[0] as RadNumericTextBox;

 

 

 

 

 

 

string clientIds =

 

 

 

 

"'" + col1.ClientID + "' ," +

 

 

 

 

"'" + col2.ClientID + "' ," +

 

 

 

 

"'" + col3.ClientID + "'";

 

 

col1.Attributes.Add(

 

 

"onfocusout", "javascript:calculate(" + clientIds + ");");

 

col2.Attributes.Add(

 

 

"onfocusout", "javascript:calculate(" + clientIds + ");");

 

 

 

The following is the javascript method:

 

 

<

 

 

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

 

 

 

 

function calculate(price, quantity, totalAmount) {

 

 

 

 

var text1 = document.getElementById(price);

 

 

 

 

var text2 = document.getElementById(quantity);

 

 

 

 

var text3 = document.getElementById(totalAmount);

 

 

 

 

var total = text1.value * 1 + text2.value * 1;

 

alert(total);

alert(document.getElementById(totalAmount));

document.getElementById(totalAmount).value = total;

 

 

 

 

return true;

 

}

 

 

 

</script>

 

 

 

The javascript method is getting fired,and I am able to read the value entered by the user in the col1 and col2. How ever, when I set it to col3, it is not getting updated.

 

It is urgent, any ideas, please?

Regards,
Venkat

Venkat
Top achievements
Rank 1
 answered on 28 Nov 2010
1 answer
72 views
I have a Treeview clientside search going on and when I find an item I set it to Highlighted, and Expanded...ok so that works...kind of

But I want the entire node tree down to the item expanded so I can see it highlighted.  If it's nested right now below 2 parents, since I only expand the first parent, it looks like it didnt find anything.

Is there a property Im missing?
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 27 Nov 2010
8 answers
362 views
Hello Telerik team! Your controls are amazing, they are helping out my project quite a bit...
I am having a serious problem with the RadGrid however.

Basically I have a RadGrid where I have 2 static columns whose header text is supposed to be horizontal. But I also dynamically insert BoundColumns from db, and that header text needs to be vertical. Unfortunately when I mess with the header text on the dynamic columns, the control goes haywire.

The scrollbar is not accurately scrolling the rest of the dynamic fields smoothly, it is extremely jumpy.
Also, the gridlines and column headers are not aligned.

I have attached a picture of what our UI wireframe is supposed to look like.

And I have attached a picture of what it looks like right now.

I have tried a TON of tweaks that I have seen in various places on the site (tablelayout = auto/fixed, autogeneratecolumns=true/false, wrapping in a table with fixed layout, etc.), but nothing is solving this issue with the vertical text in the grid headers. Any help is much appreciated!!
chinmaya
Top achievements
Rank 1
 answered on 27 Nov 2010
2 answers
36 views
I add a RadRating control to a RadGrid footer at runtime. I can retrieve a updated value from the server using AJAX and would like to update this value with the latest server value. I have an event that can be called on the client side. My problem is how can I find the RadRating using Javascript at runtime? Below is a sample of the code I use to insert the control during the RadGrid1_ItemCreated event.

if (e.Item is GridFooterItem)
{
    GridFooterItem footerItem = (GridFooterItem)e.Item;
    TableCell tc = new TableCell();
                
    footerItem.Cells[5].Text = "<b>Overall Rating:</b>";
    footerItem.Cells[5].HorizontalAlign = HorizontalAlign.Right;
    //Add group rating summary
    RadRating radrateemp = new RadRating();
    RadRating radratesuper = new RadRating();
    radrateemp.ReadOnly = true;
    radrateemp.ID = "EmpRatingOverall";
    radratesuper.ReadOnly = true;
    radratesuper.ID = "SuperRatingOverall";
    footerItem.Cells[7].Controls.Add(radrateemp);
    footerItem.Cells[6].Controls.Add(radratesuper);
}
Bryan Kowalchuk
Top achievements
Rank 1
 answered on 26 Nov 2010
2 answers
102 views
Hello,

I have used RadGrid on one of the page on the website i am working on. I just realized that it does some weird thing.  So, here is the issue. I added a RadGrid to the page, gave DataSourceID to sqldatasource and gave bottom paging of page size 10. But it display page size like a textbox. Does anyone know what am i doing wrong or how to get rid of this bug? Here is my code for my RadGrid,

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1">
                                <MasterTableView DataSourceID="SqlDataSource1" AllowSorting="true" DataKeyNames="id" AllowPaging="true" PageSize="10" AllowNaturalSort="false" AutoGenerateColumns="false">    
                                   <Columns>
                                        <telerik:GridTemplateColumn HeaderText="Action">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lbview" CausesValidation="false" CommandName="ViewThread" CommandArgument='<%#Eval("id") %>' runat="server">View</asp:LinkButton>                      
                                        </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridBoundColumn SortExpression="Author" HeaderText="Author" HeaderButtonType="TextButton"
                                            DataField="author_name" UniqueName="Author">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn SortExpression="Title" HeaderText="Title" HeaderButtonType="TextButton"
                                            DataField="title" UniqueName="Title">
                                        </telerik:GridBoundColumn>                   
                                        <telerik:GridBoundColumn SortExpression="PostDate" DataField="date_created" HeaderText="Post Date" HeaderButtonType="TextButton" UniqueName="PostDate">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn SortExpression="LastCommented" HeaderText="Last Commented" HeaderButtonType="TextButton"
                                            DataField="last_commented" UniqueName="LastCommented">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn SortExpression="Rating" HeaderText="Rating" HeaderButtonType="TextButton"
                                            DataField="rating" DataFormatString="{0:N1}" UniqueName="Rating">
                                        </telerik:GridBoundColumn>
                                    </Columns>
                                </MasterTableView>           
                            </telerik:RadGrid>

I have attached the screenshot of the RadGrid displaying that weird textbox.
Vijay Baria
Top achievements
Rank 1
 answered on 26 Nov 2010
1 answer
85 views
Hi, Im new with the RadChart control, here is my problem, i have a chart with y-axis values (0;0.2;0.4;0.6...) If I have a pointmark with y value=0.6 it not appears complete (half the point). What i want is to add a new value (one more step), in this case (0.8) so the pointmark may showed complete. How can I do it?
Martin
Top achievements
Rank 1
 answered on 26 Nov 2010
2 answers
80 views
Hi,

I am using a RadWindow to display a form. The form contains a SharePoint PeopleEditor control.

When I access the form via IE it is perfectly fine. When I access the form via Firefox the textbox is disabled and does not allow me to enter anything.

If I directly access the page (i.e. not via RadWindow) then it is perfectly fine in firefox too. It seems like the problem only occurs in firefox when I use a radwindow to display the form.

This is in SharePoint 2010.
Content and Code
Top achievements
Rank 1
 answered on 26 Nov 2010
1 answer
124 views
Hi

We're using the scheduler control and it's great, but I have some questions about formatting the timeline view.

Please refer to the attached file
#1. This left hand side contains the resources, how do I make that column bigger? eg: increase the height and width?
#2. These are the booked timeslots, how do I increase the height of these?
#3. I'd like scroll bars to scroll through the time, for example, the control is set to start at 7am and finish and 7pm, but since I want each slot expanded not all these will fit on a 960px screen, therefore would like a scrollbar like the vertical bar that you see on the right
#4. How do I increase the width of each slot?

What would be really good is if we can use the normal scheduler control and put the time horizontally and resources vertically without using this timeline control

Thanks
Gayan
Peter
Telerik team
 answered on 26 Nov 2010
1 answer
53 views
Hi there,

I have a problem with programmatically creating a radgrid. I am trying to make a usercontrol that:

contains one Radgrid with one DetailGrid
is created programmatically
Fills the datasources with a linq statement
is able to page through the data

Everything works fine, untill i start paging through the data. After this i cant see the detailgrid anymore (allthough the DetailTableBind is called and records are set in the datasource). Also, sometimes i have to click the ">" button on the leftmost column twice to see the detail grid.

I don't know what i'm doing wrong, but i was wondering if you guys have a sample application that does all this in one package?

thx. Willem
Marin
Telerik team
 answered on 26 Nov 2010
1 answer
25 views
hi,
    Well. i hope u all doing good. still I'm new for telerik rad controls for asp.net AJAX. I already told that. ok now i need some answer about my questions what matter was, If we download Rad controls for asp.net ajax for using rad controls in appalications. If I need Rad Grid with extra functionality built to my application. Is there any need to download Rad Grid separately, and whether I need panel bar or anything else.

If say so, please sent the appropriate link with documentation.

Thanks in Advance,

regards,
H.AL-MUBARAK
Vasil
Telerik team
 answered on 26 Nov 2010
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?