Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
83 views
When we use allowautomaticinserts, the edit form opens up between the grid header and the grid rows. Is there any way to change this layout. Either make it appear below or above the grid?
Pavlina
Telerik team
 answered on 06 May 2010
1 answer
90 views
Hello,

In  RadTabStrip component can we load data to first tab only while opening page, and when pressing on the other tab it well load it's data and so on.
We want to avoid lazy loading  on our website.
Yana
Telerik team
 answered on 06 May 2010
6 answers
90 views

I am defining several columns through the RadGrid definition in the aspx file and several columns programatically in the page load event handler. The problem is that the programatically added columns don't work with sorting or filtering. The grid reloads, but the results are not sorted/filtered. If I define the column in the RadGrid definition instead of adding them programatically, they sort and filter correctly.

Columns defined in RadGrid definition:

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="LeadDistributionId" ReadOnly="true" UniqueName="LeadDistributionId" Visible="true" />

 

 

<telerik:GridBoundColumn SortExpression="LeadDistributionType" HeaderText="Lead Distribution Type" DataField="LeadDistributionType" HeaderButtonType="TextButton" HeaderStyle-Width="150" ItemStyle-Width="150" FooterStyle-Width="150" />

 

 

<telerik:GridBoundColumn SortExpression="ProgramName" HeaderText="Program" DataField="ProgramName" HeaderButtonType="TextButton" />

 

 

<telerik:GridBoundColumn DataField="ProgramID" Visible="false" />

 

 

<telerik:GridBoundColumn SortExpression="SupplierName" HeaderText="Supplier" DataField="SupplierName" HeaderButtonType="TextButton" />

 

 

<telerik:GridBoundColumn DataField="SupplierID" Visible="false" />

 

 

<telerik:GridBoundColumn SortExpression="State" HeaderText="State" DataField="State" HeaderButtonType="TextButton" HeaderStyle-Width="150" ItemStyle-Width="150" FooterStyle-Width="150" />

 

 

<telerik:GridBoundColumn DataField="StateID" Visible="false" />

 

 

</Columns>

Columns defined programatically:

 

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

// if this is the initial page request

 

 

if (!this.IsPostBack)

 

{

 

DataTable dtLeadDistributionSummary =

 

((

DataView)this.sdsLeadDistributionSummary.Select(new DataSourceSelectArguments())).ToTable();

 

 

Regex reCallCenterColumn = new Regex(LeadDistributionSummary.CallCenterColumnRegEx);

 

 

foreach (DataColumn dataColumn in dtLeadDistributionSummary.Columns)

 

{

 

// if this colummn is a call center column

 

 

if (reCallCenterColumn.IsMatch(dataColumn.ColumnName))

 

{

 

GridBoundColumn gridBoundColumn = new GridBoundColumn();

 

 

// when adding columns programatically in Page_Load event, column

 

 

// must be added to the columns collection before setting properties

 

 

this.RadGrid1.MasterTableView.Columns.Add(gridBoundColumn);

 

gridBoundColumn.UniqueName = dataColumn.ColumnName;

gridBoundColumn.DataField = dataColumn.ColumnName;

gridBoundColumn.HeaderButtonType =

GridHeaderButtonType.TextButton;

 

gridBoundColumn.HeaderStyle.Width = 150;

gridBoundColumn.ItemStyle.Width = 150;

gridBoundColumn.FooterStyle.Width = 150;

gridBoundColumn.Groupable =

true;

 

gridBoundColumn.AllowFiltering =

true;

 

 

// remove "CC-" prefix from column name for header text

 

gridBoundColumn.HeaderText = reCallCenterColumn.Replace(dataColumn.ColumnName,

"$2");

 

}

}

 

// hide grouped columns

 

 

foreach (GridGroupByExpression gridGroupByExpression in this.RadGrid1.MasterTableView.GroupByExpressions)

 

{

 

foreach (GridGroupByField gridGroupByField in gridGroupByExpression.GroupByFields)

 

{

 

this.RadGrid1.MasterTableView.GetColumnSafe(gridGroupByField.FieldName).Visible = false;

 

}

}

#region

 

expand first level

 

 

//// bind grid so items may be expanded below

 

 

//this.RadGrid1.Rebind();

 

 

//// loop through group headers

 

 

//foreach (GridGroupHeaderItem gridGroupHeaderItem in RadGrid1.MasterTableView.GetItems(GridItemType.GroupHeader))

 

 

//{

 

 

// if (gridGroupHeaderItem.GroupIndex.Length == 1)

 

 

// {

 

 

// // expand the group

 

 

// gridGroupHeaderItem.Expanded = true;

 

 

// }

 

 

// else

 

 

// {

 

 

// gridGroupHeaderItem.Expanded = false;

 

 

// }

 

 

// Groups[gridGroupHeaderItem.GroupIndex] = gridGroupHeaderItem.Expanded;

 

 

//}

 

#endregion

 

expand first level

 

}

}

Pavlina
Telerik team
 answered on 06 May 2010
1 answer
126 views
Hi,


In my application i have the functionality to freeze first three columns of grid. But in my grid i have first two columns of "RowIndicator" & "Checkbox" column. I want o freeze three coulmns (i.e ProductID,ProductName,SupplierID) next to "RowIndicator" & "Checkbox" columns. Can you please help me to achieve this functionality.



Thanks,
Ankesh Bharti
Pavlina
Telerik team
 answered on 06 May 2010
2 answers
91 views
Hi guys,

i followed the instructions from "Implementing filtering for template/custom columns".
I created a VB file named MyCustomFilteringColumn.vb, then add the tag
<%@ Register TagPrefix="custom" Namespace="<MyApplicationNamespace>" Assembly="<MyApplicationAssembly>" %>
in my aspx page.
Unfortunately, the intellisense doesn't show me the new column named "custom" like <custom:MyCustomFilteringColumn
After one week tries, i gave up.
Can someone please tell me why?
When i create a new ASP.NET Application Project, it does work. But it doesn't work in my current application.
NB: we are replacing old Grids with RadGrids in a big project, that's why i can't just create a new one and copy again the whole stuff.
I hope there is better solution or another alternative to deal with the custom column.

Here some properties of my application: LINK
And the declaration in the aspx: LINK

Thank you
Yavor
Telerik team
 answered on 06 May 2010
3 answers
114 views
When selecting/highlighting all text then bold / change font  etc. the entire text is quite rightly wraped with start and end tags.
What i want to do is wrap each line with the text change.
Reason being i am treating each carriage return or new line as an entry. If user selects the lot i need each line tagged not the lot.
Can i stop users from selecting the whole text can select one line only.


Rumen
Telerik team
 answered on 06 May 2010
2 answers
154 views
hi my dear firends ...
how can i force My RadAlert To Appear on face of my RadMenu?
my page header became large and my RadMenu(under header) Position Is About Center Of My Page...
when radalert appears i can not see some of it's body because it is appeared under my menu...

======================================================================================

after that how can i change my radalerp position in page(i mean DEFAULT x and y)?

regards...



Majid Darab
Top achievements
Rank 1
 answered on 06 May 2010
3 answers
214 views
hi,
Can you please tell me that we can use the RadGrid to create an interface like a spreadsheet?

or any other telerik control for doing the same.

Samee Javaid    
Yavor
Telerik team
 answered on 06 May 2010
1 answer
271 views
how can i select the root path as my ViewPath in RadFileExplorer. ie i want to set the path so i can view all my local drives and have access to all folders on my pc from RadFileExplorer. i need something similar to folderbrowserdialog control (in winform application) on my asp.net using RadFileExplorer. is this possible?
Princy
Top achievements
Rank 2
 answered on 06 May 2010
1 answer
46 views
I have almost exactly the same problem as this thread but I do NOT have the key piece of knowledge to connect an entity data source.
http://www.telerik.com/community/forums/aspnet-ajax/grid/grid-and-edit-form-with-2-different-datasources.aspx

After reading above:

I am missing the boat on this one. I have my data access via Entity Framework and bind an entity data object to the datagrid no problem. I want my second datasource to bind to the NestedView BUT the only option I have is DataSourceID which is expecting a string value that represents, for example, a SQLDataSource object.....but I don't need one I already have my data so how do I get the entity data bound to the nested view...yes I could circumvent the entity and make it work but that would defeat using the entity???

What am I missing?
Yavor
Telerik team
 answered on 06 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?