Showing posts with label Telerik. Show all posts
Showing posts with label Telerik. Show all posts

Monday, 2 December 2013

How to display Telerik RadDatePicker Calendar PopUp Above

For this issue,you have to do two simple steps.These simple two steps are  as follows:--

Step-1:
   First use this JavaScript in your HTML code
JavaScript :

     


Step-2:
After that you have to use this below code in your .cs file(Page_Load event)
RadDatePicker1.DatePopupButton.Attributes.Add("onclick","PopupAbove(event, '" +  RadDatePicker1.ClientID + "');return false;");
Note:-

If you are till facing problem,i mean to say that Calendar popup not showing on top then let me know.Comment please

Telerik RadGrid Pager 508 compliances

Here is the code:
Copy this code and paste it in your RadGrid.

     
       
-------
-------
    

Saturday, 16 February 2013

Telerik RadGrid PageSize Combobox If not working.

If you are facing some problem like
  • When you are changing the the page size in Pagesize combobox. After that the grid not showing the the the page size that you are changed.
  • Then Do the following to solve this issue.
Step1:-
  • First Add a Telerik Rad GridView.

Here is the Source Code for Telerik RadGrid:-




    
      
     
       
        
         
        
       
       
        
          
        
       
       
        
         
        
       
       
        
         
        
       
       
         
          
         
       
    
  



Here is the C# Code:

protected void grdMerg_PageIndexChanged(object sender, GridPageChangedEventArgs e)
{
  RadGrid1.CurrentPageIndex = e.NewPageIndex;
  //Here bind the grid
}

protected void grdMerg_ItemCreated(object sender, GridItemEventArgs e)
{
  if (e.Item is GridPagerItem)
  {
    GridPagerItem pager = (GridPagerItem)e.Item;
    RadComboBox PageSizeComboBox = (RadComboBox)pager.FindControl("PageSizeComboBox");
    PageSizeComboBox.AutoPostBack = true;
    PageSizeComboBox.SelectedIndexChanged += new     RadComboBoxSelectedIndexChangedEventHandler(PageSizeComboBox1_SelectedIndexChanged);
   }
}

void PageSizeComboBox1_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
  //Here bind the grid
}

Friday, 8 February 2013

Telerik RadGrid PageSize ComboBox Change Value

How to Change the Value in RadGrid PageSize ComboBox :
Source Code:

        
            
........
........
........

Default Sort column in telerik RadGrid

How to make a default sort column in Telerik RadGrid

Here is the .cs code


GridSortExpression expression = new GridSortExpression();
expression.FieldName = "EMPNAME";
expression.SortOrder = GridSortOrder.Descending;
RadGrid1.MasterTableView.SortExpressions.AddSortExpression(expression);
RadGrid1.MasterTableView.DataSource=your DataSource;
RadGrid1.MasterTableView.DataBind();

You can do using HTML code inside MasterTable

 
   
       
  

......
......

Saturday, 2 February 2013

Telerik RadWindow as modal popup

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Popup.aspx.cs" Inherits="TestProject.Popup" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>



    


    
    
    
Steps:-
  • First copy and paste the above code in your aspx page.
  • Then run the page.
  • Then there is button name as Click.Click this button and you gate the follwing output.
Output:

Friday, 25 January 2013

Watermark in Telerik RadDatePicker

How to Give Watermark in Telerik RadDatePicker: Source Code For RadDatePicker:-

    
    
    
    

  • The Yellow mark Code is only to give watermark in RadDatePicker.
  • You can give any type of Watermark According to your requirements.