Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
213 views
I have the AllowPaging set to true but when I trey to move to the next page the grid comes up empty.  The indicator at the bottom says there are about 100 pages.

Doesn't the default paging take care of this at a basic level?  I'm not trying to do anything custom.

Here's my grid code:

 

<telerik:RadGrid ID="rgJ" runat="server" Skin="WebBlue" AutoGenerateColumns="False"

 

 

GridLines="None" AllowPaging="True" PageSize="15" AllowFilteringByColumn="True"

 

 

AllowSorting="True" Width="430px" Height="440px" AllowMultiRowSelection="false" PagerStyle-Mode="NextPrevAndNumeric" >

 

 

<MasterTableView ItemStyle-Height="10px">

 

 

<Columns>

 

 

<telerik:GridTemplateColumn UniqueName="cbJobSelect" AllowFiltering="false">

 

 

<ItemTemplate>

 

 

<asp:CheckBox ID="cbJob" runat="server" OnCheckedChanged="ToggleRowSelection" Width="30px"

 

 

AutoPostBack="True" />

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn DataField="JOB_CODE" HeaderText="Job Code" UniqueName="JOB_CODE"

 

 

ReadOnly="True">

 

 

<HeaderStyle HorizontalAlign="Left" Width="110px" Wrap="False" />

 

 

<ItemStyle HorizontalAlign="Right" Width="110px" Wrap="False" />

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="JOB_NAME" HeaderText="Job Name" UniqueName="JOB_NAME"

 

 

ReadOnly="True">

 

 

<HeaderStyle HorizontalAlign="Left" Width="250px" Wrap="False" />

 

 

<ItemStyle HorizontalAlign="Center" Width="250px" Wrap="False" />

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</ExpandCollapseColumn>

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</RowIndicatorColumn>

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" />

 

 

</ClientSettings>

 

 

<FilterMenu EnableTheming="True" Skin="WebBlue">

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

</FilterMenu>

Do I need to put something in the PageIndesxChanged event?

Thanks

Shinu
Top achievements
Rank 2
 answered on 31 Dec 2008
1 answer
203 views

In my scenario I want to add child nodes when any one expend the node or press the plus sign. But the Node expend event is not rising and can I call a java script function (radalert message on a condition) on context menu click event?

Princy
Top achievements
Rank 2
 answered on 31 Dec 2008
2 answers
158 views
Hello!
Please help solve the problem
I use Dundas olap chart inside RadDock control. Both of them has their own ajax capability. Using one inside another breaks functionality of olap chart. The issue emerges when I try to work with olap chart - I recieve an error 'Incorrect Callback Arguments'. I think the problem is that both of these controls has ajax. Thus, I would like to ask you: is it possible to disable ajax for RadDock, i.e. be able to drug docks as ugual but make post back instead of ajax callback on drop?

Thanks in advance, Richard.

Richard
Top achievements
Rank 1
 answered on 31 Dec 2008
3 answers
121 views
I have a radwindow that I close server side using the approach of sending a JS function to a label, as recommended on previous posts. This works finw when it occurs on a server side button click event. The issue is that I have wrapped the button on an radajaxpanel that has a panel that I use to display error messages. When I add the panel the close function does not fire, I have inspected the DOM and the script is there. I have tries adding ajaxsettings for the button to update the label.

The popup is a content page of a master page. The master page holds the ajaxmanager, while the content page has a proxy, which is where I am setting the ajax settings.

Any help is appreciated.
Princy
Top achievements
Rank 2
 answered on 31 Dec 2008
1 answer
125 views
Hello ALL,

which is the  event that can I used to change the data befor bind it  to grid like:

try

{

Telerik.Web.UI.

GridDataItem _dataItem = e.Item as Telerik.Web.UI.GridDataItem;

 

 

if (_dataItem["Status"].Text == "ASSIGNED")

 

{

 

if (Session["DepartmentCode"].ToString() != "61")

 

_dataItem[

"Status"].Text = "APPROVED";

 

}

}

 

catch

 

{

}


thanks
ghadeer

Princy
Top achievements
Rank 2
 answered on 31 Dec 2008
1 answer
94 views
Hi

Is a way that the upload image button, the other buttons alongside (delete, image editor etc) and the image alt text input box can be removed from the dialog box? 

Also is the ImageManager class available so that we can manipulate the selection returned from the dialog to allow us to insert our own alt text based on the image selected?

Thanks
Peter

Stanimir
Telerik team
 answered on 31 Dec 2008
1 answer
115 views
Hi,

I am using RadHtmlField control in my sharepoing application. its woking everything is fine. i have small problem when i enter text in that control its working. but i am displaying that data in some where its showing everything in Oneline.

How can i word wrap i am using like this is it currect? but its not working..

<div style="word-wrap: break-word">
    <radE:RadHtmlField FieldName="Field1" runat="server" id="RichHtmlFieldEdit" ConfigFile="~/_wpresources/RadEditorSharePoint/4.5.1.0__1f131a624888eeed/RadControls/Editor/ourredConfigFile.xml" DisableInputFieldLabel="True">
    </radE:RadHtmlField>
    </div>

Thanks
Stanimir
Telerik team
 answered on 31 Dec 2008
1 answer
81 views
Is it possible to modify the RadGrid so that the columns are editable instead of the rows?  I'm developing a web application that will replace a series of Microsoft Excel spreadsheets.  In the worksheets, time is displayed on the X-axis and accounts are displayed on the Y-axis.

I've seen the Pivot table example, but in that example, users still edit the "rows".

Thanks!
James
Princy
Top achievements
Rank 2
 answered on 31 Dec 2008
3 answers
322 views
Hi,
I have created a Channel Guide through RadScheduler in Timeline view, on the left I have channels (resources) listed and Time slot i have only one day view that start from 8:00 AM to 7:00 PM.

What I want is that to scroll RadScheduler (horizontally or vertically) by my own custom buttons.

Thanks
Adi
Adeel
Top achievements
Rank 1
 answered on 31 Dec 2008
1 answer
336 views
Hello,

I have two radgrid in which one contains two fields a check box and a name. The system checks what the user has access to and selects the appropiate check box if the user has rights to those feeds. Since there are a lot of feeds I would like the "Selected" checkbox items to appear first. I am unsure on how to do this. Here is my Rad Grid

 

 <telerik:RadGrid ID="RadFeedsList"   
                    DataSourceID="SqlDataSource2"   
                    AllowMultiRowSelection="True" 
                    runat="server"   
                    AllowSorting="True"   
                    GridLines="None"   
                    Width="300px"   
                    CssClass="FeedsList"   
                    AutoGenerateColumns="False" 
                    Skin="">  
                    <MasterTableView Width="100%">  
                        <RowIndicatorColumn> 
                            <HeaderStyle Width="20px"></HeaderStyle> 
                        </RowIndicatorColumn> 
 
                        <ExpandCollapseColumn> 
                            <HeaderStyle Width="20px"></HeaderStyle> 
                        </ExpandCollapseColumn> 
 
                        <Columns> 
                            <telerik:GridClientSelectColumn SortExpression="CategoryID" UniqueName="ClientSelectColumn" ItemStyle-Width="10px" /> 
                            <telerik:GridBoundColumn  DataField="CategoryID" UniqueName="id" Visible="false" HeaderText="Feeds"></telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn  DataField="Name" UniqueName="Name" HeaderText="Feeds"></telerik:GridBoundColumn> 
                        </Columns> 
                    </MasterTableView> 
                    <ClientSettings> 
                        <Selecting EnableDragToSelectRows="true" AllowRowSelect="True"></Selecting> 
                    </ClientSettings> 
                    <SelectedItemStyle CssClass="SelectedItem"></SelectedItemStyle>   
                    <AlternatingItemStyle CssClass="" ></AlternatingItemStyle>  
                </telerik:RadGrid> 

And here is the code that I am trying to get to work:

 GridSortExpression expression = new GridSortExpression();  
            expression.FieldName = "CategoryID";  
            expression.SetSortOrder("Ascending");  
            RadFeedsList.MasterTableView.SortExpressions.AddSortExpression(expression);  
            RadFeedsList.MasterTableView.Rebind();  
 

But it clears all the checkboxes on the rebind/

 

 

 

 

 

 

 

Princy
Top achievements
Rank 2
 answered on 31 Dec 2008
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?