Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
Hi,

I have develped a popup screen for search in asp.net on .net 3.5.
In my page i set the default page size to 10, my search result retrive the 200 records and shown on grid. with pages of 20
now i click on any one of displayed page number from 1 - 20
 it showing result of that page but now i want to change my page size, and clicked on Page size: combobox. it showing some page sizes like 10,20,50 are showing  like
1
0
2
0
5
0
and horizontal and vertical scrools are comming in the pagesize combobox. in IE 7.0, but this is working fine in IE 6.0.
if any one know and answer plese let me now.


Tsvetoslav
Telerik team
 answered on 14 Aug 2009
1 answer
87 views
Hi,

Where is data stored related to culture settings for radgrid. Please explain me how it works and where it is stored on client machine.
How can we cached them to use thoughout the application request.

Regards
Devanand Jha
Tsvetoslav
Telerik team
 answered on 14 Aug 2009
4 answers
227 views
Ok I'm trying to do something similar to the Demo http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/templates/defaultcs.aspx

Where you select a checkbox, and the javascript loops through the treeview nodes, and finds what it appears to be matching ID's that match the checkboxes you selected.

I'm having problems re-creating this with my data.

Table 1:
StateID
Description

Table 2:
CreditTypeID
Description

Table 3:
StateToCreditTypeID
StateID
CreditTypeID

Joined Select Statement from all three tables gives me:
Table 4:
StateToCreditTypeID
StateID
StateDescription
CreditTypeID
CreditTypeDescription


So when I bind my treeview I get repeats because some states go to more then one CreditType

First issue, was I don't have a parent node in the treeview, so I commented out that part of the JS.
It sorta of works, except I have 3 CreditTypes, but some of then apply to more the one state, so I have 9 repeated CreditTypes in the treeview. 

How can I limit my list to the three CreditTypes I actually have, but still allow the checkboxes to show/hide which ones apply?

There a way to do this on server side instead?

 
                    <telerik:RadComboBox ID="RadComboBox1" runat="server" EmptyMessage="All Types" HighlightTemplatedItems="true" 
                        AllowCustomText="true" Width="240px" OnClientDropDownClosed="onDropDownClosing"> 
                        <ItemTemplate> 
                            <div onclick="StopPropagation(event)" class="combo-item-template"> 
                                <asp:CheckBox runat="server" ID="chk1" Checked="true" onclick="onCheckBoxClick(this)"/> 
                                <asp:Label runat="server" ID="Label1" AssociatedControlID="chk1"> 
                                    <%# Eval("Description") %> 
                                </asp:Label> 
                            </div> 
                        </ItemTemplate> 
                    </telerik:RadComboBox> 
                     
                     
                    <telerik:RadComboBox ID="RadComboBox2" Width="240px" Height="300px" 
                        AllowCustomText="true" EmptyMessage="Showing all Credit Types" OnClientDropDownClosing="OnClientDropDownClosingHandler" 
                        runat="server"> 
                        <ItemTemplate> 
                            <div onclick="StopPropagation(event)"> 
                                <telerik:RadTreeView ID="RadTreeView1" runat="server"  
                                    OnClientNodeClicking="OnClientNodeClickingHandler"> 
                                    <DataBindings> 
                                        <telerik:RadTreeNodeBinding Depth="0" Category="Credit Type" /> 
                                    </DataBindings> 
                                </telerik:RadTreeView> 
                            </div> 
                        </ItemTemplate> 
                        <Items> 
                            <telerik:RadComboBoxItem /> 
                        </Items> 
                    </telerik:RadComboBox> 
            
            <asp:LinkButton ID="Button1" runat="server" Text="Select" /> 
           <p /> 
           <asp:Label runat="server" ID="SelectedTypeLabel" /><br /> 
           <asp:Label runat="server" ID="SelectedCarLabel" /> 

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 
        If Not IsPostBack Then 
            'RadComboBox1.DataBind() 
            LoadStateFilter() 
            LoadCreditTypeFilter() 
        End If 
    End Sub 
 
 
 
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click 
        'holds the text of the checked items 
        Dim checkedText As String = String.Empty 
        For Each item As RadComboBoxItem In RadComboBox1.Items 
            Dim chk As CheckBox = DirectCast(item.FindControl("chk1"), CheckBox) 
            If chk.Checked Then 
                checkedText += item.Text + ", " 
            End If 
        Next 
        SelectedTypeLabel.Text = checkedText.Trim().TrimEnd(","c) 
 
        'find the treeview 
        Dim tree As RadTreeView = DirectCast(RadComboBox2.Items(0).FindControl("RadTreeView1"), RadTreeView) 
        If tree.SelectedNode IsNot Nothing Then 
            SelectedCarLabel.Text = tree.SelectedNode.Text 
        End If 
    End Sub 
 
    Private Sub LoadStateFilter() 
 
        Dim oState As New LextrovertBrain.State(Utility.AppConnString) 
 
        RadComboBox1.DataSource = oState.List 
        RadComboBox1.DataTextField = "Description" 
        RadComboBox1.DataValueField = "StateID" 
        RadComboBox1.DataBind() 
        'RadComboBox1.Items.Insert(0, New RadComboBoxItem("- Select States -")) 
        oState = Nothing 
 
        'Throw New NotImplementedException() 
    End Sub 
 
    Protected Sub LoadCreditTypeFilter() 
 
        'Dim oCreditType As New LextrovertBrain.CreditType(Utility.AppConnString) 
        Dim oStateToCreditType As New LextrovertBrain.StateToCreditType(Utility.AppConnString) 
 
        Dim radTV As RadTreeView = DirectCast(RadComboBox2.Items(0).FindControl("RadTreeView1"), RadTreeView) 
 
        radTV.DataSource = oStateToCreditType.List(True) 
        radTV.DataTextField = "CreditTypeDescription" 
        radTV.DataValueField = "StateID" 
        radTV.DataFieldID = "CreditTypeID" 
        'radTV.DataFieldParentID = "CreditTypeID" 
        radTV.DataBind() 
        'RadComboBox2.DataSource = oCreditType.List 
        'RadComboBox2.DataTextField = "Description" 
        'RadComboBox2.DataValueField = "CreditTypeID" 
        'RadComboBox2.DataBind() 
        'RadComboBox2.Items.Insert(0, New RadComboBoxItem("- Select Credit Types -")) 
        oStateToCreditType = Nothing 
 
    End Sub 

Veselin Vasilev
Telerik team
 answered on 14 Aug 2009
5 answers
255 views
Hi,

I am using Full featured RADEditor for MOSS in SharePoint Lists. When I tried to add a new word into custom dictionary thru editor, I am getting Forbidden error.

For example, I tried to add "Palau" in custom dictionary and I got the following error.

RADSpell error. Server returned error: 403
Please see the help for more details: RADSpell 3.x - Configuration -Spellcheck Handler.
 
/_wpresources/RADEDitorSharePoint/4.3.1XXX/RADControls/Spell/Telerik.RADSpellCheckHandler.ashx

Forbidden

403 FORBIDDEN

Can you please let me know what needs to be done to resolve this issue?


Also, I have one more question on Spelling in RADEDitor. It seems RADEditor is not recognizing plurals. For Ex: renovations. It is providing suggestion to change the text. Does radeditor recognize plurals?

Thanks,
Phani
Lini
Telerik team
 answered on 14 Aug 2009
1 answer
176 views
Version: 2009.2.701.20

The subject pretty much says it all... It would seem like an easy thing to do, and I hope it is.  I want to change the default height (which seems to default to 342px) and width (which seems to default to 472px) of the RadSpell Dialog.  If I add this to my RadSpell CSS file:

 

 

.RadWindow.RadWindow_MyCustomSkin.rwNormalWindow.rwTransparentWindow div  
{  
    width: 600px;  
    height: 400px;  
} 

It looks horrible.  I have screen shots of the before and after which I can send if it would help.

Martin
Telerik team
 answered on 14 Aug 2009
1 answer
103 views
Hi,

I am using an On demand load combo box. What I would want is to prevent the user from typing anything which is not in the actual list of items. This would prevent any entry which does not exist in my business scenario. How can I accomplish that?

Thanks,
Saurabh
Veselin Vasilev
Telerik team
 answered on 14 Aug 2009
3 answers
355 views

Hello,

Is there a way to bind a RadToolbar programmatically in the code behind to a RadGrid?.

The reason I need this is because I have created a three tier Hierarchy grid in the page init, which I want to eventually edit with the radtoolbar.

I know that I can do RadGrid1.MasterTableView.CommandItemDisplay = ?? but I am having problems finding out how to bind the radtoolbar itself.

Perhaps someone can guide me to a document or the steps I need to do?

Thanks.

Princy
Top achievements
Rank 2
 answered on 14 Aug 2009
3 answers
309 views
Hello,

I'm trying to use jQuery to bind to RadGrid and I am getting get_masterTableView() is not a function whenever I try to bind the results of my ajax call.

I am using the following;

 function onSuccess(result) { 
                var grid = $('#<%= RadGrid1.ClientID %>'); 
                var tableView =  grid.get_masterTableView(); 
                tableView.set_dataSource(result); 
                tableView.dataBind(); 
                 
                $('#<%= RadAjaxLoadingPanel1.ClientID %>').hide("<%= RadGrid1.ClientID %>"); 
            } 

Yavor
Telerik team
 answered on 14 Aug 2009
0 answers
104 views
Hi

I want to set a work week for my scheduler just like Work day start and Work day end

Ex
if i set the Work week MONDAY to FRIDAY means Saterday and sunday style(background color...) should be different in visual.
How can i acheive this?

Regards
Vairamuthu
vairam
Top achievements
Rank 1
 asked on 14 Aug 2009
3 answers
184 views
Hi,

I am trying to use the RadGrid to accept inputs from the user. My requirement is as follows:

When the page loads, I load an empty grid with only the column names and the Add CommandItem - Done
On my page load, I also create an empty datatable which will hold all the request records.

When I click on Add, a new row should appear on the grid to accept inputs (along with the 'save' and 'cancel' buttons).

After saving the row, the row should appear in the grid with "edit" and "delete" columns.
Yavor
Telerik team
 answered on 14 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?