Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
88 views
Hi,

I have a treeveiew control inside a radcombobox.
"OnClientNodeClicking" event of treeview I am setting the textproperty of the combobox using javascript.
I am trying to fire some event so that I can access the function in my the code behind.
I have tried "OntextChanged" & "SelectedIndexChanged" of combobox but none of them was raising the event.
If i use "OnItemsRequested" event then i am getting error "Sript control RadTreeView is not a registered script control. Script control must be registered using RegisteredScriptControl() before calling RegisteredScriptDescriptors(). Parameter name scriptControl.."

I need to load other dropdowns based on the selected tree node which is inside the dropdown.

any help will be grealy appreciated.

 <telerik:RadComboBox ID="RadComboBoxCategoryLevels"
                         Width="160px"
                         Height="150px"
                         AllowCustomText="false"
                         EmptyMessage="Any Category"
                         OnItemsRequested = "RadComboBoxCategoryLevels_ItemsRequested"                                                   
                         runat="server" >
                         <ItemTemplate >
                            <div onclick="StopPropagation(event)">
                                <telerik:RadTreeView ID="RadTreeView"
                                                     AppendDataBoundItems="true"
                                                     runat="server"
                                                     OnClientNodeClicking="OnclientNodeClickingHandler">                                                     
                                                     <DataBindings >
                                                        <telerik:RadTreeNodeBinding Depth="0" Expanded="true" />
                                                     </DataBindings>                                                     
                                </telerik:RadTreeView>                                
                            </div>                            
                        </ItemTemplate>
                        <Items >
                            <telerik:RadComboBoxItem Text="" />
                        </Items>                     
    </telerik:RadComboBox>   

function OnclientNodeClickingHandler(sender, e)
                        {
                        //debugger;
                            var node = e.get_node();                           
                                var combo = $find("<%= RadComboBoxCategoryLevels.ClientID %>");
                                combo.set_text(node.get_text());
                                combo.hideDropDown();        
                                combo.requestItems(node.get_text(),false);  
                                
                        }

venm
Top achievements
Rank 1
 asked on 10 Aug 2009
2 answers
221 views
I am trying to get the SelectedValue of a RadComboBox that is populated via a webservice. However, the SelectedValue is blank when I try to get the value when I postback. How can I get the selected value server side?

Thanks,
Ron

<telerik:RadComboBox ID="uxAccount" runat="server" Height="150px" EnableLoadOnDemand="True" 
                                                WebServiceSettings-Path="~/ScheduleWebService.asmx" CausesValidation="false" 
                                                 WebServiceSettings-Method="GetRooms" 
                                                ShowMoreResultsBox="true" EnableVirtualScrolling="true"> 
                                            </telerik:RadComboBox> 

Ron Cirka
Top achievements
Rank 1
 answered on 10 Aug 2009
4 answers
154 views
Hi, I am trying to create something similar to the "Load on Demand" tab strip example. http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/loadondemand/defaultcs.aspx

My code is exactly the same format as the example with the same events on the same objects. Here is my problem:

1. On load, the first tab is created.
2. I select the second tab.
3. RadMultiPage1_PageViewCreated is called on the first tab
3. RadTabStrip1_TabClick is called on the second  tab.
4. RadMultiPage1_PageViewCreated  is called on the second tab.
5. Click on the 3rd tab.
6. RadMultiPage1_PageViewCreated  is called on first and second tab.
7. RadTabStrip1_TabClick is called on the third tab.

Ok so my problem is, why do all previously created PageViews get created again? When I tried to take out the event OnPageViewCreated event from the RadMultiPage, then all the controls inside the previous PageViews no longer exist when the new tab is loaded. 

I need it to not re-create a PageView once the page is created. 

thanks!

sharon
elmosi
Top achievements
Rank 2
 answered on 10 Aug 2009
5 answers
859 views
Hi 
    I have a div and onmouseover of that div i need to show the menu and when use onmouseouts from that div i need to hide that menu i tried doing this with contextmenu and successfully show/hide menu but the problem is when user onmouseouts to click the menu the menu gets hidden. I need to keep showing menu onmouseout but if user goes away i need to hide.

Here is a sample code of what i am trying to achieve.

 

<div class="items1 anchorclass" rel="submenu1" onmouseover="showMenu(event)" onmouseout="hidemenu(e)" >

 

 

<asp:ImageButton ID="imgDemographics" runat="server" ImageUrl="../App_Themes/MainTheme/Images/icon_dp_d.png" /><br />

 

Demographics

</div>

 

 

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

 

 

 

 

function showMenu(e)

 

{

 

var contextMenu = $find("<%= mnuDemographic.ClientID %>");

 

 

 

if ((!e.relatedTarget) || (!$telerik.isDescendantOrSelf(contextMenu.get_element(), e.relatedTarget)))

 

{

 

 

contextMenu.showAt(e.screenX - 40, e.screenY - 120);

}

 

 

 

// $telerik.cancelRawEvent(e);

 

 

 

}

 

function hidemenu(e)

 

{

 

var contextMenu = $find("<%= mnuDemographic.ClientID %>");

 

 

 

if ((!e.relatedTarget) || (!$telerik.isDescendantOrSelf(contextMenu.get_element(), e.relatedTarget)))

 

{

 

 

contextMenu.hide();

}

}

 

 

 

 

</script>

 

<

telerik:RadContextMenu ID="mnuDemographic" runat="server" Skin="Default" Flow="Vertical"

 

 

 

 

CausesValidation="False" onclientshowing="OnClientShowingHandler">

 

 

 

 

<Items>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Enrollment" Value="1">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Free Reduced Lunch" Value="2">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Attendance" Value="3">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Drop Outs/Graduation Rate" Value="4">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Mobility" Value="5">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Referrals" Value="6">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Retentions" Value="7">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Programs" Value="8">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Staff" Value="9">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

<telerik:RadMenuItem runat="server" Text="Generate Demographic Profile" Value="10">

 

 

 

 

</telerik:RadMenuItem>

 

 

 

 

</Items>

 

 

 

 

</telerik:RadContextMenu>

Thanks

 

Susan
Top achievements
Rank 1
 answered on 10 Aug 2009
1 answer
125 views
I just need to find a dropdown that resides in ItemTemplate of MasterTableView: Colums 3 of RadGrid. I just tried following:

DropDownList

temp = ((DropDownList)RadGridMkbzHzmt.MasterTableView.FindControl("ddlHzmt"));

It throws exception "Object reference not set to an instance of an object"

How can i get over this?

Thanks in advance...

 

 

Daniel
Telerik team
 answered on 10 Aug 2009
3 answers
146 views
Hi,

I have been working around with the scheduler and now I have somehow provoked the error underneith.
To provoke the error I drag-resize an appointment in week or day view. The Update method in my custom SchedulerProvider is run without a problem and after that the page just displays the error.

Any Idea what I am doing wrong to make it fail in the Telerik.Web.UI.AppointmentControl.Initialize() method?

 

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.


Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.AppointmentControl.Initialize() +17
   Telerik.Web.UI.DayViewAppointmentControl..ctor(Appointment appointment, DateTime visibleStart, DateTime visibleEnd, Int32 minutesPerRow) +255
   Telerik.Web.UI.Scheduler.Views.RowBuilder.CreateAppointmentControls(Control container, SchedulerTimeSlot slot) +213
   Telerik.Web.UI.Scheduler.Views.RowBuilder.CreateDayViewCell(SchedulerTimeSlot slot, Int32 zIndex) +84
   Telerik.Web.UI.Scheduler.Views.RowBuilder..ctor(IList`1 slotList, Int32 maxColumnWidth) +494
   Telerik.Web.UI.Scheduler.Views.Week.RendererBase.CreateViewRows(IList`1 slotLists) +151
   Telerik.Web.UI.Scheduler.Views.Week.RendererBase.CreateInnerContentTable(Control container, IList`1 slotLists) +88
   Telerik.Web.UI.Scheduler.Views.Week.Renderer.GetInnerContent() +131
   Telerik.Web.UI.Scheduler.Views.Week.Renderer.GetContent() +82
   Telerik.Web.UI.RadScheduler.CreateContent() +121
   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +106
   Telerik.Web.UI.RadScheduler.ClearChildControls() +67
   Telerik.Web.UI.RadScheduler.Rebind() +13
   Telerik.Web.UI.RadScheduler.FinishResize(Appointment originalAppointment, Appointment modifiedAppointment) +124
   Telerik.Web.UI.RadScheduler.ResizeAppointment(Appointment appointmentToResize, DateTime appointmentEnd, Boolean editSeries) +203
   Telerik.Web.UI.RadScheduler.Telerik.Web.UI.IScheduler.HandleResize(Appointment appointmentToResize, DateTime appointmentEnd, Boolean editSeries) +27
   Telerik.Web.UI.Scheduler.Views.Week.Model.HandleResize(Appointment appointment, ISchedulerTimeSlot sourceSlot, ISchedulerTimeSlot targetSlot, Boolean editSeries) +196
   Telerik.Web.UI.Scheduler.Views.Week.ModelBase.ProcessPostBackCommand(SchedulerPostBackEvent postBack) +306
   Telerik.Web.UI.RadScheduler.ProcessPostBackCommand(SchedulerPostBackEvent postBack) +3006
   Telerik.Web.UI.RadScheduler.RaisePostBackEvent(String eventArgument) +62
   Telerik.Web.UI.RadScheduler.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
Peter
Telerik team
 answered on 10 Aug 2009
1 answer
153 views
Quick question.

What are the defaults for OutputCompression, EnableScriptCombine and EnableStyleSheetCombine for these controls and how does debug=false in the config affect the default if at all?

Thanks
Matt
Veselin Vasilev
Telerik team
 answered on 10 Aug 2009
4 answers
288 views
I have a RadGrid that has two columns that are invisible to begin with.
When I click a button outside the Grid I want the columns to become visible.
I know that there is a property in the grid (e.g. this.RadGrid1.Columns[0].Visible = true;), but the columns still won't show after setting them to visible in the button click event.
The interesting thing is that if I click the "Refresh" button within the Grid after having clicked the external button the columns show up.
I tried this.RadGrid1.Rebind(), but that doesn't do it either. It seems like only the "Refresh" in the Grid itself makes the columns visible.

How do I get the columns to become visible on the button click outside the grid?

This has got to be something fairly obvious, but I just don't see it.

Any help is appreciated.
Stephan
Top achievements
Rank 1
 answered on 10 Aug 2009
1 answer
122 views
I have run into an issue with the timeline view. I set the properties as follows.

<TimelineView 
  ColumnHeaderDateFormat="hh:mm"  
  GroupingDirection="Vertical" 
  HeaderDateFormat="hh:mm" 
  NumberOfSlots="33" 
  SlotDuration="01:00:00" 
  StartTime="08:00:00" 
/> 

When I open the Advance Form from one of the empty time slots, it sets the appointment to all day. Does anyone know a way around this? I have tried this using both versions 2008.3.1314.35 and 2009.2.701.35.
Peter
Telerik team
 answered on 10 Aug 2009
19 answers
246 views
About two months ago I was told RTL is not officialy supported. Do you support it now officialy ?

Oren
Tervel
Telerik team
 answered on 10 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?