Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
107 views
Hello,

Is there a way to remove or just have one of my column headings? 

Thanks,
Michael
Bruno
Top achievements
Rank 2
 answered on 20 Feb 2009
1 answer
166 views

I have an issue where a Detail Table (GridTableView) column is being clipped by the parent RadGrid making the long field data inaccessible.
Picture

What happens here, is the width of the detail table column exceeds the width of the parent table.
In the process the data on the right gets cut off and there's no scroll bar to access that clipped data.

I have tried setting horizontal scroll bars on the RadGrid which only worked for scrolling to the parent data and
did nothing for the Detail tables, it still got clipped by the width of the parent grid.

I have also tried inserting a scrollable DIV inside the Comments field to no avail.

Is there a way to either add a scroll bar to the Detail Table?


Thanks!

Sebastian
Telerik team
 answered on 20 Feb 2009
1 answer
306 views

I am creating a site that uses RadWindows extensively and have only come to realize now that if someone presses the ESC key windows will close.  Is there anyway to prevent this behavior other than capturing and canceling the ESC key in every last RadWindow.  My site has RadWindows whose pages contain TabStrips with a RadWindow attached to each tab.  Adding the javascript event handling and canceling to every page manually seems to be a poor option.

Thanks for any advice,
Nathan
Fiko
Telerik team
 answered on 20 Feb 2009
2 answers
136 views
Can some one help me eith this problem. When I call radalert in my program I receive the following JavaScript error 

Object does not support this property or method

This is the code in my aspx page

        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
        <telerik:RadWindowManager ID="Singleton" runat="server" Skin="Vista" EnableEmbeddedScripts="true">
            <Windows>
                <telerik:RadWindow ID="RadWindow1" runat="server" NavigateUrl="COBRAEvents.aspx"
                    OpenerElementID="Label1" Skin="Vista" Left="5" Top="1px" OnClientClose="OnClientclose"
                    ReloadOnShow="True" Style="display: none;" Behavior="Default" InitialBehavior="None"
                    Modal="True" VisibleStatusbar="False" Width="730px" Height="375px" ShowContentDuringLoad="False"
                    VisibleTitlebar="False">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
        <script type="text/javascript">
            function ShowAlert()

            {
               radalert("Data Saved Successfully",320,200,"Success");
            }
       </script>

I call the function ShowAlert() as follows
           string strSavesSuccessfully = "<script>Javascript:ShowAlert();</script>";
            Page.ClientScript.RegisterStartupScript(Page.GetType(), "strSavesSuccessfully", strSavesSuccessfully);


Thank you
Maher


Maher
Top achievements
Rank 1
 answered on 20 Feb 2009
1 answer
88 views
I have a radGrid that is using Inline Edit. The issue here is that I'm currently using a asp:Calendar control but would like to use the rad:RadCalendar control. However when I simply replace the ASP one with the radCalendar the updateCommand no longer fires when clicking update in the current row that is in edit mode? Very strange.

Here is the Code and I've shown both Calendar controls here. The radCalendar control is currently commented out.

Thanks,

<rad:RadGrid ID="holidayRadGrid" AllowPaging="True" 
                    AllowSorting="True" GridLines="Horizontal" HorizontalAlign="Center" ShowFooter="true" 
                    ShowStatusBar="true" EnableAJAX="false" EnableAJAXLoadingTemplate="True" LoadingTemplateTransparency="25" 
                    AutoGenerateColumns="False" Skin="Grid" SkinsPath="~/App_Themes/VertexDefault" OnNeedDataSource="holidayRadGrid_NeedDataSource" 
                    OnUpdateCommand="holidayRadGrid_UpdateCommand" PageSize="18" runat="server"
                    <MasterTableView DataKeyNames="HolidayID,HolidayYear,HolidayDate,HolidayName" EditMode="InPlace" TableLayout="Auto" AllowNaturalSort="false" 
                        BorderColor="Black"
                        <Columns> 
                            <rad:GridEditCommandColumn UniqueName="EditCommandColumn" AutoPostBackOnFilter="false" HeaderStyle-Width="10px" /> 
                            <rad:GridBoundColumn HeaderStyle-Width="60px" DataField="HolidayName" HeaderText="Holiday" 
                                SortExpression="HolidayName" UniqueName="HolidayName" ReadOnly="true" /> 
                            <rad:GridTemplateColumn HeaderStyle-Width="100px" DataField="HolidayDate"   
                                SortExpression="HolidayDate" UniqueName="HolidayDate" > 
                                <ItemTemplate> 
                                    <asp:Label ID="holidayDateLabel" Text='<%# (DateTime) Eval("HolidayDate") == DateTime.MinValue ? ValidDate.ToString() : String.Format("{0:MM/dd/yyyy}", Eval("HolidayDate")) %>' runat="server" /> 
                                </ItemTemplate> 
                                <EditItemTemplate> 
                                   <asp:Calendar ID="holidayDateCalendar" SelectedDate='<%# (DateTime) Eval("HolidayDate") == DateTime.MinValue ? ValidDate : Eval("HolidayDate") %>'  VisibleDate='<%# (DateTime) Eval("HolidayDate") == DateTime.MinValue ? ValidDate : Eval("HolidayDate") %>' runat="server" /> 
                                   <%--<rad:RadCalendar ID="holidayDateCalendar" AutoPostBack="true" EnableMultiSelect="false" SelectedDate='<%# (DateTime) Eval("HolidayDate") == DateTime.MinValue ? ValidDate : Eval("HolidayDate") %>'  VisibleDate='<%# (DateTime) Eval("HolidayDate") == DateTime.MinValue ? ValidDate : Eval("HolidayDate") %>' runat="server" />--%> 
                                </EditItemTemplate> 
                            </rad:GridTemplateColumn> 
                            <rad:GridBoundColumn DataField="HolidayID" UniqueName="HolidayID" ReadOnly="true" Display="false" /> 
                            <rad:GridBoundColumn DataField="HolidayYear" UniqueName="HolidayYear" ReadOnly="true" Display="false" /> 
                        </Columns> 
                    </MasterTableView> 
                    <ClientSettings EnablePostBackOnRowClick="true"
                                <ClientEvents OnGridCreated="holidayRadGridCreated" OnRowContextMenu="holidayRadGridRowContextMenu" /> 
                    </ClientSettings> 
                </rad:RadGrid> 

Sebastian
Telerik team
 answered on 20 Feb 2009
4 answers
117 views
I'm using a master page that uses user controls with an AJAX Manager and AJAX Manager Proxies.  In my page, I have the splitter that has two panes.   Pane one contains a control that has a Radio Button List.  When the radio button list value changes, it raises an event.  In Pane 2 is the RadScheduler.  The code-behind captures the first panes Radio Button List event that is raised and captures the event.  This works....BUT....the radscheduler is one step behind updating.  So, if I select the radio button with the value of 10, the radscheduler MinutesPerRow does not change on the AJAX call.  If I change the radio button list value to 15, the radscheduler will update with the 10, not the 15.  If I change it to 25, it will update the scheduler to 15 and not 25....why is there this delay????


<%

@ Page Language="VB" MasterPageFile="~/TelerikAJAXMasterPage.master" AutoEventWireup="false" CodeFile="Scheduler.aspx.vb" Inherits="Scheduler_Scheduler" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<%

@ Register TagPrefix="Scheduler" TagName="DisplayPanel" Src="~/Controls/Scheduler/DisplayPanel.ascx" %>

 

<

asp:Content ContentPlaceHolderID="AJAXContentPlaceHolder" runat="server">

 

 

<script type="text/javascript" language="javascript">

 

 

function AppointmentEditing(sender, eventArgs) {

 

 

var apt = eventArgs.get_appointment();

 

window.radopen(

"Appointment.aspx?Mode=Edit&AppointmentId=" + apt.ID, "rwAdvancedForm");

 

eventArgs.set_cancel(

true);

 

}

 

function AppointmentInserting(sender, eventArgs) {

 

 

var start = formatDate(eventArgs.get_startTime());

 

 

var isAllDay = eventArgs.get_isAllDay();

 

 

// New appointment

 

window.radopen(

"Appointment.aspx?Mode=Insert&Start=" + start + "&IsAllDay=" + isAllDay, "rwAdvancedForm");

 

eventArgs.set_cancel(

true);

 

}

 

function formatDate(date) {

 

 

var year = padNumber(date.getUTCFullYear(), 4);

 

 

var month = padNumber(date.getUTCMonth() + 1, 2);

 

 

var day = padNumber(date.getUTCDate(), 2);

 

 

var hour = padNumber(date.getUTCHours(), 2);

 

 

var minute = padNumber(date.getUTCMinutes(), 2);

 

 

return year + month + day + hour + minute;

 

}

 

function padNumber(number, totalDigits) {

 

number = number.toString();

 

var padding = '';

 

 

if (totalDigits > number.length) {

 

 

for (i = 0; i < (totalDigits - number.length); i++) {

 

padding +=

'0';

 

}

}

 

return padding + number.toString();

 

}

 

function refreshScheduler() {

 

 

var ajaxManager = $find("RadAjaxManager2");

 

ajaxManager.ajaxRequest(

'RebindScheduler');

 

}

</

script>

 

<

telerik:RadSplitter ID="rpScheduler" Width="1024" BorderSize="0"

 

 

FullScreenMode="true" BorderStyle="None" runat="server" Skin="Vista">

 

 

<telerik:RadPane ID="rpOptions" Width="22px" runat="server">

 

 

<telerik:RadSlidingZone ID="rszOptions" runat="server">

 

 

<telerik:RadSlidingPane Title="Display" Width="230" runat="server">

 

 

<Scheduler:DisplayPanel ID="dpSideBar" runat="server" />

 

 

</telerik:RadSlidingPane>

 

 

</telerik:RadSlidingZone>

 

 

</telerik:RadPane>

 

<

telerik:RadPane ID="rpBody" runat="server">

 

 

<telerik:RadScheduler ID="rsMainScheduler"

 

 

DataEndField="End" DataKeyField="ID" DataStartField="Start"

 

 

DataSubjectField="Subject"

 

 

StartEditingInAdvancedForm="true"

 

 

StartInsertingInAdvancedForm="true"

 

 

OnClientAppointmentEditing="AppointmentEditing"

 

 

OnClientAppointmentInserting="AppointmentInserting"

 

 

SelectedView="DayView"

 

 

Height="600"

 

 

runat="server" Skin="Vista" MonthView-HeaderDateFormat="MMMM, yyyy">

 

 

<TimelineView UserSelectable="false" />

 

 

</telerik:RadScheduler>

 

</

telerik:RadPane>

 

</

telerik:RadSplitter>

 

<

telerik:RadAjaxManagerProxy ID="rampScheduler" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="rpScheduler">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="rpScheduler" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

</

telerik:RadAjaxManagerProxy>

 

</

asp:Content>

 

Peter
Telerik team
 answered on 20 Feb 2009
5 answers
104 views
I would like to have a bottom (blue) border on the input text box of the Default2006 skin just like on the sides and the top.  I've tried changing some styles in the skin's stylesheet, but can't seem to make it work.  Any ideas?
Sebastian
Telerik team
 answered on 20 Feb 2009
1 answer
115 views
Hi,
I need to pick images in my application and the File Explorer Demo shows exactly what I need.
There's just one problem, my images is on a different domain!

Can the File Explorer grab directories and files through for example a web service?
Or is there some other way to get my images?

/Mattias

Lini
Telerik team
 answered on 20 Feb 2009
5 answers
140 views
Hi there,

I have formatted a few RadDockZones within the confines of a table.  I have a table with 3 rows, 1st and 3rd row has 1 cell that spans the page, the middle row has 3 cells, middle cell is 40% in width and the outer 2 are 30% each.

When I load the page I can instantly see that the zones are slightly larger and hanging off of the right hand edge of the table cell.  Any idea how I can resolve this issue as it looks a bit odd at current.

Thanks in advance!
Tim Carmichael
Top achievements
Rank 1
 answered on 20 Feb 2009
1 answer
95 views
first off...I think I've read everything there is to read as far as examples on your site to no avail

i've got a radgrid...and in the editformtemplate a button that opens the radwindow

the radwindow opens a page with another radgrid on it...there is a GridButtonColumn that i have an onclick event that needs to return a value for use on the editformtemplate of the original page...

preferably i'd like to set a value in session from the radwindow
then force the parent page to run a server side method after the radwindow closes...

also...any example that involves the ajaxmanager, i'd need some help implementing given that my ajaxmanager is in the master page

hope this makes sense

I really need help with this...an example would be huge...
Georgi Tunev
Telerik team
 answered on 20 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?