Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
88 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
265 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 ); 
  forint 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
111 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
661 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
47 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
100 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
2 answers
165 views
Hi All,

I know I am missing something simple here.

Have a multi-column combo box, listing Name, DoB, Age, Gender.

Can retrieve record_id in SelectedIndexChanged by
strPatientRecord_ID = RadComboBox1.SelecterdValue.ToString, so thats no a problem.

Without going back to the database, I would like to pass all the column values to the next webpage using session variables to use as a header for the patient info on the page.

What am I missing?

Thanks for the help, Kevin

 

Kevin
Top achievements
Rank 1
 answered on 21 Jan 2010
3 answers
162 views
I am using custom filtering in  my grid using the filter template as shown here:
http://www.telerik.com/help/aspnet-ajax/radgridfiltertemplate.html

I have a radcombobox in my fliter template.
the issue I have is once i select something in the dropdown and set the filter expression...the gid filters the recordsbut in the display my combobox does not show the selected value.
it defaults to the first item.

How can i retain the combobox selected value?

my grid column declaration:

<

telerik:GridTemplateColumn HeaderText="Name" UniqueName="RelType" HeaderStyle-Width="25%"

 

 

DataField="RelationType">

 

 

<FilterTemplate>

 

 

<telerik:RadComboBox ID="RadComboBoxRelatedContacts" runat="server" AutoPostBack="true" OnSelectedIndexChanged="RadComboBoxRelatedContacts_SelectedIndexChanged">

 

 

<Items>

 

 

<telerik:RadComboBoxItem Text="Family" Value="Family" />

 

 

<telerik:RadComboBoxItem Text="Business" Value="Business" />

 

 

<telerik:RadComboBoxItem Text="Personal" Value="Personal" />

 

</Items>

 

 

</telerik:RadComboBox>

 

 

</FilterTemplate>

 

 

<ItemTemplate><asp:Label ID="Label1" runat="server" CssClass="label" Visible='<%# !Convert.IsDBNull(Eval("Relationship")) %>'><br /><b>Relationship</b>:&nbsp;</asp:Label><%# Eval("Relationship")%>

 

 

<asp:Label ID="Label2" runat="server" CssClass="label" Visible='<%# !Convert.IsDBNull(Eval("RelationType")) %>'><br /><b>Rel. Type</b>:&nbsp;</asp:Label><%# Eval("RelationType")%>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

aspx.cs

protected

void RadComboBoxRelatedContacts_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)

 

{

 

RadComboBox list = (RadComboBox)sender;

 

 

string filterExpression = "([RelationType] = '" + list.SelectedValue + "')";

 

 

GridFilteringItem item = (GridFilteringItem)list.NamingContainer;

 

 

RadGrid gridKeyRel = (RadGrid)item.NamingContainer.NamingContainer.NamingContainer;

 

gridKeyRel.MasterTableView.FilterExpression = filterExpression;

gridKeyRel.MasterTableView.Rebind(); 

}

Brian Schmidt
Top achievements
Rank 1
 answered on 21 Jan 2010
2 answers
179 views
Hi

I'm testing Scheduler component and got a question.
Is it possible to allow appointments to be added for multiple resources at once, by selecting resources with checkboxes?

Thanks.


John John
Top achievements
Rank 1
 answered on 21 Jan 2010
23 answers
1.5K+ views
I am unable to add the RadControls (Telerik.Web.UI.dll) to the Visual Studio 2008 toolbox.

 - I tried using the ToolBoxInstaller.exe application. This did not accomplish it.

 - I tried manually adding the Telerik.Web.UI.dll file to a tab in the toolbox (By creating a tab for Telerik, right clicking it, and selecting Choose Items) and I receive this error:

    There was an error loading types from assembly
    'C:\Telerik\bin35\Telerik.Web.UI.dll\'
    'Could not load file or assembly 'Telerik.Charting,
     Version=2.0.0.0,Culture=Neutral, PublickKeyToken=d14f3dcc8e3e8763'
    or one of its dependencies. The system cannot find the file specified.'

Telerik.Charting.dll is also in the same folder. This happens regardless of whether I use the bin folder or the bin35 folder. I am able to use the controls. It's just that I am not able to add the controls to a toolbox, and I am also not able to see the Intellisense for the telerik controls.
   
   
squicc
Top achievements
Rank 1
 answered on 21 Jan 2010
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?