Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
164 views
Hi I wanna know how we can add html controls like text box, checkbox, label, in the telerik calendar control and work around them 
srikrishna sallam
Top achievements
Rank 1
 answered on 22 Jul 2009
1 answer
156 views
Hello! In my project I use RadEditor. It contains in iframe. When I open ImageManager, that iframe is block, but parent window (which contains iframe)  is avaible. How to make a parent window inaccessibleed?
Svetlina Anati
Telerik team
 answered on 22 Jul 2009
1 answer
107 views

Hey,

i am just starting to work with telerikcontrols. maybe my question is very easy to answer, but i couldnt find a solution to sort my problem out. i didnt even know, if i am posting in the correct forum, but i couldnt find a forum called RadMultipage.
Well ill have a try to describe my problem.


i have a main page called default.aspx. that page contains some controls. one of them is a radmultipage with 3 radpageview and another control is a radmenu.
if i click on a radmenuitems i want to send some informations to a radmultipageitem.
for example...
my first radviewpage open another file called "file1.ascx". this page contains a label. when i am now clicking on a menuitem(on my default.aspx), i want to set the text of my label(file1.asxy) with the value of the menuitem.

How can i do this?


Thanks

 

Chris

Paul
Telerik team
 answered on 22 Jul 2009
2 answers
65 views
Hi,

I wanted to use the Style Builder on a RadCalendar like documented here:
http://www.telerik.com/help/aspnet-ajax/calendar_designstylebuilder.html

But there is no entry for it in the context menu.
I use q2 2009 - VS2008 german.

Regards

Manfred
ManniAT
Top achievements
Rank 2
 answered on 22 Jul 2009
2 answers
257 views

I have a usercontrol called "uc_Email.ascx" and I have a corresponding edit page called "EditEmail.aspx".  When the user clicks an Add button or an Edit button from within the email grid in the user control, the EditEmail.aspx page opens up in a radWindow.  Therefore I have a RadWindowManager within my user control.

I have another user control that basically does the same thing, except it's for managing phone numbers instead of email addresses.

Both of these user controls are contained within one parent page (which happens to be a content page within a nested master page), and thus when the page is rendered there are two RadWindowManagers.

My problem is that I can't get either user control to look at the specific "Window" that I'm trying to reference.  For instance, my ShowDialog function takes two parameters - the URL and the name of the Window.  The URL is being opened just fine, but it's using the settings from my radWindowManager and not the settings from the specific Window.

I tried a few different things:

1.  First I tried having my javascript functions (ShowDialog, OnClientClose, etc.) contained within each of my user controls, and also both user controls had their own RadWindowManagers.  The windows are opening up, but they are not using the specific settings from the Window that I am referencing.  They are also both using the settings from one of the two radWindowManagers (i.e. the user control for phone numbers is using the settings from the radWindowManager that's on the user control for emails.).  I did a simple test by changing the Title property of the radWindowManager.

 

2.  Then I tried moving my javascript functions into a .js file and linking that file to my parent page (the functions are identical) so that they would only be rendered once.  I also tried putting my RadWindowManager into my parent page as well. 

 

3.  I then tried moving my javascript functions into my main master page and putting the radWindowManager into my master page as well.  That still didn't work. 

#2 and #3 didn't work at all - I'm getting an "object doesn't support this property or method".

I was wondering if you had any insight as to how to handle this type of scenario - namely multiple user controls on a content page of a nested master page, each with it's own need for a radWindow.

Thanks in advance.

Steve

Fiko
Telerik team
 answered on 22 Jul 2009
1 answer
128 views
I'm trying to get rid of the 'More' link that is displayed is Month view. So far, the only solution I can find is to use css to hide it -

.rsShowMore   
{   
   display: none !important;  
} 

But this simply removes the text. The space the text occupies is still there, which leaves a rather large gap at the bottom of every day in the calendar. Is it possible to also remove/hide this space?
Peter
Telerik team
 answered on 22 Jul 2009
2 answers
148 views
I've got 2 RadDatePickers on my page, one is set to run the following function on OnDateSelected, however, this function fails on the final line, stating that the method isn't supported by the object. What am I doing wrong? How am I meant to be changing the selected date of the second datepicker?

function OneMonthApart(sender, eventArgs) {  
        var start = eventArgs.get_newDate();  
        var end = start.setMonth(start.getMonth() + 1);  
        var cal = $find("<%= calEndDate.ClientID %>");  
        cal.set_selectedDate(end);  
    } 
Peter
Top achievements
Rank 1
 answered on 22 Jul 2009
2 answers
180 views
I am trying to bind a RadGrid instance to a collection of objects such as this:

Region
    -Id, Name, etc
    -List<Locations>

I am using the NeedDataSource event and DetailTableDatabind event to accomplish this, but something isn't working right as I don't get any data back for the child entities. When I run through everything in intellisense I can see the DetailTableView.DataSource property contains the objects I expect, but upon binding nothing shows up for the DetailTable except a single empty row (regardless of whether there are 0 or 100 records present). If I try and add a DataKeyName or parent relationship entry it tells me the property doesn't exist on my object, yet it definitely does. In fact, if I use the <%# Eval("Property") %> tag on any property (like in a template column) it tells me that property doesn't exist.

Here is my markup:

<telerik:RadGrid runat="server" ID="grRegions" OnNeedDataSource="grRegions_NeedDataSource" OnItemDataBound="grRegions_ItemDataBound" OnItemCommand="grRegions_ItemCommand" Skin="Default2006" Width="750px" AllowPaging="true" PageSize="25" PagerStyle-Mode="NumericPages" OnDetailTableDataBind="grRegions_DetailTableDataBind"> 
    <MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top" CommandItemStyle-Height="30px" DataKeyNames="Id" HierarchyLoadMode="Client"> 
        <DetailTables> 
            <telerik:GridTableView AutoGenerateColumns="false" runat="server" CommandItemDisplay="Top" CommandItemStyle-Height="30px" Name="Locations"> 
                <CommandItemTemplate> 
                    <asp:Image ID="Image2" runat="server" ImageUrl="~/_assets/images/AddRecord.gif" BorderStyle="None" hspace="5" /><a href="javascript:void(0);" onclick="javascript:__associateLocation(<%#Eval("RegionId") %>);">Associate Location</a> 
                </CommandItemTemplate> 
                <ParentTableRelation> 
                    <telerik:GridRelationFields MasterKeyField="Id" DetailKeyField="Id" /> 
                </ParentTableRelation> 
                <Columns> 
                    <telerik:GridTemplateColumn ItemStyle-Wrap="false" ItemStyle-Width="45px"> 
                        <ItemTemplate> 
                            <asp:Button runat="server" ID="cmEdit" Text="Edit" SkinID="SmallButton" /> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn>  
                    <telerik:GridBoundColumn DataField="Id" Visible="false" />                            
                    <telerik:GridBoundColumn DataField="City" HeaderText="City" /> 
                    <telerik:GridBoundColumn DataField="StateProv.Name" HeaderText="State/Prov" /> 
                    <telerik:GridBoundColumn DataField="Country.Name" HeaderText="Country" /> 
                    <telerik:GridBoundColumn DataField="PostalCode" HeaderText="PostalCode" /> 
                </Columns> 
            </telerik:GridTableView> 
        </DetailTables> 
        <CommandItemTemplate> 
            <asp:Image ID="Image2" runat="server" ImageUrl="~/_assets/images/AddRecord.gif" BorderStyle="None" hspace="5" /><a href="javascript:void(0);" onclick="javascript:__showRadWindow(null);">Add Region</a> 
        </CommandItemTemplate> 
        <Columns> 
            <telerik:GridTemplateColumn ItemStyle-Wrap="false" ItemStyle-Width="45px"> 
                <ItemTemplate> 
                    <asp:Button runat="server" ID="cmEdit" Text="Edit" CommandArgument='<%#Eval("Id") %>' SkinID="SmallButton" /> 
                </ItemTemplate> 
            </telerik:GridTemplateColumn> 
            <telerik:GridBoundColumn HeaderText="Code" DataField="Code" /> 
            <telerik:GridBoundColumn HeaderText="Name" DataField="Name" /> 
            <telerik:GridButtonColumn ConfirmText="Are you sure you wish to permanently remove this region?<br /><br />This action will remove all associated locations and is not reversible."  
                            ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete"  ItemStyle-Width="45px"  
                            Text="Delete" UniqueName="DeleteColumn" ItemStyle-HorizontalAlign="Center" ImageUrl="~/_assets/images/delete.gif"> 
                <ItemStyle HorizontalAlign="Center" /> 
            </telerik:GridButtonColumn>  
        </Columns> 
    </MasterTableView> 
    <ClientSettings EnableRowHoverStyle="true" /> 
</telerik:RadGrid> 


Here is my code-behind:

Private _Regions As List(Of Core.TenderingRegion) = Nothing 
Protected ReadOnly Property Regions() As List(Of Core.TenderingRegion) 
    Get 
        If Me._Regions Is Nothing Then 
            Me._Regions = New Core.TenderingRegionBiz().GetAllRegions() 
        End If 
 
        Return Me._Regions 
    End Get 
End Property 
 
Protected Sub grRegions_NeedDataSource(ByVal sender As Object, ByVal e As GridNeedDataSourceEventArgs) 
 
    If Not e.IsFromDetailTable Then 
        Me.grRegions.DataSource = Me.Regions 
    End If 
 
End Sub 
 
Protected Sub grRegions_DetailTableDataBind(ByVal sender As Object, ByVal e As GridDetailTableDataBindEventArgs) 
 
    If e.DetailTableView.Name = "Locations" Then 
        Dim locs = From r In Me.Regions Where r.Id = Convert.ToInt32(e.DetailTableView.ParentItem.GetDataKeyValue("Id")) Select r.Locations 
        e.DetailTableView.DataSource = locs 
    End If 
 
End Sub 
 

It's definitely driving me crazy as to why the expected entities exist in the DataSource property of the DetailTableView but when it goes to show the records it always shows one line item that is blank.
Georgi Krustev
Telerik team
 answered on 22 Jul 2009
3 answers
587 views
Hi,

      I used several Rad ComboBox in a DNN page, however, the scroll bars are always shown even there is only one item and the width is large enough. My question is how to remove the scroll bars, especially the horizontal scroll bar? Can you please look at the DNN page on the web site: http://dev.barbourconsulting.com/dnn/?  Username: userHR  Password: userHR123
     After log in, click "Human Resources" tab, then click "Edit" link for any employee record. Please check the ComboBox in the "Classification" box. Here are asp codes for the "Department" Combo Box:

<tr> 
   <td class="labelWidth">  
       Department  
   </td> 
   <td> 
      <telerik:RadComboBox CssClass="ddlText" ID="DepartmentRadComboBox" Width="150px" 
         runat="server" DataSourceID="dsDepartmentInfo" AppendDataBoundItems="true" Skin="Outlook" 
         DataTextField="Department_Name" DataValueField="Department" DropDownWidth="230px" 
         SelectedValue='<%# Bind("Department") %>'>  
         <Items> 
            <telerik:RadComboBoxItem Text="None" runat="server" /> 
         </Items> 
         <ItemTemplate> 
            <table class="ddlText" style="width: 210px; text-align: left; line-height: 10px">  
              <tr> 
                 <td style="width: 60px;">  
                    <%#DataBinder.Eval(Container.DataItem, "Department")%> 
                 </td> 
                 <td style="width: 150px;">  
                    <%#DataBinder.Eval(Container.DataItem, "Department_Name")%> 
                 </td> 
              </tr> 
            </table> 
         </ItemTemplate> 
         <HeaderTemplate> 
            <table class="ddlText" style="width: 210px; text-align: left; line-height: 10px">  
              <tr> 
                 <td style="width: 60px;">  
                     Department</td> 
                 <td style="width: 150px;">  
                     Name</td> 
              </tr> 
           </table> 
         </HeaderTemplate> 
       </telerik:RadComboBox> 
     </td> 
   </tr> 

Thank you,
Hong  
Yana
Telerik team
 answered on 22 Jul 2009
1 answer
119 views
Hi,

Isn't it possible to specify an url in RadTickerItem, so my users can click the visible item and go to an url??

Thanks,
Morten
Fiko
Telerik team
 answered on 22 Jul 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?