Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
47 views
Hello there

I am using RAD Grid version 2008.3.+ and i am having issue with paging.

Please take a look at attach jpg image. My grid shows only link for 1st page but total pages are 11. I am using vista skin and NextPrevAndNumeric pager mode.

What i am doing wrong?

I am using same code as given in following example.

http://demos.telerik.com/aspnet-ajax/grid/examples/client/databinding/defaultcs.aspx

Thanks
Maheshkumar
Pavlina
Telerik team
 answered on 25 Jan 2010
1 answer
138 views
Error 1 D:\sama\asp\TelerikComponentsWS\school\exam_result.aspx.cs 48 60 TelerikComponentsWS
Hi,

this is shanker am doing one project by using telerik controls. I am Face one error in my application That is "GridItemEventArgs' is an ambiguous reference between 'Telerik.Web.UI.GridItemEventArgs' and 'Telerik.WebControls.GridItemEventArgs"  Am using this Assembly Reference in my application that is 

<%@ Register TagPrefix="radG" Namespace="Telerik.WebControls" Assembly="RadGrid.Net2" %>

am taking Radgrid belongs to this reference so am face above error how to solve that please it's argent my application stoped.

thanks and regrads
Shanker.B

Princy
Top achievements
Rank 2
 answered on 25 Jan 2010
1 answer
229 views
Hi All

I have a RadGrid that uses the standard edit mode form, and I am try to complete
the validation as in the declaration shown below:
<telerik:GridTemplateColumn DataField="FirstName"   
            HeaderText="FirstName" SortExpression="FirstName"   
            UniqueName="FirstName">  
            <EditItemTemplate> 
                <asp:TextBox ID="FirstNameTextBox" runat="server"   
                    Text='<%# Bind("FirstName") %>' MaxLength="25">  
                    </asp:TextBox> 
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1"   
                    runat="server"   
                    ControlToValidate="FirstNameTextBox"   
                    Display="Dynamic"   
                    ErrorMessage="First name required"   
                    SetFocusOnError="True"></asp:RequiredFieldValidator> 
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1"   
                    runat="server" Display="Dynamic"   
                    ErrorMessage="Illegal characters"   
                    SetFocusOnError="True"   
                    ValidationExpression="^[a-zA-Z0-9 \-]+$"  ControlToValidate="FirstNameTextBox"></asp:RegularExpressionValidator> 
            </EditItemTemplate> 
The problem is that when the MaxLength property is set it prevents any chacters being entered in Edit mode. Insert Mode is OK

So I took that property out and used code behind like this:
Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs)  
        If TypeOf e.Item Is GridDataItem Then  
            Dim dataItem As GridDataItem = DirectCast(e.Item, GridDataItem)  
            Dim txtbx As TextBox = DirectCast(dataItem.FindControl("FirstNameTextBox"), TextBox)  
            Dim strtxt As String = txtbx.Text  
            If strtxt.Length > 25 Then  
                txtbx.Text = strtxt.Remove(25)  
            End If  
        End If  
        If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then  
            Dim editItem As GridEditableItem = DirectCast(e.Item, GridEditableItem)  
            Dim txtbx1 As TextBox = DirectCast(editItem.FindControl("FirstNameTextBox"), TextBox)  
            Dim strtxt1 As String = txtbx1.Text  
            If strtxt1.Length > 25 Then  
                txtbx1.Text = strtxt1.Remove(25)  
            End If  
        End If  
    End Sub 

But that did not have any effect at all.

What I am doing worng here?

Thanks

Clive
PS using Q2 2009 version
Princy
Top achievements
Rank 2
 answered on 25 Jan 2010
3 answers
100 views
I have setup a custom skin but it is based on the black skin.  So, I copied the black skin into my website and renamed everything and got that part working.  I have gotten 99.9% of my site looking as I want it now, but I can't find this one last piece.  ComboBoxes show up with black background and black foreground.  Can someone please tell me the setting in the ComboBox.css to change for this?  I have changed a ton of them and none seem to effect it.

Thanks in advance,
Lee
Kamen Bundev
Telerik team
 answered on 25 Jan 2010
2 answers
614 views
hi my dear friends :
i have a grid with some boundColumn in it...
One Of My BoundColumn IS in Date Format In sql server 2008 (Not DateTime) and i want my rad grid show just date (without time) In this column Like In sql server 2008...
how can i do this ?
we just have system.datetime for this column not system.date or somethin like this ...
Majid Darab
Top achievements
Rank 1
 answered on 25 Jan 2010
1 answer
84 views
Hi,

I've been evaluating the scheduler control for use in IE6 and have noticed what could be a bug - the date header on top of each column (e.g. from sample: http://demos.telerik.com/aspnet-ajax/scheduler/examples/timelineview/defaultcs.aspx) doesn't seem to move with the appointment rows when I scroll right.

Can you duplicate this issue? Can it be fixed?

Regards,

Paul
Peter
Telerik team
 answered on 25 Jan 2010
1 answer
98 views

I am trying to upgrade a site built with asp.net 2.0 to 3.5 and to use Telerik Rad
components but running into strange problems:

1 ) I built a simple grid using sql server as data source, with auto insert, update
and delete enabled
When I clik to add a new record, the default form opens, I add data and click
Insert. Nothing happens. It does not close, and nothing is added. Cancel closes the form

2 ) A clue might be that on a simple test form the validation controls don't
work either, in that they fire if the input is not valid, but the
 form gets posted back anyway. The validation controls do not prevent it.
(Button is set to cause validation)

I have done many grids and forms and never seen this problem.

I wonder if it is because the site was originally developed on iis5, published to
iis6 on remote server, and now the development server is iis7 (vista)

Please advise!

Thanks
Clive

P.S Using visual studio 2008 with Q2 2009 version.
Veli
Telerik team
 answered on 25 Jan 2010
2 answers
169 views

Hi. I put one grid on multipage . And I set  SaveScrollPosition  property to true to save scroll position. But If i clicked another tab and click the tab contains grid. Grid's Scroll position goes back to top position even if i scrolled down to bottom of vertical scroll bar. 
Please Let me know if i got wrong direction to use radtab strip. I am totally novice using asp.net ajax controls. 
My aspx code is below : 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title></title>  
      <style type="text/css">  
        .pageView  
        {  
            border: 1px solid #898c95;  
            margin-top: -1px;  
            height: 381px;  
        }  
        
    </style> 
 
    <script type="text/javascript">  
      
      function pageLoad() {  
      }  
      
    </script> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
          <script type="text/javascript">  
 
              function onTabSelecting(sender, args) {  
                  if (args.get_tab().get_pageViewID()) {  
                      args.get_tab().set_postBack(false);  
                  }  
              }  
              
        </script> 
 
        <telerik:RadScriptManager ID="ScriptManager" runat="server" /> 
        <telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1">  
        </telerik:RadAjaxLoadingPanel> 
         <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" UpdatePanelRenderMode="Inline">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadTabStrip1">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" /> 
                        <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel1" UpdatePanelRenderMode="Inline" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="RadMultiPage1"  > 
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel1" UpdatePanelRenderMode="Inline" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <table> 
            <tr> 
                <td> 
                     
                     <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"  OnClientTabSelecting="onTabSelecting" 
                        SelectedIndex="0" > 
                        <Tabs> 
                            <telerik:RadTab runat="server" Text="user">                             
                            </telerik:RadTab> 
                            <telerik:RadTab runat="server" Text="group" Selected="True">                           
                            </telerik:RadTab> 
                        </Tabs> 
                    </telerik:RadTabStrip>        
                        <telerik:RadMultiPage ID="RadMultiPage1" CssClass="pageView"   
                            runat="server" SelectedIndex="0"   
                         onpageviewcreated="RadMultiPage1_PageViewCreated1" oninit="RadMultiPage1_Init"   
                            > 
                         <telerik:RadPageView ID="RadPageView1"  Width="400" Height="400" runat="server">  
                             <telerik:RadGrid ID="RadGrid1"   onprerender="RadGrid1_PreRender"  Width="400px" AllowSorting="True" AllowMultiRowSelection="True" AllowPaging="false"  GridLines="None" 
 runat="server">  
                                 <MasterTableView> 
                                     <RowIndicatorColumn> 
                                         <HeaderStyle Width="20px" /> 
                                     </RowIndicatorColumn> 
                                     <ExpandCollapseColumn> 
                                         <HeaderStyle Width="20px" /> 
                                     </ExpandCollapseColumn> 
                                 </MasterTableView> 
                                 <ClientSettings> 
                                    <Scrolling AllowScroll="True" ScrollHeight="400" UseStaticHeaders="True" SaveScrollPosition="True">  
                                    </Scrolling> 
                                    <Selecting AllowRowSelect="true" /> 
                                </ClientSettings> 
 
                             </telerik:RadGrid> 
                         </telerik:RadPageView> 
                          <telerik:RadPageView ID="RadPageView2"  Width="400" Height="400" runat="server">  
                              <ul> 
                                <li> 
                                <label>Name:</label> John Smith</li> 
                                      
                                </ul> 
 
                         </telerik:RadPageView> 
                     </telerik:RadMultiPage> 
                      
                </td> 
                <td> 
                    form Area   
                   </td> 
            </tr> 
        </table> 
    </div> 
                     
    </form> 
</body> 
</html> 
 
 
PS : In Addition , pageviewcreated event never fire though i put onpageviewcreated="RadMultiPage1_PageViewCreated1" on code 
       in RadMultiPage

Regards,
Eum
Yana
Telerik team
 answered on 25 Jan 2010
1 answer
73 views
I have 2  datetime columns (start_date,finish_date) in the grid.
in edit form when I choose datepicker of start_date column it works ,but  datepicker of finish_date column is not.
please any help.
.
.
.

any way I solved this by creating external form.but telerik should solve such things because we choose telerik components to do our solutions quickly.
Dimo
Telerik team
 answered on 25 Jan 2010
2 answers
98 views
Hello,
       I am using RadEditor control for formatting text and insert value into table. That is work perfectly into IE but when i used firefox and google chrome at that time i get old value instead of new value from radeditor content User RadEditor1.Content this statemaent for getting new value from radeditor.
I am using 2009, 3, 1103, 35 version telerik liabrary
Let me know what's problem and reply me soon


Regards,
Bhavesh Rana
Bhavesh
Top achievements
Rank 1
 answered on 25 Jan 2010
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?