Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
581 views
Hi,

I have a radGrid to which I want to add GridTemplateColumns which can be of type text,currency and controls. I want to align these something like text to be left aligned, currency to be right aligned with some format and controls to center aligned.

Is there a way to do this???

Thanks,
Mahesh
Shinu
Top achievements
Rank 2
 answered on 12 Aug 2009
1 answer
66 views
Hello,

I have created a custom inherited RadGrid that I am using to set certain grid functionality such as filtering on key stroke.
I am using the following code in the inherited grid to accomplish this:

        protected override void OnInit(EventArgs e)  
        {  
            base.OnInit(e);              
 
            // filter when clicking enter  
            foreach (GridColumn col in this.Columns)  
            {  
                col.CurrentFilterFunction = GridKnownFunction.StartsWith;  
                col.AutoPostBackOnFilter = true;  
            }              
        } 


The AutoPostBackOnFilter property is recognized, but the filters always default to "Contains". It appears that the CurrentFilterFunction property is ignored.

I would like to set the CurrentFilterFunction to "StartsWith" for each filter column for the custom RadGrid AutoPostBack filtering.
Is there a way to do this?

Thanks,
Jon
Shinu
Top achievements
Rank 2
 answered on 12 Aug 2009
2 answers
100 views
Hello,

I Have one option in the Context menu appear on Right click on Scheduler on any date... I want to Provide Check mark infornt of that option to turn on / Off that ...

Like .. I have "Show" option on my context menu , once i will assign items to any date , and then do right click on that and select "Show" , the check mark is displayed in front of SHOW option , and On second time click "Its disappeared"...this is the same as you can go any browsers , and from the "Tools" you can see the Check mark / not...as per turn On / Off , that features..

On every time Show On/Off, I have to set the status in the DB for that option..

Regards
Samir
Samir Patel
Top achievements
Rank 1
 answered on 12 Aug 2009
5 answers
143 views

Hi,

I am a licensed customer for Telerik 2009. I found the following problem with Datepicker control.

I am using RadGrid in my application. In that I used an Usercontrol [Custom Template] for Editing/Adding an new item to the grid.

In Usercontrol I need to select Date so i used Datepicker control, but the date selection window not opened when you press popup button

.

Thanks in Advance

Yavor
Telerik team
 answered on 12 Aug 2009
3 answers
211 views
Hi,

I have a radGrid to which I want to do custom filtering. I added my custom filters to the radGrid filtermenu. when I click on the custom filter option it is throwing the below exception:

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: is neither a DataColumn nor a DataRelation for table MyTable.


Stack Trace:

[ArgumentException:  is neither a DataColumn nor a DataRelation for table MyTable.]
   System.Data.DataRowView.get_Item(String property) +1740730
   lambda_method(ExecutionScope , DataRowView ) +101
   System.Linq.WhereEnumerableIterator`1.MoveNext() +161
   System.Linq.Enumerable.Count(IEnumerable`1 source) +189
   lambda_method(ExecutionScope ) +183
   System.Linq.EnumerableExecutor`1.Execute() +103
   System.Linq.EnumerableExecutor`1.ExecuteBoxed() +23
   System.Linq.EnumerableQuery`1.System.Linq.IQueryProvider.Execute(Expression expression) +83
   Telerik.Web.UI.GridDynamicQueryable.Count(IQueryable source) +278
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData35() +4185
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData() +1010
   Telerik.Web.UI.GridResolveEnumerable.Initialize() +55
   Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() +40
   Telerik.Web.UI.GridResolveEnumerable.get_DataTable() +31
   Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, DataView dataView, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +222
   Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +97
   Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +165
   Telerik.Web.UI.GridTableView.get_ResolvedDataSource() +219
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +73
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   Telerik.Web.UI.GridTableView.PerformSelect() +28
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.GridTableView.DataBind() +367
   Telerik.Web.UI.GridTableView.Rebind() +98
   Telerik.Web.UI.GridFilterCommandEventArgs.ExecuteCommand(Object source) +1002
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +191
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +61
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +165
   Telerik.Web.UI.GridItem.FireCommandEvent(String commandName, Object commandArgument) +80
   Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) +8934
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565



I attached the sample application to this. Please let me know why it is throwing???

file:///D:/Mahesh/Shell/BackupSourceSafe/Shell.CeMI/Shell.CeMI.zip

Thanks,
Mahesh



Pavlina
Telerik team
 answered on 12 Aug 2009
1 answer
117 views

Hi I use RadGrid with scrool and static header and in IE8 have error:

Screen

Pavlina
Telerik team
 answered on 12 Aug 2009
3 answers
122 views
Hi,

I am getting above error when clicking on edit link in RadGrid. It's working fine when column is specified in aspx page only, but when adding bound column dynamically its giving error.

My code :

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 

 

 

<telerik:RadGrid AutoGenerateColumns="false" ID="RadGrid1" OnNeedDataSource="RadGrid1_NeedDataSource"

 

 

 

AllowPaging="true" PageSize="10" AllowSorting="true" runat="server"

 

 

AutoGenerateEditColumn="true">

 

<ClientSettings>

 

 

 

<ClientEvents />

 

 

 

</ClientSettings>

 

 

<MasterTableView EditMode="InPlace" >

 

 

<Columns>

 

 

<%

 

--<telerik:GridBoundColumn HeaderText="Name" DataField="Name" UniqueName="Name" SortExpression="Name"></telerik:GridBoundColumn>--%>

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>
protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)

 

{

 

GridBoundColumn gBColumn = new GridBoundColumn();

 

gBColumn.HeaderText =

"Name";

 

 gBColumn.DataField =

"Name";

 

 gBColumn.UniqueName =

"Name";

 

 gBColumn.SortExpression =

"Name";

 

 RadGrid1.MasterTableView.Columns.Add(gBColumn);

RadGrid1.DataSource = GetDataSet();

}

Regards
Devanand Jha

 

 

Tsvetoslav
Telerik team
 answered on 12 Aug 2009
1 answer
102 views
Hello,

The date is set to a default date if the user types in a wrongly formatted one in the RadDatePicker textbox (such as "2009-12-ORLY"). I would instead like to show an error message somehow, for example when the user then clicks the submit button. How do I stop the datepicker from going for a default date?

// Peter
Pavlina
Telerik team
 answered on 12 Aug 2009
1 answer
79 views
We are looking for an editor which can apply CSS styles to text and produce consistent visual and html results on all major browsers.

Trying a simple test, I get different results. Can you explain?

Here's the test:

We go to the your demo: http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx
1. click in the main paragraph
2. ctrl-a to select all
3. hit delete
4. type hello
5. double click hello to select it
6. apply css class ‘red text’ from the drop-down

Result:
IE: text turns red, and the html reads: <p class="redText">hello</p>
Chrome: text stays black, html: <span>hello</span>
Safari: text turns red, html: <span class="redText">hello</span>
Firefox: text turns red, html: <span class="redText">hello</span><br />

Is there something that we are missing or will different browsers always produce unpredictable html?

Thanks!

Jc

Tervel
Telerik team
 answered on 12 Aug 2009
1 answer
96 views
Is there a way to configure default behavior for the enter key in radeditor dialogs?  For instance, if you highlight some text, click the hyperlink-manager, add a url and hit enter, the browser just beeps. 

This can be seen at the demo site: http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

It doesn't even look like the ok & cancel buttons can be navigated to via tab.
Tervel
Telerik team
 answered on 12 Aug 2009
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?