Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
101 views
Hi all,

Can anyone tell me why the following javascript is not working?

        document.body.onload = function() {

            var txtDOB = document.getElementById("<%= txtDOB.ClientID %>");
            txtDOB.set_maxDate(new Date('2009/04/15'));

        }

The error I get is "Object doesn't support the property or method" on the set_maxDate line.


My aspx markup is

                    <telerik:RadDateInput ID="txtDOB" runat="server" DateFormat="dd/MM/yyyy">
                    </telerik:RadDateInput>

I am using Telerik Q2 2009 (2009.2.826.35)

Thanks
Daniel
Telerik team
 answered on 18 Nov 2009
12 answers
653 views
Hi
I have a RadListBox with some item selected. If I click on an item already selected, no event is fired server-side (selected index does not change but item do!!). How can I know what is the selected item?
Thanks for answering.

Claudio Falco
Schlurk
Top achievements
Rank 2
 answered on 18 Nov 2009
3 answers
168 views
Hi Telerik,
I've problems with sorting a xmldatasource in my Listbox. Is there something to mention?

Best regards,
Andreas
Simon
Telerik team
 answered on 18 Nov 2009
1 answer
218 views

Hi,

I've a radlistbox and I set the datasource:

 List<CMListItem> obCMListItem = new List<CMListItem>(); (where CMListItem is a class).

m_radListBox.DataSource = obCMListItem.

This obCMlistItem has ItemName,Itemdescription and Item code as 3 elements.

I need to set my datatextfield of the radlistbox by combining the 2 elements of the class( combining ItemName and Itemdescription).

If I try to do the below approach, I get an error:

            m_radInstitutionLstBox.DataTextField  = String.Format("{0},{1}", Properties.Resources.Ttl_Col_ItemName , Properties.Resources.Ttl_Col_ItemDescription);
            m_radInstitutionLstBox.DataValueField = Properties.Resources.Ttl_Col_ItemName;
            m_radInstitutionLstBox.DataSource     = obCMListItem;
            m_radInstitutionLstBox.DataBind();

How can i handle this situation. Pls help me with code in c#

Thanks,
ZR

Simon
Telerik team
 answered on 18 Nov 2009
1 answer
113 views
Hello

I'm trying to implement custom content provider for ImageManager used in RadEditor. I'm facing with some problems and also I've got some questions about its functionality. I'm using 2009 Q3 version of Telerik Controls.

Problem:

1) When I try to perform upload operation I always get an error message (displayed as a javascript-driven window) which says:
%filename% - Cannot write to the target folder! , where %filename% is a name of file which I try to upload. I have tried to debug it and found out that server method FileBrowserContentProvider.StoreFile does not get executed at all, e.g. breakpoint which I place at the beginning of it doesn't get hit.
I have already saw similar message here, but it was posted a while ago and somebody of Telerik support team answered that it was a bug of 2009 Q1 version and it would be fixed in further release.

Questions:
In general, I'm curious about how I may customize the appearance of ImageManager dialog:
1) Can I remove size column of folder browser?
2) Can I specify somehow which folders user is allowed to upload files into and which ones are read-only? For example, I want to disable uploading files into root folder, but to allow doing this with all subfolders of root one.
3) Can I disable renaming folders?
4) Can I disable deleting folders?

Disabling doing something also means for me hiding button or other control, which is used for doing this (delete button, upload button and so on)

Thanks in advance,
Vladimir.
Fiko
Telerik team
 answered on 18 Nov 2009
4 answers
404 views
I can' t find the get_checkedItems() method in the client side RadListBox object & the get_checked method in RadListBoxItem object.
The telerik library version i'm using is 2009.2.701.35.  Maybe they are in the Q2 sp1? Can someone answer? Thanks.
Simon
Telerik team
 answered on 18 Nov 2009
4 answers
104 views
Hi,
My grid width is greater than the page width.
When i scoll right using the ie scrollbar, there is a line down the grid where the edge of the page used to be, and the group panel does not extend to the full width of the grid, just the page.
This is dificult to explain, so i have attached some screen shots to show what i mean.

I have tried setting the borderstyle = none, which works , but.. i want the grid to have borders as it looks odd within a DIV with a margin of 10px. This does not solve the group panel issue though.

Attached..
1.jpg shows grid before scrolling to right.
2.jpg shows grid after scrolling to right. (highlighted issue in red)

Any ideas please ?
Thanks
Mark
Mark
Top achievements
Rank 1
 answered on 18 Nov 2009
3 answers
166 views
I've got a web.sitemap that links several other sitemap files for various modules within the application using siteMapFile, or by provider.

As a quick test for this new control, I pointed the datasource at the web.sitemap and everything compiled and ran.  The only thing is that all the linked sitemaps overlay each other graphically.  I can see why this might happen given the node levels created by linking files, but does anyone know an easy way to solve this problem?

Or is there a plan in the future to have the telerik sitemap control figure out the appropriate node levels when using a single sitemap with multiple links?


Simon
Telerik team
 answered on 18 Nov 2009
1 answer
73 views
I'm trying to hightlight the RadComboItems with the following code:
(It is simplified to point out my problem; multiple strings "country" will be fetched from the database based on e.Text, obviously).

protected void cbxCountry_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e) 
    RadComboBox combo = (RadComboBox)o; 
    combo.Items.Clear(); 
    RadComboBoxItem item = new RadComboBoxItem(); 
    HtmlGenericControl span = new HtmlGenericControl(); 
    string country = "Spain"
    span.InnerHtml = System.Text.RegularExpressions.Regex.Replace(country, e.Text, "<em>" + e.Text + "</em>"); 
    item.Controls.Add(span); 
    item.Text = country; 
    combo.Items.Add(item); 
 

It seems to work; I'm totally free in what content to put in an item, even images.
Unfortunately, it does not highlight when the mouse hovers over the item or when keydown is pressed.
Do I have to <class> attribute somewhere?
Simon
Telerik team
 answered on 18 Nov 2009
1 answer
71 views
When I try to freeze a column in a RadGrid from the second radpageview just not working, only when this first.
How can I fix this?
following the example below

<telerik:RadScriptManager ID="RadScriptManager" runat="server">
        </telerik:RadScriptManager>
   
                <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Web20" MultiPageID="RadMultiPage1"
                SelectedIndex="0" Align="Justify" ReorderTabsOnSelect="true" Width="347px"   >
                <Tabs>
                    <telerik:RadTab Text="1">
                    </telerik:RadTab>
                    <telerik:RadTab Text="2">
                    </telerik:RadTab>
                                      
                </Tabs>
            </telerik:RadTabStrip>
            <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"
                Width="345px">
                <telerik:RadPageView ID="RadPageView1" runat="server">
               <telerik:RadGrid ID="RadGrid3" Width="750px" DataSourceID="SqlDataSource1" GridLines="None"
                 runat="server">
                <ClientSettings>
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="1">
                    </Scrolling>
                </ClientSettings>
                <SortingSettings SortedBackColor="BurlyWood" />
                <MasterTableView TableLayout="Auto" />
                <HeaderStyle Width="200px" />

            </telerik:RadGrid>
                   
                </telerik:RadPageView>
               <telerik:RadPageView ID="RadPageView2" runat="server">
                   <telerik:RadGrid ID="RadGrid2" Width="750px" DataSourceID="SqlDataSource1" GridLines="None"
                     runat="server">
                    <ClientSettings>
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="1">
                        </Scrolling>
                    </ClientSettings>
                    <SortingSettings SortedBackColor="BurlyWood" />
                    <MasterTableView TableLayout="Auto" />
                    <HeaderStyle Width="200px" />

                </telerik:RadGrid>
                  
               </telerik:RadPageView>
                
            </telerik:RadMultiPage>
   
           <asp:SqlDataSource ID="SqlDataSource1"
            runat="server"
            ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString_Teste %>"
            SelectCommand="SELECT * FROM Customers"></asp:SqlDataSource>



Flavio Lepka

Pavlina
Telerik team
 answered on 18 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?