Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
372 views
Hi, I am trying to use an external source to populate content at the last place the cursor existed before leaving the editor. From the resources I could find, it seemed this would do the trick:

   function OnClientLoad(editor){

        alert('I can get this far...');
        
        editor.AttachEventHandler ("onblur", function (e){
            restorePoint = editor.createRestorePoint();
            alert('but not here...');
        });
        
    }


Unfortunately, although I don't get errors, nothing happened when I focus and then leave the editor. I then tried the following:

    function OnClientLoad(editor, args){

        alert('I can get this far...');

    
        Telerik.Web.DomElement.addExternalHandler(editor, "onblur", function(e)
        {
        
            restorePoint = editor.createRestorePoint();
            alert('but not here...');
        });
        
        
    }

Still no luck. Can you point me in the right direction? If it helps to know, I am trying to place a link in the body of the radtreeeditor from an external radtreeview of directories, but cannot get the restore point.

mfleischauer
Top achievements
Rank 1
 answered on 05 Mar 2009
2 answers
213 views
I'm trying to apply the same style to GridDateTimeColumnEditor that is applied to GridTextBoxColumnEditor as the latter is described here: http://www.telerik.com/help/aspnet-ajax/grdstylingthroughdeclarativecustomeditors.html  , e.g.

 


<
telerik:GridTextBoxColumnEditor id="TextEditor1" runat="server">
 
<TextBoxStyle BackColor="#edffc3"
   
BorderColor="#ecbb0d"
   
BorderStyle="Solid"
   
ForeColor="#7fa822" />
</
telerik:GridTextBoxColumnEditor>

but wiring a GridDateTimeColumnEditor to a GridDateTimeColumn appears to have no effect at all on the underlying DateTimePicker:

<telerik:GridDateTimeColumnEditor id="TextEditor1" runat="server">
 
<TextBoxStyle BackColor="#edffc3"
   
BorderColor="#ecbb0d"
   
BorderStyle="Solid"
   
ForeColor="#7fa822" />
</
telerik:GridDateTimeColumnEditor>

How can I stylize the DateTimePicker in the GridDateTimeColumn so that the style of its text input box is the same as that specified in the GridTextBoxColumnEditor shown above?
Gregg
Top achievements
Rank 1
 answered on 05 Mar 2009
1 answer
126 views
Hi,

Over the past few weeks we've started to experience our controls freezing up on our users (eg. when you click within the RadEditor to begin typing nothing happens). We've found that re-uploading the following files unfreezes them:
Telerik.Web.UI.dll.refresh
Telerik.Web.UI
Telerik.Web.UI.dll

but it's starting to occur quite frequently (1-2 times a day), is there any reasoning for this?

possibly an issue with the refresh file? we do use the controls over a fair few pages (maybe 20-30)

PS. we're using the Q4 2008 AJAX controls
Rumen
Telerik team
 answered on 05 Mar 2009
1 answer
142 views
Hi,

In the Dayview of the scheduler, I'm trying to show the hours coumn . But it is not showing up. I have set the property "showhourscolumn=true" for the Dayview. I'm pasting my scheduler code:

 

<telerik:RadScheduler ID="RadSchedulerCalendar" runat="server" Height="583px"

 

 

FirstDayOfWeek="Sunday" AllowInsert="false" AllowEdit="false"

 

 

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

 

 

DataSubjectField="Subject" DataRecurrenceField="RecurrenceRule"

 

 

DataRecurrenceParentKeyField="RecurrenceParentID" EnableViewState="false" SelectedView="MonthView"

 

 

ShowNavigationPane="true" ShowAllDayRow ="false" MonthView-ReadOnly="true" DayView-ReadOnly="true"

 

 

onnavigationcommand="RadSchedulerCalendar_NavigationCommand" Localization-ShowMore="More"

 

 

onappointmentcreated="RadSchedulerCalendar_AppointmentCreated" Skin='<%# ConfigurationManager.AppSettings["project"] == "duelrz" ? "Default" : "Web20" %>'

 

 

ShowFullTime="true" ShowFooter="false" TimeLabelRowSpan="1" OnClientTimeSlotClick="OnClientTimeSlotClickHandler"

 

 

ontimeslotcreated="RadSchedulerCalendar_TimeSlotCreated" OverflowBehavior="Scroll" EnableEmbeddedSkins="False">

 

 

<DayView UserSelectable="false" ShowHoursColumn="true" />

 

 

<WeekView UserSelectable="false" ShowHoursColumn="false" />

 

 

<TimelineView UserSelectable="true" NumberOfSlots="7" SlotDuration="1" />

 

 

<MonthView VisibleAppointmentsPerDay="3" GroupingDirection="Horizontal" />

 

 

<AppointmentTemplate>

 

 

<asp:Panel ID="pnlApp" runat="server" ></asp:Panel>

 

 

</AppointmentTemplate>

 

 

</telerik:RadScheduler>

 



What should I do to see the hours column in the Dayview?

I have one more question. In the dayview, I want to show appointments continuously . But I see that if one appointment starts at 3 am and the other starts at 2 pm the same day, there is a huge gap between the two appointments while displaying. We are not worried about the hours. But we just want to show all the appointments for a day one after the other disregarding the hours it starts in the dayview.

Can we do that? Is there a workaround?

Thanks.

Peter
Telerik team
 answered on 05 Mar 2009
1 answer
60 views

I had a prob with Tab strip visibility property.

 

I have taken tab strip under<fieldset> Tag.

 In that I am calling User controls statically.

Here is the code where I placed Tab strip.

<fieldset id="FSetShippingDetails" runat="server">

 <legend class="tbtextbold" runat="server">Shipping Details</legend>

 <table id="Table2" width="100%" height="100%">

 <tr>

  <td>

   <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="WebBlue" MultiPageID="RadMultiPage1"

              SelectedIndex="0" ReorderTabsOnSelect="True" Width="100%">

     <Tabs>

                       

                                                    <telerik:RadTab Text="Container">

                                                    </telerik:RadTab>

                                                    <telerik:RadTab Text="Agents/Rates">

                                                    </telerik:RadTab>

                                                    <telerik:RadTab Text="Legs">

                                                    </telerik:RadTab>

                                                    <telerik:RadTab Text="Notes">

                                                    </telerik:RadTab>

                                                    <telerik:RadTab Text="Status">

                                                    </telerik:RadTab>

                                                    <telerik:RadTab Text="MISC">

                                                    </telerik:RadTab>

                                                    <telerik:RadTab Text="JobCosting">

                                                    </telerik:RadTab>

        </Tabs>

               </telerik:RadTabStrip>

                    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="pageView"

                                                Width="100%">

                                                <telerik:RadPageView ID="RadPageView3" runat="server">

<uc3:HHG_Shipping_Containers ID="HHG_Shipping_Containers"         runat="server" />

                                                </telerik:RadPageView>

                                                <telerik:RadPageView ID="RadPageView4" runat="server">

                                                <UC10:HHG_Shipping_AgentsRatesDetails ID="AgentDetails" runat="server" />

                                                </telerik:RadPageView>

                                                <telerik:RadPageView ID="RadPageView5" runat="server">

                                                    <uc5:HHG_Shipping_Legs ID="HHG_Shipping_Legs" runat="server" />

                                                </telerik:RadPageView>

                                                <telerik:RadPageView ID="RadPageView6" runat="server">

                                                    <uc4:HHG_Shipping_Note ID="HHG_Shipping_Note" runat="server" />

                                                </telerik:RadPageView>

                                                <telerik:RadPageView ID="RadPageView7" runat="server">

                                                    <uc2:HHG_Shipping_Status ID="HHG_Shipping_Status" runat="server" />

                                                </telerik:RadPageView>

                                                <telerik:RadPageView ID="RadPageView11" runat="server">

                                  <UC11:HHG_Shipping_MISCCharges ID="HHG_Shipping_MISCCharges" runat="server" />

                                                </telerik:RadPageView>

                                                <telerik:RadPageView ID="RadPageView" runat="server">

                                             <uc8:HHG_Shipping_JobCosting ID="HHG_Shipping_JobCosting" runat="server" />

                                                </telerik:RadPageView>

                                           </telerik:RadMultiPage>

                                        </td>

                                    </tr>

                                </table>

                            </fieldset>

C#Code:-

            private void ApplyVisibility2UserCtrl(bool Opt)

    {

        FSetShippingDetails.Visible = Opt;

       

    }

I am calling above function first in “Page_Load()” that time iam making visibility “False”

Once after saving the Data again iam making Visibility as “true” that time iam getting following script error…

Microsoft JScript runtime error: 'Telerik.Web.UI.RadTabStrip' is null or not an object

Please help me in this regards ASAP.

 

Paul
Telerik team
 answered on 05 Mar 2009
0 answers
139 views
Hi Team,
    I have two tree view control . I can drag from left tree and drop into the right tree( Both Single and multiples nodes ).

User can able to a add a new node into the right side tree view control . After adding a node into the right side node , use cannot able to drag any leaf level nodes from left tree and drop into the right side tree . While adding a new node into the tree view control , I am assinghing some default values(like "999999999"). So while dragging any item from left to newly added noded node , I will be validating throuhg the below mentioned function . But if user wants to drag & drop within the right side tree , I have to allow .  Can you suggest me how can I check whehter the dragged has happened within the tree view .
function

onNodeDropping(sender, args)

 

{

 

debugger;

 

 

var destNodeValue = args._destNode.get_value();

 

 

//This Check for the newly added value .

 

 

if(destNodeValue !="999999999")

 

{

 

var dest = args.get_destNode();

 

 

if (!confirm("Do you really want to drop the item?"))

 

{

args.set_cancel(

true);

 

}

 

else

 

{

 

if (dest)

 

{

 

var clientSide = document.getElementById('ChbClientSide').checked;

 

 

if(clientSide)

 

{

clientSideEdit(sender, args);

args.set_cancel(

true);

 

 

return;

 

}

dropOnTree(args);

}

 

else

 

{

dropOnHtmlElement(args);

}

}

}

 

else

 

{

alert(

"This is not a specified Node. You cannot drop unspecified item under this node.");

 

args.set_cancel(

true);

 

}

}

Regards
Manoj

Manoj
Top achievements
Rank 1
 asked on 05 Mar 2009
1 answer
132 views
I am using RadToolbar but its not getting displayed on client side.
What can be the possible reasons?
Thanks in advance..
Serrin
Top achievements
Rank 1
 answered on 05 Mar 2009
1 answer
125 views
Hi,

If you put a RadDatePicker inside a table cell and align it to the right of the cell, the image does not display properly, is there any way to fix this?

Thanks
Dimo
Telerik team
 answered on 05 Mar 2009
1 answer
108 views
Here is the message after I add a ResourceType

RadScheduler - RadScheduler1There was an error rendering the control.
Telerik.Web.UI.ResourceTypeCollection must have items of type 'Telerik.Web.UI.ResourceType'. 'telerik.web.ui.resourcetype' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.
Peter
Telerik team
 answered on 05 Mar 2009
1 answer
179 views
I'm not sure if this is a cause of how I have my grid setup with regards to Update panels and the like, but then again the rendering glitch I am seeing only occurs in Firefox.

When the page loads, if I have enough items to force a horizontal scroll, the last row of the grid Data grid extends beyond the border of the main grid; I guess it's not being properly hidden beyond the boundary of the parent grid; the parent grid div being the one that has the exact Id that I assign to my grid.

I fixed it in firefox when the page loads by calling repaint on the grid after I bind on page load on the server side.
If I however click the refresh grid item command button, the rendering problem resurfaces even though the repaint is still being called.

Any help would be cool.
Dimo
Telerik team
 answered on 05 Mar 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?