Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
97 views
Hi
 suppose if i would like to cal client side event of PageCombo_SelectedIndexChanged from server side, how it is possible.

Suppose i have added pagecombobox items like 20,30,40,50,60,70,100. The paging should not working mere adding the items into combobox. I think i hav to call the below event from serverside.But i can findcontrol only by code only in the event of ItemCreated of Grid.
 <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

        <script type="text/javascript">
        var tableView = null;
        function pageLoad(sender, args)
        {
            tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
        }
        
        function PageCombo_SelectedIndexChanged(sender, args)
        {
            alert("aa");
            tableView.set_pageSize(sender.get_value());
        }
        
        function changePage(argument)
        {
            tableView.page(argument);
        }
So whether paging will work after calling this methods, if so how can i call this method by code.

Regards,
Appu
Appu
Top achievements
Rank 1
 asked on 07 Jul 2009
3 answers
126 views
Hi all,

I am developing Grids with the capabilities to Insert - Update  and Delete.
Everything goes well when size of data is not "big".

I am facing serious delays when binding grid with datatable that has a lot of rows (10.000).
Each time i use Insert-Update-Delete grid reloads all the data.

Is there a way to avoid these loading delays?
Is there a demo?

Thanks in advance.
Sebastian
Telerik team
 answered on 07 Jul 2009
4 answers
93 views
Hi All,
        I have the scheduler setup with say two resources namely room1 and room2. When I tried to drag and drop an appointment from one resource to another resource it gives me an Invalid Time slot error. Could you please help ?

Thanks,
Aditya
Aditya
Top achievements
Rank 1
 answered on 07 Jul 2009
1 answer
92 views
Hi,
     I need to use the radgrid for multiple languages, while searching for this i found solution for radcalendar control like,

RadCalendar1.CultureInfo = New CultureInfo(CulturesList.Items(CulturesList.SelectedIndex).Value)

i tried the same thing for my radgrid but i can't.

Could you tell me how can i use this CultureInfo with my radgrid.

-thanks,
-Saravana.
Daniel
Telerik team
 answered on 07 Jul 2009
2 answers
818 views

In my grid I have made GridTemplateColumns with labels inside to display text of various colors.  I determine the different color for the text in the code behind of the RadGrid1_ItemDataBound event.  However, I would like to go away from this and just change the forcolor of the text in a GridBoundColumn. 

How can I access the GridBoundColumn from the code behind in the RadGrid1_ItemDataBound event?

This is how I get a labels properties, but I can't get it to work for GridBoundColumns.

 Label time = (Label)e.Item.Cells[0].FindControl("LabelTime"); 
Mike
Top achievements
Rank 1
 answered on 07 Jul 2009
0 answers
78 views
Hi I am using radgrid having feature of filtering by combobox. But i set the combowidth to small according to fit to column,but the items length are too much. So I would like to emapnd columnwidth according to the length of items.
Column widgets (for filtering) are to small and unreadable when the column widths are small – these should expand out when selected (has focus)


regards,
Appu
Appu
Top achievements
Rank 1
 asked on 07 Jul 2009
1 answer
149 views
I have searched the forums and tried a couple of the things that I found there, but still can not correct an issue I am having with the radEditor.  If I open the image manager, and click the upload tab at the top, then leave it open for awhile (10+ minutes) before browsing for an image to upload, the entire dialog window will timeout when I click the upload button.  This does not occur on my local machine, only when I load the app to our production servers.  Also, the problem seems to only occur with IE.  I've tried the window.setTimeout function to manually open the dialog window and increase the millisecond count, to no avail, and my version (2008.3) does not support the cookieTimeoutLimit property.  Any ideas on how to eliminate this problem?
Lini
Telerik team
 answered on 07 Jul 2009
2 answers
185 views
Hi
      I am using rad grid having paging option , i would like to change or customize  Paging Combobox items. I could only customize or add upto 3 items to that combo box.But i would like to add default sizes to be 25, 50, 100, 250, and 500 so on. is there any way to extend the items size up to the size i mentioned.

if (e.Item is GridPagerItem)
        {
            RadComboBox PageSizeCombo = (RadComboBox)e.Item.FindControl("PageSizeComboBox");
            PageSizeCombo.Items[0].Text = "50";
            PageSizeCombo.Items[1].Text = "500";
            PageSizeCombo.Items[2].Text = "1000";
            //PageSizeCombo.Items[3].Text = "500";
            //PageSizeCombo.Items[4].Text = "2000";
           
            //PageSizeCombo.FindItemByText(e.Item.OwnerTableView.PageSize.ToString()).Selected = true;
            PageSizeCombo.FindItemByText("50").Selected = true;

           
            
        }

In above code i could add only 3 items including the Page size i fixed in the Grid

Regards,
Appu
Appu
Top achievements
Rank 1
 answered on 07 Jul 2009
3 answers
179 views
I have the following code in default.aspx
<telerik:RadToolBar ID="RadToolBar1" runat="server" Orientation="Vertical" dir="rtl">
                <Items>
                    <telerik:RadToolBarDropDown runat="server" Text="DropDown 0">
                        <Buttons>
                            <telerik:RadToolBarButton runat="server" Text="Child Button 1">
                            </telerik:RadToolBarButton>
                        </Buttons>
                    </telerik:RadToolBarDropDown>
                    <telerik:RadToolBarDropDown runat="server" Text="DropDown 1">
                        <Buttons>
                            <telerik:RadToolBarButton runat="server" Text="Child Button 1">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Child Button 2">
                            </telerik:RadToolBarButton>
                        </Buttons>
                    </telerik:RadToolBarDropDown>
                    <telerik:RadToolBarDropDown runat="server" Text="DropDown 2">
                        <Buttons>
                            <telerik:RadToolBarButton runat="server" Text="Child Button 1">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Child Button 2">
                            </telerik:RadToolBarButton>
                        </Buttons>
                    </telerik:RadToolBarDropDown>
                </Items>
            </telerik:RadToolBar>


when I open the page in browser, and click on "drop down 0" then sub-menu opens, then when i click on it again for 2 times, the sub-menu's width is enlarged and each time I click the "drop down 0", the sub-menu gets wider. Is there a solution to this problem?


Paul
Telerik team
 answered on 07 Jul 2009
7 answers
343 views
Hi,
Could anyone tell me how i can localize and translate
the DateTimePicker's ToolTip in Filter Menu to my own Language?

protected void Page_Load(object sender, EventArgs e) 
    var grid = RadGrid1
    foreach (GridColumn column in grid.Columns) 
    { 
        if (column is GridDateTimeColumn) 
        { 
            var editor = (column as GridDateTimeColumn).CurrentColumnEditor as GridDateTimeColumnEditor; 
            var picker = editor.PickerControl as RadDateTimePicker; 
 
            picker.DatePopupButton.ToolTip = "XXXX"; // why no effect??? 
        } 
    } 
 

Thanks in advance.
Kind Regards.

Sebastian
Telerik team
 answered on 07 Jul 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?