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

Hi, i have been thrown an error with the following snippet of code

if (e.Item is GridGroupFooterItem)  
                {  
                    GridGroupFooterItem footerItem = e.Item as GridGroupFooterItem;  
                    footerItem["PracticeArea"].Text = "SubTotal";  
                    footerItem["TurnAround"].Text = TurnAroundTotal.ToString();  
                    footerItem["CustomerValue"].Text = CustomerValueTotal.ToString();  
} 

but same is working out when im trying to implement GridFooterItem.

please help.

Yavor
Telerik team
 answered on 22 Jan 2010
1 answer
138 views
Dear Telerik team,

I would like to achieve the following:

within the RadGrid, programmatically add a "Name" column with a hyperlink that links to a certain page. How do I achieve this programmatically?

So far I have added columns via the GridBoundColumn without much trouble:
e.g.  GridBoundColumn pname2;
        pname2 = new GridBoundColumn();
        RadGrid1.MasterTableView.Columns.Add(pname2);
        pname2.DataField = "Total";
        pname2.HeaderText = "Total";

However, I would like to add a column that has a hyperlink property also set. I assume I will have to use a GridTemplateColumn; i.e.
  GridTemplateColumn pname;
        pname = new GridTemplateColumn();
        RadGrid1.MasterTableView.Columns.Add(pname);
        pname.DataField = "Name";
        pname.HeaderText = "Name";
....?

How do I achieve this?

Thank you
Mark
Shinu
Top achievements
Rank 2
 answered on 22 Jan 2010
1 answer
82 views
I'm experiencing problems whilst dynamically loading user controls into a multipage with a tabstrip. I've looked at your example (http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/loadondemand/defaultcs.aspx) and am doing something similar, however, I have noted that you are experiencing the exact same problem in the demo.
If you click on the second tab(Products) and right-click on the page to ViewSource, you'll note that the source displayed is actually for the user control on the "Customers" tab and not the user control on the "Products" tab. During normal operation, this shouldn't be a problem, however, if you add javascript into the user control - none of your javascript functions will be found.
If you remove the RadAjaxManager, you'll notice that everything works as intended ie the right user control is displayed in the ViewSource. The problem is, you get the nasty postback!
I have tried various things to try rectify the problem without any success.
Please assist!
Yana
Telerik team
 answered on 22 Jan 2010
23 answers
888 views

Hello,

 

I tried to add a custom dialog from the tool bar of RadEditor for MOSS (full-featured version 5.5.1.0 installed on a WSS 3.0 environment).

 

To do it, I followed articles from Telerik’s web site.

But I had an issue, so I tried again following strictly this article:

http://www.telerik.com/help/aspnet-ajax/add_custom_dialog.html

 

I skipped the step 2 (about the button icon).

 

In the step 3, I replaced the version number in the path by 5.5.1.0

 

Finally for the step 5, I do clear my IE cache. I even close all windows, and do a IISreset.

 

The issue is that when I click on the button, I have the following alert:

The command CustomDialog is not implemented yet.

 

Which was also the original alert.

 

I verified arguments, names, paths, etc, but I can’t see what I am missing.

Note that I have previously customized the MediaManager with success (help to the support team).
If it could help, I can send you a copy of the modified/created files under the RadEditorSharePoint/5.5.1.0__1f131a624888eeed/Resources folder.

 

Thanks

 

Jeff

Stanimir
Telerik team
 answered on 22 Jan 2010
1 answer
95 views
Hi Everybory,

There is a page on my project where there is a painel and there is a radcalender inside painel. So, when de user clicks on "Insert Hours" button,  this pailne will set visible as false, then the rad calender is also setted as false.

When user clicks on "Cancel hours" button the painel is setted as true and then the radcalender shows again.

The problem is, when the user clicks on cancel button the radcalender show again and then the user try to edit any date of course, according on period of time that it was defined, the user cant edit the date, the user cant select or disable any date.

What happend to this component? Can anybody help me, please?

Thank you for all attention,

Carlos
Yavor
Telerik team
 answered on 22 Jan 2010
2 answers
270 views
Hi all,
 I have a Scheduler control with resource grouping like

 <telerik:RadScheduler ID="scheduler" runat="server" Width="100%" Height="80%" Skin="Office2007" 
  DataKeyField="Name" DataStartField="Start" DataEndField="End" DataSubjectField="Subject" 
  DayStartTime="08:00:00" DayEndTime="21:00:00" ShowFooter="false" RowHeight="22px" 
  MinutesPerRow="15" TimeLabelRowSpan="4" MonthVisibleAppointmentsPerDay="5" RowHeaderWidth="40px" 
  ShowFullTime="true" OverflowBehavior="Scroll" ShowAllDayRow="false" Font-Names="Segoe UI" 
  Font-Size="12px" GroupBy="Provider" GroupingDirection="Horizontal" HoursPanelTimeFormat="h ttt"> 
  <AdvancedForm Modal="true" DateFormat="M/d/yyyy" TimeFormat="h:mm tt" /> 
  <TimelineView UserSelectable="false" /> 
  <TimeSlotContextMenuSettings EnableDefault="true" Skin="Office2007" /> 
  <AppointmentContextMenuSettings EnableDefault="true" Skin="Office2007" /> 
 </telerik:RadScheduler> 
and in the c#

  ResourceType resType = new ResourceType( "Provider" ); 
  resType.ForeignKeyField = "ProviderID"; 
 
  scheduler.ResourceTypes.Add( resType ); 
  for( int i = 0; i < ProvidersList.CreateProvidersList().Count; i++ ) 
  { 
      scheduler.Resources.Add( new Resource( "Provider", i, ProvidersList.CreateProvidersList()[i] ) ); 
  } 

My problem is the advanced form doesn't show the Date and Time. It only contains the subject and the resource type 'Provider'.
Give me a solution for this problem.

Thanks & Regards
Prajeesh Prabhakar
Prajeesh Prabhakar
Top achievements
Rank 1
 answered on 22 Jan 2010
1 answer
121 views

Hi,

I've a radgrid with paging enabled. I 've the PagerStyle-Mode="NextPrevAndNumeric" PageSize="20" set in my ascx.
But I've only 33 items in the grid. And when I select 50 as the count I get all 33 rows. but I also lose my paging elemetns .
If I lose my paging elements(all page size combobox, < (left, right > keys ), then how'll I go back to page size 10. I no longer have paging enabled.??
What do I need to bring my paging elements back??
Pls help with code.

Princy
Top achievements
Rank 2
 answered on 22 Jan 2010
1 answer
672 views
We have a hierarchical grid with a gridhyperlinkcolumn at each level. There is a parameter that comes back with the NeedDataSource query called "active". If active is true we want the link to remain active. If it is false, we want the text label to remain but the link to be inactive.

Is there a way to do this?

thanks
Shinu
Top achievements
Rank 2
 answered on 22 Jan 2010
1 answer
52 views
I followed the HowTo on setting footer values in the code behind, but I'm getting a GridException because the footer value I'm looking for doesn't exist in the Detail Table, but the ItemDataBound is fired for all tables.

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
   {
        
if (e.Item is GridDataItem)
       {
           GridDataItem dataItem = (GridDataItem)e.Item;
           sum+=
double.Parse((dataItem[ "Template1"].FindControl("TextBox1") as TextBox).Text);
       }
        
else if (e.Item is GridFooterItem)
       {
           GridFooterItem footer = (GridFooterItem)e.Item;
           (footer[
"Template1"].FindControl("TextBox2") as TextBox).Text = sum.ToString();
           clientID = (footer[
"Template1"].FindControl("TextBox2") as TextBox).ClientID;
       }
   }


The bold line above throws the exception because the ItemDataBound was triggered by the Detail table which doesn't have a "Template1" column. How can I check for the existence of the "Template1" column thereby preventing the exception?


Thanks
Greg
Princy
Top achievements
Rank 2
 answered on 22 Jan 2010
2 answers
111 views
Hi.

If you have a RadTreeView with ServerSideCallBack mode on nodes, and the post-back caused by expanding these nodes causes something unexpected to happen, like a Response.Redirect (302 response) or errors (5xx responses) or something, the node will just appear to be loading its child nodes forever. The OnClientNodePopulationFailed function isn't called, and there's no error message. The node just pretends it's loading the child nodes forever.

How can I work around this? There are situations in our project that causes unexpected things to happen during post back sometimes, and we need to be able to handle them. Ever-loading tree nodes without any messages will not please our customers. It works fine if it's a regular post back (even through the UpdatePanel from the ASP.NET AJAX toolkit.)
Dave Pellegrin
Top achievements
Rank 1
 answered on 21 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?