Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
117 views
Hi there

I have a total column on one of my grid columns, by using the following code:
applicationValueTotal += Double.Parse(dataItem["ApplicationValue"].Text);
.
.
.
GridFooterItem footerItem = (GridFooterItem)e.Item;           
footerItem["ApplicationValue"].Text = "R " + applicationValueTotal;
This works great, but it only gives me the total of the current "visible" records.

I want it to show me the results of the whole dataset at that point and then a sub total for the current visible records.
I also use filters so basically I would like the following:

for example a total of 50 records, 10 per page
full dataset on first page load: sub total = applicationValueTotal Grand Total = 50 records' applicationValue

filter applied: sub total = applicationValueTotal Grand Total = x records returned' applicationValue

I can't query this directly out of the database as client side filters might be applied.

Any ideas?

Jako
Top achievements
Rank 1
 answered on 28 May 2012
4 answers
226 views
Hello.
I seem to not be able to find a client side method that resizes/re-set's the TreeList's height.

the example code is pretty straight forward :

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
            <script type="text/javascript">

                Sys.Application.add_load(LoadValues);

                function LoadValues() {
                    var tl = $find("<%=tlHierarchy.ClientID %>");                 
                }

            </script>
</telerik:RadScriptBlock>

So basically .. how can i set a treelist's height from client side ?
Thank you.
bogdan
Top achievements
Rank 1
 answered on 28 May 2012
1 answer
201 views
I have a page with two raddatepickers. Both have ClientIDMode="Static".

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="datepicker.aspx.vb" Inherits="tests_datepicker" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
        <title></title>
</head>
<body>
        <form id="form1" runat="server">
        <div>
            <telerik:RadScriptManager runat="server" ID="rcm"></telerik:RadScriptManager>
            <telerik:RadDatePicker runat="server" ID="RadDatePicker1" ClientIDMode="Static" />
            <telerik:RadDatePicker runat="server" ID="RadDatePicker2" ClientIDMode="Static" />
 
        </div>
        </form>
</body>
</html>

Clicking the calendar icon next to RadDatePicker1 pops up the calendar aligned to RadDatePicker2 and if a date is selected RadDatePicker2 is filled in. The calendar never pops up when clicking the calendar icon next to 
RadDatePicker2.

I'm I doing something wrong?



Kevin
Top achievements
Rank 2
 answered on 28 May 2012
1 answer
243 views
Hi ,
I have blow scenario where i have 3 inputs for radwindow.

 Can i set the default path  for radupload ?? or is there any other way ?

Regards,
Akki


Princy
Top achievements
Rank 2
 answered on 28 May 2012
0 answers
114 views
HI Every Body,
I have an internship, and i have used the Telerik technologies (RadControls for Asp.NET Ajax, RadControls for WinForm, Telerik Reporting; ... ) and for my presentation I wanna use schemas, tables that explain the functionality of Telerik...but I dont find any thing about this so please help me .
THANKS TELERIK'S MASTERS :) 
Berrabah
Top achievements
Rank 1
 asked on 28 May 2012
0 answers
88 views
HI Every Body,
I have an internship, and i have used the Telerik technologies (RadControls for Asp.NET Ajax, RadControls for WinForm, Telerik Reporting; ... ) and for my presentation I wanna use schemas, tables that explain the functionality of Telerik...but I dont find any thing about this so please help me .
THANKS TELERIK'S MASTERS :) 
Berrabah
Top achievements
Rank 1
 asked on 28 May 2012
1 answer
122 views
Does anyone have any examples of doing client-side databinding on a RadGrid where one of the columns is a custom AJAX control?

I've been using a GridTemplateColumn for my custom control, but am unsure how to bind the data to the control at the client level.

Thanks,
Jason
Tsvetina
Telerik team
 answered on 28 May 2012
3 answers
212 views
HI,

I am following this documentation to have radWindow in my application as well. 
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

The trouble is the radWindow being popped-up has funny unwanted borders - series of rectangles in the bottom. Please see the attached screen being highlighted in YELLOW :)

Could you please anyone hint me the problem?

Many thanks.

MG
Munna
Top achievements
Rank 1
 answered on 28 May 2012
1 answer
203 views
Is there a way to set the focus to a treeview (such that the user can navigate the tree using arrow keys) without raising the OnNodeClick event?

I have a popup displaying a RadTreeView which closes once the user has selected a node on the tree, however when the popup is displayed the treeview does not have focus.

Edit:
I've realised the problem may be more to do with the ModalPopupExtender in which the TreeView is placed.  I believe the focus remains on the form behind the popup.  

Thanks in advance...

Michael
Bozhidar
Telerik team
 answered on 28 May 2012
4 answers
270 views
Hi,

I have a grid that's grouped by days of the week. What I would like is to group by specific categories, for example; today, yesterday. All entries for today's date grouped in "Today", all entries for yesterday grouped in "Yesterday" but I'm not sure how. Currently the grid is grouped by every new date. Can I manually set this up in code? I attached a screen shot of my current grid and here is the code for my most recent attempt:
protected void RadGrid2_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
        this.grdRecentActivity.MasterTableView.GroupsDefaultExpanded = false;
        if (e.Item is GridGroupHeaderItem)
        {
            GridGroupHeaderItem item = (GridGroupHeaderItem)e.Item;
            DataRowView groupDataRow = (DataRowView)e.Item.DataItem;
            DateTime currentdate = DateTime.Now.Date;
            DateTime yesterdaysDate = DateTime.Now.AddDays(-1).Date;
            DateTime dayBeforeYesterday = DateTime.Now.AddDays(-2).Date;
            DateTime activityDate = DateTime.Parse(groupDataRow.Row.ItemArray[0].ToString());
 
            if (activityDate == currentdate)
                item.DataCell.Text = "Today";
            if (activityDate == yesterdaysDate)
                item.DataCell.Text = "Yesterday";
            if (activityDate == dayBeforeYesterday)
                item.DataCell.Text = "Day Before Yesterday";
 
            //item.DataCell.Text = groupDataRow.Row.ItemArray[0];
        }
    }
Ron
Top achievements
Rank 1
 answered on 28 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?