Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
101 views
I have the sharepoint list items as the datasource to the grid and I am using linq for the same. Now that I need to group the grid data based on a field value which is a lookup field value in that list. Every time I do that, it says, Field LookUPList.FieldValue not found in the source table. Please check the expression syntax.

Can you please guide me through this? Thank you.
Suganya
Top achievements
Rank 1
 answered on 24 Feb 2012
1 answer
147 views
Hi

I have a problem in the radeditor when I use the image property dialog in IE. When I have the property

ToolbarMode="ShowOnFocus"

from the radEditor and I try to right click on an image to change it I get this:

1. The properties window
2. Image Manager

When I close the Image Manager the toolbar seems to gain focus lettiing the properties dialog behind http://screencast.com/t/ne9kXhrLK
In this video I show you exactly the problem that I'm having: http://screencast.com/t/2XaQzn5T

Is this expected?
How can I fix this?

Thanks in advance.
Rumen
Telerik team
 answered on 24 Feb 2012
3 answers
65 views
Hi,
I would really need to make the timeline view to group by quarters, Q1, Q2, Q3, Q4.
Is it possible to specify different number of duration in the four slots?
Cause the Q1 is 90 days (jan 1 to mar 31), Q2 is 91 days (apr 1 to jun 30) and so on.

/Mattias

Peter
Telerik team
 answered on 24 Feb 2012
1 answer
59 views
RadTextBox Width not works when i upgrade to version 2012.1.215 and use RadFormDecorator.

I read in Q1 2012 (version 2012.1.215):
Breaking Changes
  • Improved: RadFormDecorator default text input width set to 160 pixels (when width is not exlicitly specified) in order to unify the input width of the different Telerik input controls

Height seems to work...

Milena
Telerik team
 answered on 24 Feb 2012
1 answer
216 views
We have been trying to get the RadGrid to allow horizontal scrolling (if the width of the columns exceeds our grid width), but make the height auto adjust to the number of rows that are contained within it.

We are generating the Grid dynamically like so...

var telerikGrid = new RadGrid
{
    ID = "RadGrid1",
    DataSource = request.dataTable,
    AllowSorting = true,
    AllowPaging = true,
    Width = Unit.Pixel(980),
    AutoGenerateColumns = true,
    GridLines = GridLines.Both,
    Skin = ddlStyle.SelectedValue ?? "Black"
};
//telerikGrid.MasterTableView.TableLayout = GridTableLayout.Fixed;
//Scrolling
telerikGrid.ClientSettings.Scrolling.AllowScroll = true;
//telerikGrid.ClientSettings.Scrolling.SaveScrollPosition = true;
telerikGrid.ClientSettings.Scrolling.UseStaticHeaders = true;
telerikGrid.ClientSettings.Selecting.AllowRowSelect = true;
telerikGrid.ClientSettings.Scrolling.FrozenColumnsCount = 1;
//telerikGrid.ClientSettings.Scrolling.ScrollHeight = Unit.Percentage(100);
telerikGrid.MasterTableView.VirtualItemCount = request.dataTable.Rows.Count;
//telerikGrid.ClientSettings.Scrolling.ScrollHeight = Unit.Percentage()
//Resizing
telerikGrid.ClientSettings.Resizing.AllowColumnResize = true;
//Reordering
telerikGrid.ClientSettings.AllowColumnsReorder = true;
//Export
telerikGrid.MasterTableView.CommandItemSettings.ShowExportToExcelButton = true;
telerikGrid.MasterTableView.Visible = true;
telerikGrid.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top;
 
telerikGrid.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric;

If we set the AllowScroll  property to false, then the vertical scrolling acts appropriately, but we then don't get the horizontal scrolling that is required.

Pavlina
Telerik team
 answered on 24 Feb 2012
4 answers
245 views

I have a problem with Date Filter.

This is my Radgrid



When I filter wiht 15/02/2012 --> does not return nothing.
I need SHOW DATE + HOUR, is important!
.. I try this


  protected void ActivityLog_ItemCommand(object sender, GridCommandEventArgs e)
         {
             if (e.CommandName == RadGrid.FilterCommandName)
             {
                 Pair filterPair = e.CommandArgument as Pair;
                 string columnName = Convert.ToString(filterPair.Second);
                 if (columnName == "Date")
                 {
                     e.Canceled = true;

                     string date =
                         ((RadDatePicker)((GridFilteringItem)e.Item)[Convert.ToString(filterPair.Second)].Controls[0])
                             .SelectedDate.ToString();
                     DateTime startDate = Convert.ToDateTime(date).AddDays(-1);
                     DateTime endDate = startDate.AddDays(2);
                     string newFilter = "('" + startDate.ToString("MM/dd/yyyy") + "' < [Date] AND [Date] < '" + endDate.ToString("MM/dd/yyyy") + "')";

                     GridBoundColumn dateColumn = (GridBoundColumn)e.Item.OwnerTableView.GetColumnSafe(columnName);
                     dateColumn.CurrentFilterValue = Convert.ToDateTime(date).ToString("MM/dd/yyyy");
                     ActivityLogGrid.MasterTableView.FilterExpression = newFilter;
                     ActivityLogGrid.Rebind();
                 }

             }

         }

But ReBind does not work.

I use:
- AutogenerateColumns = true
and NeedSource events.


regards

July
Top achievements
Rank 2
 answered on 24 Feb 2012
1 answer
133 views
Hi,
            I have a rad AsyncUpload  and a rad button in my page. On the postback of the RadButton click I saved the uploaded files in DB. Now my problem when I select the files using AsyncUpload ,  the files didnot uploaded in the client side. Also  exceptions has been occurred.

The Exception is.

Error: uncaught exception: Error while uploading, [HttpWebRequest_WebException_RemoteServer]
Arguments: NotFound
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.0.61118.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer


Error: Unhandled Error in Silverlight Application [HttpWebRequest_WebException_RemoteServer]
Arguments: NotFound
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.0.61118.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer   at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
   at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at UploadPrototype.MainPage.ProcessResponse(IAsyncResult asyncResult)
   at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass19.<InvokeGetResponseCallback>b__17(Object state2)
   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Source File: http://pc120:48888/_layouts/Demo.aspx
Line: 0
Dimitar Terziev
Telerik team
 answered on 24 Feb 2012
7 answers
163 views
Hi Team,
 
   In my appliation I'm using RadNumericTextbox, here I want allow only numeric numbers in textbox, when I'm running the application in IE browser RadNumericTextbox  running fine, but If you try to running in Mozila, I found an issue i.e.., numbers and also take characters enter into text box. I'm using Telerick Q4 Version2010, and Browser is Mozila 10.0.  for ur reference Below I mention using code. Please help me asap and also I attachment .

<script type="text/jscript">
        function KeyPress(sender, args) {
            //debugger;
            if (args.get_keyCharacter() == sender.get_numberFormat().DecimalSeparator ||
                 args.get_keyCharacter() == sender.get_numberFormat().NegativeSign) {
                args.set_cancel(true);
            }
        }
    </script>

 

<telerik:RadNumericTextBox ID="txtDecisionNumber" runat="server" MaxLength="100"    

 

CssClass="InnerTextStyle" Width="95%" Type="Number" MinValue="0" NumberFormat-DecimalDigits="0"     

 

NumberFormat-GroupSeparator="" AllowOutOfRangeAutoCorrect="true" NumberFormat-KeepNotRoundedValue="false"      

 

NumberFormat-AllowRounding="true">

  <ClientEvents OnKeyPress="KeyPress" />  

 

</telerik:RadNumericTextBox>

Thanks d Advance
Mr. Perfect

 

Vasil
Telerik team
 answered on 24 Feb 2012
2 answers
237 views
I am trying to run an ASCX that is using RadControls through a an ASPX page in MOSS.  I followed steps on how to do this and also went through all the steps offered by Telerik for SharePoint to be able to see their controls and to use AJAX with .net 3.5. When I run the page, I get the following error.

"An error occurred during the processing of /_controls/MasterSchedule.ascx. The base class includes the field 'ddlReportEntity', but its type (System.Web.UI.WebControls.DropDownList) is not compatible with the type of control (Telerik.Web.UI.RadComboBox). "

Any ideas?

Thanks.
Maria Ilieva
Telerik team
 answered on 24 Feb 2012
5 answers
505 views

Hi,

I have a RadComboBox with a Header and Item Templates. I have set the EnableLoadOnDemand to true and using the OnItemsRequested event to populate the ComboBox. In the event am getting the values in a DataSet and using it as the datasource and binding it to the ComboBox using DataBind() method. But the data is not getting displayed and in the UI it is just showing the message as "Loading...". Am not even getting any exceptions and the datasource is being assigned properly. Am I missing something else?. Please help me in this regard. Thanks.

Below are the aspx and the script CS code i have written. Please find the attached screenshot as well.

<script type="text/C#" language="CS" runat="server">
        protected void RadComboBox_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            try
            {
                SomeClass sclass = new SomeClass()
                DataSet ds = sclass.SomeMethod();
                RadComboBox rcb = (RadComboBox)sender;
                rcb.DataSource = ds;
                rcb.DataTextField = "Column1";
                rcb.DataValueField = "Column0";
                rcb.DataBind();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
</script>

 

<telerik:RadComboBox HighlightTemplatedItems="true" IsCaseSensitive="false" ID="ddlRadComboBox1" EnableLoadOnDemand="true" runat="server" TabIndex="9"  OnItemsRequested="RadComboBox_ItemsRequested" style="width:30%;height:25px;" DropDownWidth="750">
                     <HeaderTemplate>
                                <table style="width: 750px; font-family:Verdana; font-size:11px;" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width:35%;">Column 1</td>
                                        <td style="width:65%;">Column 2</td>
                                    </tr>
                                </table>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <table style="width: 750px; font-family:Verdana; font-size:11px;" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width:35%;"><%# DataBinder.Eval(Container.DataItem, "Column1")%></td>
                                        <td style="width:65%;"><%# DataBinder.Eval(Container.DataItem, "Columns2")%></td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </telerik:RadComboBox>
Dimitar Terziev
Telerik team
 answered on 24 Feb 2012
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?