Telerik Forums
UI for ASP.NET AJAX Forum
15 answers
294 views
Hi,

If i create a control like this:

RadDatePicker date = new RadDatePicker();
            date.EnableTyping = false;
            date.ShowPopupOnFocus = true;

Disabling typing also disables Popup.. ..but i only want the popup, that's why i disable typing! :D

So now i have a control that allows no input at all!

Disabling typing should actually force popup = true

Also, you should probably not show a caret in the input box when typing is disabled. Very misleading.
Maria Ilieva
Telerik team
 answered on 28 May 2012
1 answer
81 views
basically I have radtabstripe with 3 levels so for 1st and 2nd i want default behavior of radtab but for third level i want to show tab items in dropdown / radcombo format. so is there any way to style 3rd level different than 1 and 2nd so that i get 3 level dispalyed in combobox style. or is there any way i can have radcombo box for 3rd level.
Kate
Telerik team
 answered on 28 May 2012
1 answer
75 views
Hi Mike,

As you suggested i have started a new thread here. Could you please let me know by what time this will be functioning properly?
Bozhidar
Telerik team
 answered on 28 May 2012
6 answers
139 views
Hi,

I create a Grid on server-side on button click event.
The grid has been created fine, but the mfunctionality of the grid doesn't work.

For example, I am trying to change page size, but the event isn't fired.
Here is my code:

 

 

 

protected void btnGenerate_Click(object sender, EventArgs e)

{

PopulateGrid();

}

protected void PopulateGrid()

{

GridPlaceHolder.Controls.Clear();

RadGrid GridReport = new RadGrid();

GridReport.GroupingSettings.CaseSensitive =

false;

GridReport.ID =

"GridReport";

GridReport.Skin =

"Gray";

GridReport.EnableViewState =

false;

GridReport.MasterTableView.EnableColumnsViewState =

false;

GridReport.Width =

Unit.Pixel(1413);

GridReport.Height =

Unit.Pixel(550);

GridReport.AllowPaging =

true;

GridReport.AllowSorting =

true;

GridReport.PageSize = 10;

GridReport.MasterTableView.AllowCustomPaging =

true;

GridReport.AutoGenerateColumns =

false;

GridReport.AllowFilteringByColumn =

false;

GridReport.EnableLinqExpressions =

false;

GridReport.GridLines =

GridLines.None;

GridReport.NeedDataSource +=

new GridNeedDataSourceEventHandler(this.GridReport_NeedDataSource);

GridReport.PageIndexChanged +=

new GridPageChangedEventHandler(this.GridReport_PageIndexChanged);

GridReport.PagerStyle.Mode =

GridPagerMode.NextPrevNumericAndAdvanced;

GridReport.ClientSettings.Scrolling.AllowScroll =

true;

GridReport.ClientSettings.Scrolling.UseStaticHeaders =

true;

GridReport.ClientSettings.Resizing.AllowColumnResize =

true;

GridReport.ClientSettings.Resizing.EnableRealTimeResize =

true;

GridReport.MasterTableView.AllowSorting =

true;

GridReport.MasterTableView.AllowNaturalSort =

false;

GridReport.MasterTableView.HierarchyLoadMode =

GridChildLoadMode.ServerOnDemand;

GridReport.ClientSettings.AllowExpandCollapse =

true;

GridReport.MasterTableView.TableLayout =

GridTableLayout.Fixed;

GridReport.MasterTableView.Width =

Unit.Pixel(1413);

GridReport.FilterMenu.EnableAjaxSkinRendering =

true;

GridReport.ClientSettings.AllowColumnsReorder =

false;

GridReport.ClientSettings.AllowDragToGroup =

false;

GridReport.ClientSettings.ReorderColumnsOnClient =

true;

GridReport.ClientSettings.Resizing.ResizeGridOnColumnResize =

true;

GridReport.ClientSettings.Resizing.ClipCellContentOnResize =

true;

GridReport.ClientSettings.EnableRowHoverStyle =

true;

GridReport.ClientSettings.ClientEvents.OnRowSelected =

"RowSelected";

GridReport.ClientSettings.Selecting.AllowRowSelect =

true;

 

 

LoadReport(GridReport);

GridPlaceHolder.Controls.Add(GridReport);

}


private void LoadReport(RadGrid GridReport)

{

 

 

    string reportName = "Report_Operations";

    switch (reportName )

     {

    case "Report_Operations":

     GridReport.MasterTableView.DataKeyNames =

    new string[] { "OperationID" };

     GridReport = BLL.BO.Reports.

    Operations.GenerateReportColumns(ref GridReport);

    break;
}

 

 

 

private void GridReport_NeedDataSource(object source, GridNeedDataSourceEventArgs e)

{
    //do something

    GridReport.DataSource = dt;}

 

 

void GridReport_PageIndexChanged(object source, GridPageChangedEventArgs e)

 {

            // DO SOMETHING, HERE THE BREAKPOINT NEVER HITS!
}

Thanks for your help!

Covertix
Top achievements
Rank 1
 answered on 28 May 2012
1 answer
67 views
In option Telerik.Charting.Styles.DefaultFigures ... there are some figures. Not all satisfy me. There are inserting new pictures? If yes, how I do it?
Yavor
Telerik team
 answered on 28 May 2012
3 answers
123 views

How do I access a GridTemplateColumn in the Grid row that was clicked?

With the getDataKeyValue() method I can get the value of GridBoundColumns after defining the columns using the ClientDataKeyNames property of the MasterTableView.

But how can I get the value of GridTemplateColumns?

Shinu
Top achievements
Rank 2
 answered on 28 May 2012
1 answer
143 views
Hi

As I can add css to my page with EnableEmbeddedBaseStylesheet and EnableEmbeddedSkins disabled. 
i did this in my page have this:

<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
     <StyleSheets>
     <telerik:StyleSheetReference  Path="../Vista/FormDecorator.Vista.css"/>
     <telerik:StyleSheetReference Path="../Vista/ToolTip.Vista.css" />
     </StyleSheets>
  </telerik:RadStyleSheetManager>

and my web.config have this:

<add key="Telerik.Web.UI.StyleSheetFolders" value="~/Vista"/>
<add key="Telerik.EnableEmbeddedSkins" value="false" />
<add key="Telerik.EnableEmbeddedBaseStylesheet" value="false" />

and nothing that could be happening or that I need to add
thank you very much beforehand 
Kate
Telerik team
 answered on 28 May 2012
2 answers
61 views
Hi there.

Could someone please give me a pointer as to how to display the column filters only if the number of rows INITIALLY returned by a grid is greater than x?

I say "initially" for a reason. Let's say x above is 20. If the grid initially returns 30 rows the filters will appear. But if I filter the grid so that only  5 rows come back based on my filter expression then the grid needs to know this is 5 out of 30 rows so it still needs to show the filters. I.e. It's the 30 that is important here, not the 5.

I'm assuming I will use the onDataBound event. But I dont know how to get the number of rows returned. And I assume there is a "total" variable I can tap into that is the number of rows regardless of any filter applied?

Thanks in advance.

Chris
Chris
Top achievements
Rank 1
 answered on 28 May 2012
8 answers
376 views
Hello,
    I am attempting to implement batch updating using controls that are located within the EditItemTemplate of a GridTemplate Column.  I am currently using a OnPreRender event to set all datagrid columns to edit mode.  The idea is the user should then be able to select values in a radcombobox and check box located in a GridTemplate column for each entry in the grid.  After the users has made their edits to multiple rows in the grid they should be able to hit a single button to process all updates.  I am attempting to use an approach similar to what is described in this article however I have been having difficulties with my OnItemCommand event as I have been unable to retrieve the values the radcombo box and check box in my EditItemTemplate have been set to.  
    Below is what I am attempting to do currently.  Also I would like to remove the "update" and "cancel" links from the EditItemTemplate rather then set the text of the link to nothing in a OnItemCreated event as I am doing currently.  Thanks in advance for helping out a Telerik beginner.

<

 

telerik:RadGrid ID="gridTestGrid" runat="server" AllowMultiRowEdit="True"

 

OnNeedDataSource

 

="gridTestGrid_DataSource"

 

OnItemDataBound

 

="gridTestGrid_ItemDataBound" OnPreRender="gridTestGrid_PreRender" OnItemCreated="gridTestGrid_ItemCreated" OnItemCommand="gridTestGrid_ItemCommand"

 

AutoGenerateColumns

 

="False" GridLines="Horizontal">

 

<

 

MasterTableView AutoGenerateColumns="False" CommandItemDisplay="TopAndBottom" DataKeyNames="TestGridID">

 

<

 

CommandItemTemplate>

 

<

 

asp:Button ID="btnUpdate" runat="server" Text="Update Changes" />&nbsp;&nbsp;

 

</

 

CommandItemTemplate>

 

<

 

RowIndicatorColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

RowIndicatorColumn>

 

<

 

ExpandCollapseColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

ExpandCollapseColumn>

 

<

 

Columns>

 

......Some Other Columns .....

<

 

telerik:GridTemplateColumn HeaderText="Facility" Visible="false"

 

UniqueName

 

="rcbColumn">

 

<

 

ItemTemplate>

 

</

 

ItemTemplate>

 

<

 

EditItemTemplate>

 

<

 

telerik:RadComboBox ID="rcbFacility" runat="server" AllowCustomText="true" MarkFirstMatch="true" Width="300px" AppendDataBoundItems="true"></telerik:RadComboBox> &nbsp&nbsp&nbsp Send to IT?: <asp:CheckBox ID="ckBox" runat="server" Checked="false" />

 

</

 

EditItemTemplate>

 

</

 

telerik:GridTemplateColumn>

 

</

 

Columns>

 

</

 

MasterTableView>

 

protected

 

void gridTestGrid_ItemCreated(object source, Telerik.Web.UI.GridItemEventArgs e)

 

{

if

 

(e.Item is GridEditableItem && e.Item.IsInEditMode)

 

{

LinkButton

 

updateButton = (LinkButton)e.Item.FindControl("UpdateButton");

 

updateButton.Text =

"";

 

LinkButton

 

cancelButton = (LinkButton)e.Item.FindControl("CancelButton");

 

cancelButton.Text =

"";

 

}

}

protected

 

void gridTestGrid_PreRender(object source, EventArgs e)

 

{

foreach

 

(GridDataItem item in gridTestGrid.Items)

 

{

item.Edit =

true;

 

gridTestGrid.Rebind();

}

}

protected

 

void gridTestGrid_ItemCommand(object source, GridCommandEventArgs e)

 

{

Hashtable

 

newValues = new Hashtable();

 

foreach

 

(GridEditableItem editedItem in gridTestGrid.Items)

 

{

e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);

RadComboBox

 

combo = ((RadComboBox)editedItem["rcbColumn"].FindControl("rcbFacility"));

 

if

 

(combo != null)

 

{

string

 

selected = combo.SelectedItem.ToString();

 

}

}

}

Shinu
Top achievements
Rank 2
 answered on 28 May 2012
0 answers
103 views
hi all,
   I have rad grid in my page. The page is designed with Rad splitter and rad pane. I enabled paging for the grid. Now my requirement is that the grid should be 100% height so that my pager should always display at the bottom of the page. For this i tried the following options

Option 1: Set height property of the grid to 100%
   This option perfectly worked in the IE 8. But this is not worked in the Firefox

Option 2: Created on css class for the grid and apply the css class. The following is the css class

        .grid
        {
            height:auto !important;
            height:100%;
            min-height:250px;
        }
But this not helped

Option 3: Created css class for  the pager and applied. The following is the css class
        .pagerPosition
        {
            position:absolute;
            bottom:10px;
            text-align:right;
 
        }
This helps some what like the pager moved to the bottom but some spacing difference in different browser.

Can anyone helps to work around for the problem?
Akhil Raj
Top achievements
Rank 1
 asked on 28 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?