Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
192 views
I'm adding a dropdown filter control as a usercontrol. Basically like the demo at http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx but take the RadComboBox and script and put them into a usercontrol. See code block

<telerik:GridHyperLinkColumn .... UniqueName="CustomerNumber" Groupable="False">
   <FilterTemplate>
      <vtx:GridFilter ID="CustNumFilter" Field="CustomerNumber" runat="server"/>
   </FilterTemplate>
</tlk:GridHyperLinkColumn>

I need to get access to the usercontrol programmatically to add the data to it but I cannot figure out how and where to do this.

Thanks

Colin Blakey

ColinBlakey
Top achievements
Rank 2
 answered on 14 Dec 2011
1 answer
108 views
The Load event gets fired as is's supposed to be. Why isn't the AppointmentDataBound event fired?
Ivana
Telerik team
 answered on 14 Dec 2011
21 answers
269 views
Hi,
I am using Telerik Q2 2009 RadScheduler together with RadTooltip as described in LiveDemos.Here is  the code of my control:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="monthschedule.ascx.cs" Inherits="com.epam.epm3ie.uc.artist.MonthSchedule" %> 
<%@ Reference Control="tooltip.ascx" %> 
<asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional" > 
    <ContentTemplate> 
        <telerik:RadScheduler runat="server" ID="radScheduler" Width="750px" DayStartTime="09:00:00" DayEndTime="22:00:00"   
            DataKeyField="UniqueID" DataSubjectField="eventName" DataStartField="startTime" DataEndField="endTime" 
            MonthView-VisibleAppointmentsPerDay="10" Culture="<%# UserCulture %>" FirstDayOfWeek="<%# UserFirstDayOfWeek %>" 
            SelectedView="MonthView" AllowDelete="false" MonthView-AdaptiveRowHeight="true" MonthView-HeaderDateFormat="MMMM yyyy" 
            OverflowBehavior="Expand" OnAppointmentDataBound="radScheduler_AppointmentDataBound" 
            StartEditingInAdvancedForm="false" OnClientAppointmentInserting="OnClientAppointmentInserting" 
            OnClientAppointmentEditing="OnClientAppointmentEditing" OnNavigationComplete="radScheduler_NavigationComplete"   
            OnAppointmentCreated="radScheduler_AppointmentCreated" OnDataBound="radScheduler_DataBound">  
            <Localization AdvancedAllDayEvent="All day"></Localization> 
            <AdvancedForm Modal="true" /> 
            <TimelineView UserSelectable="false" /> 
        </telerik:RadScheduler> 
        <telerik:RadToolTipManager runat="server" ID="radToolTipManager" Width="320" Height="170" 
        Animation="None" HideEvent="LeaveToolTip" Text="Loading..." 
        OnAjaxUpdate="radToolTipManager_AjaxUpdate" OnClientBeforeShow="clientBeforeShow" /> 
    </ContentTemplate> 
</asp:UpdatePanel> 

And the problrem is that when you try to navigate the scheduler in month view (change day to the another month or navigate month to next or previous using buttons < >) the content of the scheduler doesn't redraw. It looks like the month has changed, by there are no any appointment and cells of scheduler are absolutely empty even without date in the corner. But when you just move mouse pointer over the cells of scheduler, the wright appointmets draw in the cells. It is strange, but this situation take place only in Month view - in week view or day view everething is ok.  Other brousers like FireFox, Opera and even IE6 alwas redraw scheduler content.

Another problem relate to the appointment style in Month View of scheduler - in the IE6 and IE8 the appointment name doesn't cut if it is longer than the cell, this looks not good - scrollbars appear in IE, and borders of the vertical columns of days are shifted relative to the week day names in the top of scheduler. 
Helen
Telerik team
 answered on 14 Dec 2011
1 answer
72 views

Hi
I'd like some guidance on the best approach to solve a problem with a rad dropdown field in a rad grid.

I have an aspx page in which there is a rad tabstrip with two radtabs.

The contents of the selected rad tab is a radgrid that is programmatically generated ON THE SERVER SIDE, in the code behind.

Each row in the grid can be edited.  The editing feature is implemented by a button in the grids command panel labeled Edit.
When pressed, an ItemDataBound event is fired on the server side, it then seeks the column to be converted to a dropdown, in the currently selected row and modifies it into a  radcombobox.  I'm new to telerik so I'm not certain if the radcombox has a text mode for display and a dropdown for edit.  It does not appear that the specific cell has a unique name, it is identified by selected row and column name only.

My issue is that often, the width of the column is less than the width of the GridDropDown control resulting in the drown down button on the right of the control to not appear unless the width of the column is increased.  The documentation suggests that the way to correct this is to issue a repaint() of the client side control. 

I have several questions:
Since this conversion of the display from text to dropdown is done on the server side, how do obtain the client side control to issue a repaint()?
Is there jquery selector that will just find all the raddropdown controls on the page and refresh them all (sort of like selecting all div tags)?  What is the syntax? and how do I fire it after the server side has made the change to edit mode?

Thanks.  I really appreciate all suggestions.

Andrey
Telerik team
 answered on 14 Dec 2011
3 answers
69 views
The new Group Header Templates functionality in Q3 2011 appears to have broken some of the functionality which worked before. I define my groupinsettings server-side as such:
Dim fId As New GridGroupByField
 fId.FieldName = "ID"
 fId.Aggregate = GridAggregateFunction.Count
 fId.FormatString = "({0})"
 fId.HeaderValueSeparator = " "
 fId.HeaderText = " "
 
Dim expr As New GridGroupByExpression
Dim fState As New GridGroupByField
fState.FieldAlias = "State"
fState.FieldName = "GroupState"
fState.FormatString = "{0}"
 
expr.SelectFields.Add(fState)
expr.SelectFields.Add(fId)
 
Dim fGroupState As New GridGroupByField
fGroupState.FieldName = "GroupState"
expr.GroupByFields.Add(fGroupState)
 
MyGrid.MasterTableView.GroupByExpressions.Add(expr)


In q2 it looked like the attached q2.jpg. In Q3 it look slike the attached q3.jpg. There is no difference in code.
Martin
Telerik team
 answered on 14 Dec 2011
2 answers
62 views
Hello Team;

I would like to suggest a couple of cosmetic improvement with Metro theme and ASP GridView.
  • The refresh button icon on the command area is unclear and distorted
  • On the same area the "+" icon for the Add a new record is hard to see. Should be more dark or White on the blue background.
  • In the Popup windows, there is no window header color and the border color is too weak. That window needs to stand out better.
  • Generally, there in Metro, there are lots of "Light Gray" color is used for lines in particular in Grid. Would it be possible to make it a bit darker? Users say, the line color is washed out.

I think the other upcoming Metro themes should have same improvements.

Thank you in advance!

Ben Hayat
Top achievements
Rank 2
 answered on 14 Dec 2011
1 answer
44 views
Hi sir,
iam using scheduler with customized advance form as shown in demo...appointment color picker is not getting visible in IE...where as it is visible  in chrome,firefox...please go through the attached image...please give me solution as soon as possible..




Thanks
Rajesh 
Ivana
Telerik team
 answered on 14 Dec 2011
1 answer
73 views
Hi Everybody,

Creating new folder in file explorer is not working for me. I tried creating it on client side.
I tried using the following method, it didn't worked, it shows the alert('in') repeatedly like a loop, and its not going through.

Anyone please give me a suggestion.

<telerik:RadFileExplorer runat="server" ID="FileExplorer1" Width="95%" Height="450px"
  OnClientDelete="OnClientDelete" CssClass="rfeFocus" AllowPaging="true" PageSize="6"
  EnableCopy="true"   EnableCreateNewFolder="true" OnClientCreateNewFolder="GetName">
               <Configuration ViewPaths="~/FileExplorer/Default/Root Folder/Documents" UploadPaths="~/FileExplorer/Default/Root 
                  Folder/Documents" DeletePaths="~/FileExplorer/Default/Root Folder/Documents" />
               <KeyboardShortcuts FocusFileExplorer="Ctrl+f2" FocusToolBar="Shift+1" FocusAddressBar="Shift+2"
                 FocusTreeView="Shift+3" FocusGrid="Shift+4" FocusGridPagingSlider="Shift+5" UploadFile="Ctrl+u"
                 Back="Ctrl+k" Forward="Ctrl+l" NewFolder="Ctrl+n" Refresh="Ctrl+f3" ContextMenu="Shift+m" />
</telerik:RadFileExplorer>

function GetName()
{
            alert('in');
            var MyFM = $find('<%= FileExplorer1.ClientID %>');
            var appRoot = '<%= VirtualPathUtility.ToAbsolute("~") %>';
            MyFM.createNewDirectory(appRoot + "/Test", "556477");
            
}

Any one please provide a solution to this issue.

Thank You,
Dobromir
Telerik team
 answered on 14 Dec 2011
1 answer
113 views
In my .aspx file I have:


<style type="text/css">
.rsContent .rsContentTable .rsRow .rsSatCol,  
         .rsContent .rsContentTable .rsRow .rsSunCol   
        {  
          background:#D0ECBB;  
        }
</style>


I want for a specific cell in the scheduler to be colored green. With my code every column from Saturday and Sunday is colored. But I want only those cells which have appointments to be colored green. How to do this?
Plamen
Telerik team
 answered on 14 Dec 2011
2 answers
165 views
Hi,

I try to execute some server-side code when the cross is clicked. This code needs to deside if the window can be closed or not. I used this code for it:

OnClientBeforeClose = "function(s, e) {e.set_cancel(true);__doPostBack('" + UniqueID + "', '" + CloseDialog + "');}";


Inside the raisePostBack method I call "window.close()" client-sided if my code want the window to close.

I used parts of this sample to make this, but this is totaly handled client-side:
http://www.telerik.com/community/code-library/aspnet-ajax/window/confirm-closing-of-a-radwindow-by-using-radconfirm.aspx

My problem is that when I call the "window.close()" method client-sided the onClientBeforeClose method is executed first again and will stop the close action of the window.

Any suggestion how I can solve this problem?

Thanks!
Erik
 
Erik
Top achievements
Rank 1
 answered on 14 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?