Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
86 views
Hi,

Recently I got situation to update the Telerik version 2013 (Which I installed this year) to my existing project and the existing project previously had the Telerik version  2011 or 2012 (Which I instaleed last year July or August 2012). 

After this upgrade I am getting "null" error/exeption on tab click.

Due to this issue I have rolled back to use the old/previous Telerik Version. But I am interested to use the latest/new version of Telerik conrtrols.

It will great if any one is helping me to get ride of that issue.

Thanks in advance !

Thank You
Regards
Ganapathy 
Eyup
Telerik team
 answered on 08 Mar 2013
1 answer
142 views
In this demo:

http://demos.telerik.com/aspnet-ajax/input/examples/radtextbox/firstlook/defaultvb.aspx

in the radtextbox field associated with the label "Single line:", when text is entered, a small "x" appears in the right hand side of the radtextbox.  How is this accomplished?  It is not apparent to me in the code.

Thanks,
Dan 
Eyup
Telerik team
 answered on 08 Mar 2013
1 answer
546 views
I see many other posts about this problem, but none seem to be the same problem i am having.

The scenario is simple....i have a single .ASPX page which contains a single RadComboBox and 3 or 4 usercontrols, all of which contain a single RadGrid.  Based on the selection made in the RadComboBox i want to change the datasource for each of the RadGrids in the usercontrols, and rebind them.

When the page is initially opened, the ComboBox is empty. When i select an item it fires the event as expected and everything seems to be fine, datasources are correctly modified, and RadGrids rebind. 

However, when i then change the selection by selecting a different item in the RadCombobox, the OnSelectedIndexChanged event does not fire....and i am confused as to why.  It also seems as though I have to click twice on an item to get it to make the selection....no idea why this would be the case either.

Here are the relevant bits of code:

.ASPX Page
<asp:ObjectDataSource ID="dsTerm" runat="server" SelectMethod="FetchList" TypeName="BenemTech.SHSR_DonorMgmt.DTO.TermDTO" />
 
<telerik:RadComboBox ID="cboGraduatingTerm" runat="server"
                    DataSourceID="dsTerm" DataTextField="Description"
                    DataValueField="TermID" EmptyMessage="Please Select"
                    onselectedindexchanged="cboGraduatingTerm_SelectedIndexChanged" AutoPostBack="true" AppendDataBoundItems="true">
                    <Items>
                    <telerik:RadComboBoxItem Text="Please Select" Value="-1" />
                    </Items>
                </telerik:RadComboBox>

Code Behind:
protected void Page_Load(object sender, EventArgs e)
        {
        }
 
protected void cboGraduatingTerm_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            int termID = System.Convert.ToInt32(this.cboGraduatingTerm.SelectedValue);
 
            if (termID > 0)
            {
                pnlRecipients.Visible = true;
 
                // Need to set the value of the GraduatingTermID of the recipients control. By doing so it should also be rebound.
                this.usrSelectPSRecip.GraduatingTermID = termID;
                this.usrSelectMSRecip.GraduatingTermID = termID;
                this.usrSelectHSRecip.GraduatingTermID = termID;
                this.usrSelectUnivRecip.GraduatingTermID = termID;
            }
            else
            {
                pnlRecipients.Visible = false;
            }
       }

the user controls "usrSelectPSRecip" etc are just a simple usercontrols that each have a single Radgrid in it as well as a few additional properties.

The important thing is that the first time i select an item from the RadCombobox, it works great.......but anytime after that it doesn't fire the event.

Any suggestions as to why?

Thanks in advance.

Paul H.
Nencho
Telerik team
 answered on 08 Mar 2013
2 answers
130 views
Currently we use RadGrid (Hierarchy) with only 2 levels
Parent

ColumnA, ColumnB,                                                                                       ColumnC, ColumnD, ColumE
+ColumnF (set to total width of ColumnA and ColumnB but different data), ColumnC, ColumnD, ColumnG, ColumnH
+ColumnF (set to total width of ColumnA and ColumnB but different data), ColumnC, ColumnD, ColumnG, ColumnH
...
ColumnA,  ColumnB,                                                                                      ColumnC, ColumnD, ColumE
+ColumnF (set to total width of ColumnA and ColumnB but different data), ColumnC, ColumnD, ColumnG, ColumnH
+ColumnF (set to total width of ColumnA and ColumnB but different data), ColumnC, ColumnD, ColumnG, ColumnH
+ColumnF (set to total width of ColumnA and ColumnB but different data), ColumnC, ColumnD, ColumnG, ColumnH

I see that TreeList does the alignment already between the parent and child rows.

My question is can the child of a TreeList have different columns as the parent?
Michael
Top achievements
Rank 2
 answered on 08 Mar 2013
1 answer
98 views
Hello.  I'm wondering if I can set up the RadAsyncUpload control to allow the page to be validated for required fields before the user can select files for upload.

Currently it's set up so I'm using the OnClientFileSelected event to try to catch the validation.  It fails validation, but the Async upload is still performed.   I'd prefer to perform validation when the "SELECT" button is clicked, and prevent opening of the file dialog window altogether.

Is there a way to do this?  Thanks.
<telerik:RadAsyncUpload ID="RadUpload" ControlObjectsVisibility=None runat="server" OnClientFilesUploaded="OnClientFilesUploaded" OnClientFilesSelected="OnClientFilesSelected"
HideFileInput="true" Skin="Hay" MultipleFileSelection="Automatic" AllowedFileExtensions=".jpeg,.jpg,.png,.gif" />

function OnClientFilesSelected(sender)
{
if ( !Validate() ) return false;
}
Plamen
Telerik team
 answered on 08 Mar 2013
7 answers
318 views
I have a customer who wants me to build a reservation system.

The problem is that lessens can be from different lenght. 25 min, 40 min, 50 min 1h10 min for example (even worse he wants it to be multi client capable where they can set there own times)

To make it even more complicated some of the clients my want any lessons to follow streight to the next. Other might want a 5 or 10 minutes break after each lesson that was booked.

Imagine this
Golf Pro 1 gives 25min, 50min and 1h 30 min lessons and wants 5 minutes break after each booking.
Golf Pro 2 gives 25min, 40 min, and 1 hour lessons no breaks within.

I rember having done a reservation system with radsceduler a while back but the each had 30 minutes slots on the hour and half hours with no breaks in between.

Anyone sees an solution how I would programmicaly approach this problem (more of of a concept question) and if RadScheduler could handle the task. Or maybe Radsceduler only for showing booked times and show available times with an pop up or so.

Markus
Plamen
Telerik team
 answered on 08 Mar 2013
1 answer
77 views
I have a RadCalendar on a site I'm developing and need to set a number of days as special days (or at least I need to highlight days somehow).

I have created a style that I can apply to them, and it works perfectly if I set the border and background colours, but as soon as I try to apply a background image instead of the background colour (so the day has a gradient) it doesn't.

I've tried setting !important in my stylesheet but it's made no difference.

I have also tried applying the style using a CalendarDayTemplate like so without any joy...

<CalendarDayTemplates>
    <telerik:DayTemplate ID="BusyDayTemplate" runat="server">
        <Content>
            <div class="rcTemplate rcDayDate BusyDay">
                [DayOfMonth]
            </div>
        </Content>
    </telerik:DayTemplate>
</CalendarDayTemplates>


How can I use the default built in skin for the RadCalendar, but apply a background image to the special day?

Thanks.
Galin
Telerik team
 answered on 08 Mar 2013
2 answers
270 views
I need to be able to change the background colour of the cell for a given day and resource in timeline view to show days when a resource is not available (weekends etc, but could be any day)

Can this be done and if so, how?

Is there a "day render" event for the ASP.Net RadScheduler that I could use and then set some style on the cell?

Thanks
Karl
Top achievements
Rank 1
 answered on 08 Mar 2013
0 answers
102 views
Hi All,
 I am facing so much problem in Rad  Tab.Actually master page is not getting updated.so i used update panel.After adding Update Panel i got this type of error which is dedefined below. while click on any module which is used telerik rad tab,i am getting this below error in pop up window.
  
Please help me to fix this issue.


Microsoft JScript runtime error: Sys.InvalidOperationException: A control is already associated with the element. 

              This is code--
 <body scroll="no">
    <form id="thisMainform" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

  <%--  Added UpdatePanel to refresh the page  for opening proper Help Docs--%>
    <asp:UpdatePanel ID ="Updatecontrols" runat="server" >
    <ContentTemplate>
    <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0"
        bgcolor="#ffffff">
        <tbody>
            <tr>
                <td align="center" valign="middle" class="headerbg" height="14%">
                    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td align="left" valign="middle" class="logo" style="padding-left: 10px">
                                <img runat="server" src="~/images/Client_Logo.png" />
                            </td>
                            <td align="right" valign="top">
                                <table width="100%" height="60" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td align="right" valign="top">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td colspan="7" align="right" style="padding-right: 10px;" height="45">
                                                        <img runat="server" src="~/images/adaptive_logo.gif" width="246" height="37" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="75%" align="left" valign="top">
                                                        <asp:Label ID="lblUserName" runat="server" Text="Label"></asp:Label>
                                                    </td>
                                                    <td width="24" align="left" valign="middle">
                                                        <img runat="server" src="~/images/Home_icon.gif" width="14" height="14" hspace="5" />
                                                    </td>
                                                    <td width="70" align="left" valign="middle">
                                                        <asp:LinkButton ID="lnkBtnHome" runat="server" Text="Home" PostBackUrl="~/AdaptivePortfolio/AdaptivePortfoliloMain.aspx"
                                                            CausesValidation="false" />
                                                    </td>
                                                    <td width="25" align="left" valign="top">
                                                        <img runat="server" src="~/images/Help_icon.gif" width="16" height="20" />
                                                    </td>
                                                    <td width="70" align="left" valign="middle">
                                                        <asp:LinkButton ID="lnkbtnHelp" runat="server" Text="Help" CausesValidation="false" />
                                                    </td>
 
                                                      <td width="25" align="left" valign="top">
                                                        <img id="ImgVLink" runat="server" src="~/images/video.png" width="16" height="20" />
                                                    </td>
                                                    <td width="70" align="left" valign="middle">
                                                  
                                                        <asp:LinkButton ID="lnkBtnVLink"  runat="server" Text="Video"  CausesValidation="false" /> 
                                                       <%--  OnClick="ShowVLink()"--%> 
                                                    </td>



                                                    <td width="25" align="left" valign="top">
                                                        <img id="imgLogout" runat="server" src="~/images/Loigout_icon.gif" width="18" height="20" />
                                                    </td>
                                                    <td width="133" align="left" valign="middle">
                                                        <asp:LinkButton ID="lnkbtnLogout" runat="server" OnClick="lnkbtnLogout_Click" Text="Logout"
                                                            CausesValidation="false" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td height="6" colspan="2" align="left" valign="top" bgcolor="#4DA5CF">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top" height="77%">
                    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                <telerik:radtabstrip runat="server" id="RadTabMain" width="100%" skin="Office2007"
                                    selectedindex="0">
                                    <Tabs>
                                        <telerik:RadTab runat="server" Text="Adaptive Portfolio System" Value="portfolio"
                                            NavigateUrl="~/AdaptivePortfolio/AdaptivePortfoliloMain.aspx" />
                                        <telerik:RadTab runat="server" Text="Adaptive Management System" Value="Management"
                                            NavigateUrl="~/AdaptiveManagement/bin-release/AMSHome.aspx" />
                                    </Tabs>
                                </telerik:radtabstrip>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" height="100%">
                                <asp:ContentPlaceHolder ID="ContentPlaceHolderMain" runat="server">
                                </asp:ContentPlaceHolder>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
</tbody>
    </table>
   
   </ContentTemplate>
 </asp:UpdatePanel>
Kamal
Top achievements
Rank 1
 asked on 08 Mar 2013
3 answers
157 views
Hi,

I want to make a similar kind of graphs as per attached image.  I couldn't find the solution of  three things 

1-  How to display the month labels on top 
2- Highlighting the specific XAxies column as gray.
3- Making XAxies column clickable so that user can edit monthly data.
Marin Bratanov
Telerik team
 answered on 08 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?