Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
132 views
I have a grid with the following:

- Keyboard navigation turned on
- Scrolling turned on and lots of records
- Client side selection and operation

If I scroll the grid down, say, halfway and select a row with the mouse everything is fine.  If I then use the up/down arrow to move the selection, the grid will automatically scroll so that the newly selected row is visible as the last visible row.  This auto scroll is disorienting.  Why does it do this? Can this auto scroll behavior be stopped?  Thanks!

The grid markup:

        <telerik:RadGrid ID="RadGridEmails" runat="server" AllowSorting="True" PageSize="100" Height="100%" Width="100%"
            AllowMultiRowSelection="True" EnableViewState="false" AllowPaging="True" GridLines="None" Skin="Default" >
            <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric"></PagerStyle>
            <ItemStyle Height="10px"    />
            <MasterTableView ClientDataKeyNames="ID, MailBoxID" AllowMultiColumnSorting="False" TableLayout="Fixed" Width="810px"  >
                <Columns>
                    <telerik:GridTemplateColumn UniqueName="tcNotRead" SortExpression="" Resizable="false" DataField="Status" HeaderText="&nbsp;">
                        <HeaderStyle HorizontalAlign="Center" Width="30px" ></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                        <ItemTemplate>
                            <asp:Image id="imgMailStatus" ImageUrl="~/Media/Images/Icons/NotRead.gif" BorderWidth="0px" style=" border-style:none; padding:0px; margin:0px" runat="server" AlternateText="" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                   
                    <telerik:GridTemplateColumn UniqueName="tcAttachments" SortExpression="" Resizable="false" DataField="HasAttachments2" HeaderText="&nbsp;">
                        <HeaderStyle Width="30px"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                        <ItemTemplate>
                            <asp:Image ID="imgHasAttachments" ImageUrl="~/Media/Images/Icons/clrImg.gif" BorderWidth="0px"  style=" border-style:none; padding:0px; margin:0px" AlternateText="Has Attachments" runat="server" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                   
                    <telerik:GridTemplateColumn UniqueName="tcFlag" SortExpression="" DataField="Mark" Resizable="false" HeaderText="&nbsp;">
                        <HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                        <ItemTemplate>
                            <asp:Image ID="imgMailFlag" ImageUrl="~/Media/Images/Icons/grayFlag.gif" BorderWidth="0px"  style=" border-style:none; padding:0px; margin:0px" AlternateText="" runat="server" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>                
                   
                    <telerik:GridTemplateColumn UniqueName="bcToFrom" SortExpression="TO-FROM" HeaderText="To/From">
                        <ItemStyle  Width="150px" ></ItemStyle>
                        <HeaderStyle Width="150px"></HeaderStyle>
                        <ItemTemplate>
                        <div style="white-space: nowrap;overflow:hidden;text-overflow:ellipsis; width:100%;"><asp:Label ID="lblToFrom" runat="server"></asp:Label></div>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                   
                    <telerik:GridBoundColumn UniqueName="bcSubject" DataFormatString="{0}" SortExpression="Subject" HeaderText="Subject" DataField="Subject">
                        <ItemStyle  Width="400px" ></ItemStyle>
                        <HeaderStyle Width="400px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                   
                    <telerik:GridTemplateColumn UniqueName="tcDate" SortExpression="DateTimeStampUtc" HeaderText="Date">
                    <ItemStyle Width="110px" ></ItemStyle>
                        <HeaderStyle Width="110px"></HeaderStyle>
                    <ItemTemplate>
                     <div style="white-space: nowrap;overflow:hidden;text-overflow:ellipsis; width:100%;"><asp:Label ID="lblDate" runat="server"></asp:Label></div>
                  </ItemTemplate>
                    </telerik:GridTemplateColumn>
                   
                    <telerik:GridBoundColumn UniqueName="bcSize" DataFormatString="{0}" SortExpression="RealSize" HeaderText="Size" DataField="RealSize">
                        <ItemStyle  Width="60px" HorizontalAlign="Right"></ItemStyle>
                        <HeaderStyle Width="60px" HorizontalAlign="Right"></HeaderStyle>
                    </telerik:GridBoundColumn>
                </Columns>    
                <NoRecordsTemplate><div style="text-align: center; padding: 5px">No mail found.</div></NoRecordsTemplate>          
            </MasterTableView>
            <ClientSettings AllowColumnHide="True" AllowKeyboardNavigation="true" EnableRowHoverStyle="true" ReorderColumnsOnClient="false" >
                <ClientEvents  OnRowContextMenu="RowContextMenu" OnCommand="RadGridEmails_Command" OnRowDataBound="RadGridEmails_RowDataBound" OnRowSelected="RadGridEmails_RowSelected" OnRowSelecting="RadGridEmails_RowSelecting"/>
                <Selecting AllowRowSelect="true" />
                <Scrolling AllowScroll="True" UseStaticHeaders="true"  ></Scrolling>
                <Resizing ResizeGridOnColumnResize="true" AllowRowResize="false" AllowColumnResize="True" ></Resizing>
            </ClientSettings>           
        </telerik:RadGrid>
Pavlina
Telerik team
 answered on 12 Oct 2009
5 answers
132 views
Hi,

We want to create appointement that have no time duration.

We tried to create a few with no success cause they're not showing in the scheduler. We had to set an interval of 1 min so the can show in the scheduler. But we don't want to validate the duration of each appointement we create.

Is there a way to create appointement  without using the time property but only the date where they will appear in the scheduler??

Thx alot!

Guillaume

PS: Sorry just noticed i've post on the wrong forum.
Peter
Telerik team
 answered on 12 Oct 2009
4 answers
118 views
Hello Guys,

I need to display a radgrid for which I do not know the structure of child grid at design time.

For example consider I have a grid whose row are say Customers, Orders, Items

The child grids for each of these would have a different structure. Therefore based on the parent item, I would need to create a child gridview and add different columns to it. I am not sure how do I go about doing this because when I do not declare any detail table girds during design time, I do not even see the expand column, so I can't even generate a onChildtabledatabind event. Please help.

Thanks,
Pavan.
Yavor
Telerik team
 answered on 12 Oct 2009
4 answers
155 views
Hello,

I discovered that my radNumericTextBoxs postback when user try to decrease the value under the minimum, even if the result is no change in value.
How could we avoid this, it should not postback if no change occurs in the displayed value, it has great network cost on my app.

Is this a bug, should I open a ticket

Thanks for help.
CS
CSurieux
Top achievements
Rank 2
 answered on 12 Oct 2009
1 answer
152 views
Hello,

I need to customize the "intermediate" state of the checkbox icon on the rad treeview with tri-state checkbox activated.

But i' cant find this on the visual style builder.

Anyone know a way to customize it ?

I need to have the Intermediate icon to be RED instead of Blue. (so the user can feel & use it to exclude the item associated).

Thx
Alex Gyoshev
Telerik team
 answered on 12 Oct 2009
3 answers
118 views
Hi,

I have created a new skin using the Visual Style Builder. As the base skin I have selected the Telerik skin. Using the Hue and Saturation function in the Shift Colors tab I changed the green Telerik color to some kind of purple (our company color (www.smallweb.nl)).

Now I have downloaded my new skin and I am testing the skin in a test web project. I notice that not all controls are part of the new skin. How can I add the missing controls into my new skin and change the colors to the purple I am using at the other controls?

Thx,
Danny
Alex Gyoshev
Telerik team
 answered on 12 Oct 2009
2 answers
275 views
Hi

I want to find if
LEFT CTRL key 
LEFT SHIFT key
RIGHT CTRL key
RIGHT SHIFT key
has been pressed while clicking on the row in the grid

i am using this code in javascript, but does not get fired 

function

OnKeyPress(sender, eventArgs) {

 

 

var key = eventArgs.get_keyCode();

 

 

alert("here");

 

alert(

"Key code: " + eventArgs.get_keyCode());

 

alert(

"Is Shift pressed: " + eventArgs.get_IsShiftPressed());

 

alert(

"Is Ctrl pressed: " + eventArgs.get_IsCtrlPressed());

 

alert(

"Is Alt pressed: " + eventArgs.get_IsAltPressed());

 

alert(

"Is Left Alt: " + eventArgs.get_domEvent().get_altLeft());

 

}

in the RADGRID , i have done the following settings

 

<

ClientSettings AllowKeyboardNavigation

="true"

 

<

ClientEvents OnKeyPress="OnKeyPress" OnRowClick="telerik_RowClick" OnRowCreated="telerik_RowCreated" OnRowDeselected="telerik_RowDeselected"

 

 

OnRowSelected="telerik_RowSelected" />

 

 

 


thanks

 

 

Tsvetoslav
Telerik team
 answered on 12 Oct 2009
1 answer
107 views
Hi,

I'm trying to use radtreeview in sharepoint. but the items are not displayed as hierarchy levels!
what's wrong?

Thanks and Best Regards
Atanas Korchev
Telerik team
 answered on 12 Oct 2009
1 answer
89 views
I am using RadControls-grdInsertUpdateDeleteAtDatabaseLevel sample program in http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx
 
I want to show a grid field as a drop down from another datasource. But I am getting an error when I am trying to update it. I have given here what I have done currently. I am getting this error when I add the drop down. Can you tell me how can I add it to the .cs code to get the selected ID.
 
.ASPX
 
<telerik:GridBoundColumn DataField="Password" HeaderText="Password" UniqueName="Password"> </telerik:GridBoundColumn>
 <telerik:GridDropDownColumn DataField="CompanyID" DataSourceID="SqlDataSource2"HeaderText="CompanyID" ListTextField="CompanyName" ListValueField="CompanyID" UniqueName="CategoryID" ColumnEditorID="GridDropDownColumnEditor1"></telerik:GridDropDownColumn>
 
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:TestDataConnectionString2 %>" SelectCommand="SELECT [CompanyID], [CompanyName], [CompanyCode], [AddressLine01], [AddressLine02], [AddressLine03], [AddressLine04], [PostCode], [Country], [Telephone], [Fax], [Web], [default] FROM [tbl_LU_Companies]"></asp:SqlDataSource>

.CS
string Password = (editedItem["Password"].Controls[0] as TextBox).Text;
string CompanyID = (editedItem["CompanyID"].Controls[0] as TextBox).Text;

How can I get the Company ID. Can you help me please.
 
Thank you,
Shinu
Top achievements
Rank 2
 answered on 12 Oct 2009
1 answer
150 views
I am currently using scrolling feature of RadGrid (Q2 2009). The problem I have is with the very slow performance of its horizontal scrolling experience in a scenario where my grid has around 20 columns. I searched for similar issues in the forum and found out that other people had the similar problem in the specific case of having one or more frozen columns. Well! In my scenario, I don't have any frozen columns but the scrolling speed is noticably slow.

At least, I think in the case of no frozen columns, horizontal scrolling should not have any performance problem.

Is there anything I can do to fix this issue?


Pavlina
Telerik team
 answered on 12 Oct 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?