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

Grid dynamically fill data, the dynamic Aggregate add dynamic columns, the problem starts here. No problem when a single group, multiple groups is by attaching the calculations do not understand the results.



<telerik:RadGrid  ShowFooter="True" ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowSorting="True" GridLines="None" ShowGroupPanel="True" Skin="Web20" PageSize="15">
<MasterTableView ShowGroupFooter="True" GroupLoadMode="Client"  CellSpacing="-1"></MasterTableView>
<ClientSettings AllowDragToGroup="True"></ClientSettings>
<ExportSettings OpenInNewWindow="True" ExportOnlyData="True"  FileName="DataExport"></ExportSettings>
</telerik:RadGrid>

Protected Sub RadGrid1_ColumnCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles RadGrid1.ColumnCreated
 
           If e.Column.DataType.Name = "DateTime" Then
               CType(e.Column, Telerik.Web.UI.GridBoundColumn).DataFormatString = "{0:dd/MM/yyyy}"
           End If
 
           If e.Column.DataType.Name = "Decimal" Or e.Column.DataType.Name = "Double" Then
               CType(e.Column, Telerik.Web.UI.GridBoundColumn).DataFormatString = "{0:N3}"
               CType(e.Column, Telerik.Web.UI.GridBoundColumn).Aggregate = Telerik.Web.UI.GridAggregateFunction.Sum
           End If
 
           If e.Column.ColumnType = "GridBoundColumn" And counteklendi = False Then
               CType(e.Column, Telerik.Web.UI.GridBoundColumn).Aggregate = Telerik.Web.UI.GridAggregateFunction.Count
               CType(e.Column, Telerik.Web.UI.GridBoundColumn).FooterText = "Total : "
               counteklendi = True
           End If
 
       End Sub


You can see pictures attached.


Mehmet
Top achievements
Rank 1
 answered on 29 Jul 2011
1 answer
59 views
Hi ,

    I have a master Page and two hyper links in that.When i click one Link i am opening rad windowpopup.Till now this is fine.Now if i goto parent page without closing popup and clicking on second hyper link.That 2nd hyper link redirects to another page.This time my rad Popup is disappearing.I want to keep open the Popup when i click on 2nd heyper link also.Something like the popup i.e. opened should be independent of the parent page once after it is opened.Please Let me know how can i acheive this using rad window popup.I am using IE8 browser.

Vinil Narla
Svetlina Anati
Telerik team
 answered on 29 Jul 2011
3 answers
131 views
Hi,

I have two columns available for creating a heirarchical treeview:

PositionNumber ReportsTo
10030          10004
10122          10030
10838          10030
10923          10030
11015          10030
11015          10030
11229          10030
11422          10030
11453          10030

When binding, I get the error "These columns don't currently have unique values".

I understand the error. There are two '11015' PositionNumber values. These are two distinct records thast have the same position number... How can I make my treeview use the values as set out above?

Actually, I don't care what the control is just so long as I can view my data heirarchically presented. If another control is more suited, do let me know!

Thanks,
Richard
Dimitar Terziev
Telerik team
 answered on 29 Jul 2011
1 answer
156 views
I use RAD async upload control.
how to convert that file into byte using async upload control.
and how how to convert big files into bytes and store into sql(file size 300MB)


  
Peter Filipov
Telerik team
 answered on 29 Jul 2011
4 answers
132 views

dear all

have a good day

i've a radschadualr in which students segister there schadual.

this schadual consists of substances each one is (leacture-tutorial-lab).

what i need is forcing the student to choose these sub categories (leacture-tutorial-lab) before leaving to choose new subject. and if he tries an error msg popup saying that "you should choose all substance groop- please complete your choice".

here is the code i wrote but it does't work.

 

if
 
(this.treeView.SelectedNode == null)
 
return;
 
if (this.treeView.SelectedNode.Value != "m")
 
return;
 
string s = this.treeView.SelectedNode.Text;
 
string corsnode = this.treeView.SelectedNode.ParentNode.Text;
 
string cors_id = corsnode.Substring(0, corsnode.IndexOf('-') - 1).Trim();
 
string stu_id = Session["test"].ToString();
 
OracleConnection conn = new OracleConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
 
try
 {
 conn.Open();
 OracleCommand cmd = new OracleCommand("COMPLETE_GROUP_TYPE");
cmd.CommandType =CommandType.StoredProcedure;
 cmd.Connection = conn;
 cmd.Parameters.Add("COURSEID", OracleType.Char).Value = cors_id.ToString();
cmd.Parameters.Add("STUDENTID", OracleType.Char).Value = stu_id.ToString();
 cmd.ExecuteNonQuery();
 }
 catch (Exception ex)
 {
 Label2.Text ="ERROR."+ ex.Message;
 }
 finally
 {
 conn.Close();
 }
Plamen
Telerik team
 answered on 29 Jul 2011
4 answers
234 views
I have the following javascript function for the OnClientTransferred event of a RadListBox. This function works fine with Firefox and Chrome but I get a  javascript error with IE 8.
Here is my javascript.
     <telerik:RadCodeBlock ID="RadCodeBlockMain" runat="server"
<script type="text/javascript"
           function OnClientTransferredHandler(sender, e) { 
               var myitems; 
               var radbox = $find('<%= CurrentlyTransferredValues.ClientId %>'); 
               var radbox2 = $find('<%= SourceListBox.ClientId %>'); 
 
               myitems = e.get_items(); 
               myitems.forEach(function(item) { radbox.set_value(radbox.get_value() + item.get_value() + ","); }); 
               radbox2.set_value(e.get_sourceListBox().get_id()); 
                
           } 
 </script> 
   </telerik:RadCodeBlock> 
The error from IE 8 is the following.
"Microsoft Jscript runtime error: Object doesn't support this property or method"
It seems to fail at line with the forEach statement.

Thanks in Advance



Dimitar Terziev
Telerik team
 answered on 29 Jul 2011
1 answer
156 views
In release 2011.1 519 an issue was fixed according to Telerik's release notes: Fixed: RadMultiPage: RenderSelectedPageOnly property was applied multiple times and too early in the Page Lifecycle, setting non-selected PageViews to Visible=false and causing troubles persisting state of some of the controls inside the views

This change seems to be causing me problems now.
It seems that the PageView only becomes visible now very late in the cycle! During Page.LoadComplete the selected page view seems to still be invisible, only becoming visible by PreRender.

This is making it difficult to deal with child controls of the PageView as the controls appear to be invisible until Page.PreRender, by which stage it is often too late to handle certain tasks.

Can you confirm this is correct?

The old behaviour wasn't causing me problems (as far as I am aware). Perhaps I could work around these new changes by manually setting the PageView to visible in my own code. Do you know of any workaround?
Dimitar Terziev
Telerik team
 answered on 29 Jul 2011
1 answer
109 views
Hello,

To test your RadWindow component  for ajax, asp.net, i have create a page and did the same thing at the following exemple: http://demos.telerik.com/aspnet-ajax/window/examples/default/defaultcs.aspx.  But i didn't get the same result: I don't have any window display in my page!
I have taken a look at  "http://www.telerik.com/help/aspnet-ajax/window-overview-migrating-from-classic-to-prometheus.html"  to see  if there is any step missed. The explaination was not so clear to me since the links redirect  to an error page "http://www.asp.net/ajaxlibrary/act.ashx".

You may have an idea about the origin of this problem. Thank You for help.

E.Bougnon
Svetlina Anati
Telerik team
 answered on 29 Jul 2011
2 answers
119 views
Is it possible to add an OnError ClientEvent to the DatePicker control when a GridDateTimeColumn is opened for Edit?

there are 3 clientevents - OnDateSelected, OnPopupOpening, OnPopupClosing but not OnError

thanks
Marianne
Elliott
Top achievements
Rank 2
 answered on 29 Jul 2011
9 answers
277 views
Hi,

I use LoadControl in CodeBehind, like this: RadMenuItem.Controls.Add(LoadControl("/login.ascx"));

It work out fine, and my login control are now inside r.a.d.menu.

BUT - if /login.ascx fail to login, I would like the r.a.d.menu item to open again and show the user, that a login problem occurred.

AND - if I implement an UpdatePanel in my /login.ascx file, it will fail with:
Cannot unregister UpdatePanel with ID '' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.
Parameter name: UpdatePanel


Does anyone have solutions to these problems?
Felipe
Top achievements
Rank 1
 answered on 29 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?