Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
81 views

Hello,

I use a rad Gantt control in which I try to populate a custom task field through a custom database provider. Unfortunalty, I did not succeed to make it work. I use the latest version of telerik UI for ASP.NET Ajax (2016.3.1027.35).

The provided examples does not compile with this version. Could you please provide me an example working with this version.

Thanks a lot.

Bozhidar
Telerik team
 answered on 06 Dec 2016
2 answers
316 views

Hi all,

 

I've managed to add a filter on a dropdown column in my grid, which allows me to easily look for the correct data in my list. But the issue here is that I cannot filter the list with the filter option "Contains". It always returns me the "EqualTo" values. I need it to work with Contains.

Here is my code:

<telerik:RadGrid ID="GridOffences" runat="server" DataSourceID="GETOffence" RenderMode="Auto" AutoGenerateColumns="False" ShowFooter="true" OnItemDataBound="GridOffences_ItemDataBound" OnItemCommand="GridOffences_ItemCommand" OnUpdateCommand="GridOffences_UpdateCommand" OnInsertCommand="GridOffences_InsertCommand">
 
    <MasterTableView AutoGenerateColumns="False" DataKeyNames="offId" CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="Add Offence" AllowSorting="false">
        <CommandItemSettings ShowAddNewRecordButton="true" ShowRefreshButton="false"
                                                        ShowExportToCsvButton="false" ShowExportToExcelButton="false" ShowExportToPdfButton="false" ShowExportToWordButton="false" />
        <EditFormSettings>
            <EditColumn UniqueName="EditColumnColumn" ButtonType="PushButton" EditText="Edit" CancelText="Cancel" InsertText="Add" UpdateText="Save"></EditColumn>
        </EditFormSettings>
        <Columns>
            <telerik:GridDropDownColumn DataSourceID="GETOffenceList" ListTextField="offName" ListValueField="offListId"
                UniqueName="offNameList" HeaderText="Offence" DataField="offListId"
                AllowAutomaticLoadOnDemand="true" DropDownControlType="RadComboBox"
                AllowVirtualScrolling="true" ShowMoreResultsBox="true" ItemsPerRequest="10">
                <ColumnValidationSettings EnableRequiredFieldValidation="true" EnableModelErrorMessageValidation="true">
                    <RequiredFieldValidator ForeColor="Red" ErrorMessage="This field is required"></RequiredFieldValidator>
                    <ModelErrorMessage BackColor="Red" />
                </ColumnValidationSettings>
                <FilterTemplate>
                    <telerik:RadComboBox ID="RadCbox_File" runat="server" DataSourceID="GETOffenceList" DataTextField="offName"
                                DataValueField="offListId" Filter="Contains"
                                AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("offListId").CurrentFilterValue %>'
                                OnClientSelectedIndexChanged="FileComboIndexChanged">
                        <Items>
                            <telerik:RadComboBoxItem Text="Select an Offence" />
                        </Items>
                    </telerik:RadComboBox>
                    <telerik:RadScriptBlock ID="RadScriptFiles" runat="server">
                        <script type="text/javascript">
                            function FileComboIndexChanged(sender, args) {
                                var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                tableView.filter("offListId", args.get_item().get_value(), "Contains");
                            }
                        </script>
                    </telerik:RadScriptBlock>
                </FilterTemplate>
            </telerik:GridDropDownColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

 

Thanks in advance for your help
Shivek
Top achievements
Rank 1
 answered on 06 Dec 2016
2 answers
194 views

Requirements

Telerik Product and Version

Telerik.Web.Spreadsheet.dll - Version 2016.3.1024.40
Telerik.Windows.Documents.Core.dll - Version 2016.3.1021.40

Supported Browsers and Platforms

IE

Components/Widgets used (JS frameworks, etc.)

VS2010 - Framework4.0

PROJECT DESCRIPTION 
I am working on a web application that provides spreadsheet functionalities. We were using Office Web Components before and now trying to replace the same with Telerik Rad Spreadsheet. As per the guidance in this url http://docs.telerik.com/devtools/aspnet-ajax/controls/spreadsheet/getting-started.html#creating-a-simple-radspreadsheet I tried to add references. But the DLL versions are different between Spreadsheet and Documents.Core.dll. So this is erroring out. Can you please help on this.
Vijayakumar
Top achievements
Rank 1
 answered on 05 Dec 2016
4 answers
135 views
I have a radscheuler with RowHeight set to 205px. In timeline view , when I have a lot of appointment at a same time, I have the following error : 

1: Error Description:Specified argument was out of the range of valid values.
Parameter name: value
1: Source:System.Web
1: Stack Trace:   at System.Web.UI.WebControls.Unit..ctor(Double value, UnitType type)
1:    at Telerik.Web.UI.Scheduler.Views.TimelineAllDayTable.CreateAllDayCells(WebControl row, Dictionary`2 appointmentControls)
1:    at Telerik.Web.UI.Scheduler.Views.SchedulerAllDayTable.AddRow(IList`1 allDaySlots, Dictionary`2 appointmentControls)
1:    at Telerik.Web.UI.Scheduler.Views.Timeline.RendererBase.CreateInnerContentTable(Control container, IList`1 allTimeLineSlots)
1:    at Telerik.Web.UI.Scheduler.Views.Timeline.RendererBase.CreateInnerContentTable(Control container, IList`1 intervalSlots, Int32 minimumRowCount)
1:    at Telerik.Web.UI.Scheduler.Views.Timeline.Renderer.GetInnerContent()
1:    at Telerik.Web.UI.Scheduler.Views.Timeline.Renderer.GetContent()
1:    at Telerik.Web.UI.RadScheduler.CreateContent()
1:    at Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource)
1:    at Telerik.Web.UI.RadScheduler.CreateChildControls()
1:    at System.Web.UI.Control.EnsureChildControls()
1:    at Telerik.Web.UI.RadScheduler.OnPreRender(EventArgs e)
1:    at System.Web.UI.Control.PreRenderRecursiveInternal()
1:    at System.Web.UI.Control.PreRenderRecursiveInternal()
1:    at System.Web.UI.Control.PreRenderRecursiveInternal()
1:    at System.Web.UI.Control.PreRenderRecursiveInternal()
1:    at System.Web.UI.Control.PreRenderRecursiveInternal()
1:    at System.Web.UI.Control.PreRenderRecursiveInternal()
1:    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
1: Target Site:Void .ctor(Double, System.Web.UI.WebControls.UnitType)
----------------------------------------------

I already had a similar issue in my code and it was because max Unit type size is 32767 pixels. 

Tom 
Srivalli
Top achievements
Rank 1
 answered on 05 Dec 2016
4 answers
99 views

Hi,

We have a requirement to always show the checkbox even if the node is disabled. We can achieve the functionality in JavaScript by handling and then canceling the event, but need a visual representation too. We've tried overriding the background image of the checkbox without success. Is there a way to do this? We are using version 2013.3.1234.35.

Thanks,

Dave

David
Top achievements
Rank 1
 answered on 05 Dec 2016
6 answers
486 views
I use RadGrid extensively in my application and use the UniqueName property as well. I have several columns with UniqueName property that have blank spaces in it(e.g. uniquename="Order ID"). Until now I was using the 2011 Q1 release of ASP.NET AJAX controls and  
it was working fine.

I recently upgraded to 2012 Q1 (SP1) release and my app is breaking now every where I have UniqueName property defined with blank spaces. Is it something new introduced in this release? Is there any work around so that I don't have to make changes everywhere I am using the uniquename property in my application? 

Manjeet
Mehmet
Top achievements
Rank 1
 answered on 05 Dec 2016
2 answers
269 views
We have just had a penetration test carried out and they have flagged a lot of XSS issues around the JSON parameter within the clientstate of the controls.

We are currently using 2015.2.826.40 and I know that is not the latest version but if we upgrade will this resolve the issues?

 

Simon Layton
Top achievements
Rank 1
 answered on 05 Dec 2016
1 answer
343 views

Hello, 

I am using RadGrid with RadNumericTextBox, RadTextBox., etc,  in Item template. I have to update the Other Columns in the Grid if Text changed in RadNumericTextbox. So,  On OnTextChanged event of RadNumericTextBox, I am rebinding the Grid again. But after the postback, i am getting the below javascript error.

<<<<

Unhandled exception at line 8162, column 7 in http://localhost:51966/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:93a6b8ed-f453-4cc5-9080-8017894b33b0:ea597d4b:b25378d2;Telerik.Web.UI,+Version=2016.3.914.45,+Culture=neutral,+PublicKeyToken=121fae78165ba3d4:en-US:a519da8a-d673-48a9-9976-4b08756261d2:16e4e7cd:33715776:f7645509:24ee1bba:e330518b:2003d0b8:c128760b:1e771326:88144a7a:c8618e41:1a73651d:16d8629e;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:93a6b8ed-f453-4cc5-9080-8017894b33b0:76254418;Telerik.Web.UI,+Version=2016.3.914.45,+Culture=neutral,+PublicKeyToken=121fae78165ba3d4:en-US:a519da8a-d673-48a9-9976-4b08756261d2:8e6f0d33:864068a5:6a6d718d:b7778d6c:f46195d3:aa288e2d:b092aa46:6b3f73b3:e085fe68:8674cba1:7c926187:c08e9f8a:a51ee93e:59462f1:6d43f6d9:58366029:19620875:874f8ea2:b2e06756:4877f69a:92fe8ea0:fa31b949:490a9d4e:ddbfcb67

0x800a025e - JavaScript runtime error: Could not complete the operation due to error 800a025e.

>>>

 

Could you please let me know what will be the root cause of this error.

 

Regards,

Puru

Eyup
Telerik team
 answered on 05 Dec 2016
1 answer
303 views

Hi,

I uploaded 3 files using this control. Within  a button click, i want to see the number of files that i uploaded. It always shows 0.

Why am i not getting proper count here?

 

  <telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" AllowedFileExtensions =".pdf,.jpg,.jpeg,.txt" 
              MultipleFileSelection="Automatic" BorderStyle="Groove"     >
                                 <Localization Select=" Select a file "    />
                             </telerik:RadAsyncUpload>

 

for (int fileNum = 0; fileNum <= RadAsyncUpload1.UploadedFiles.Count - 1; fileNum++)
{

}

 

 

Thanks

Ivan Danchev
Telerik team
 answered on 05 Dec 2016
1 answer
127 views

Is it possible to determine RecurrenceState for an Appointment (by AppointmentID) in code without instancing a RadScheduler?
I can get the RecurrenceState for any Appointment by instancing a RadScheduler in code and databinding the instance, then looking up the Appointment by ID.
My concern is, as I process more Appointments that this process will be too slow.

Veselin Tsvetanov
Telerik team
 answered on 05 Dec 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?