Hi,
I have issue while copy pasting a multi-line text with Carriage-return line feed in the GridBoundColumn. I need to remove the CRLF while pasting the text in there. I researched a lot in the forum and So far I have been unsuccessful . Here is my grid looks like as below -
<telerik:RadGrid ID="Grid" runat="server" OnItemDataBound="Grid_ItemDataBound" CssClass ="RadGrid" OnColumnCreated="Grid_ColumnCreated">
<MasterTableView TableLayout="Fixed" Width="100%" DataKeyNames="StandardItemParaID" ClientDataKeyNames="StandardItemParaID" EditMode="InPlace">
<CommandItemTemplate>
<telerik:RadToolBar ID="GridToolBar" runat="server" />
</CommandItemTemplate>
<Columns>
<telerik:GridHyperLinkColumn DataNavigateUrlFields="StandardItemParaID,InspectionTypeID" ImageUrl="~/Icons/GridRowHistory.png" AllowFiltering="false" UniqueName="HistoryLink" ItemStyle-Width="30px" DataNavigateUrlFormatString="javascript:OpenStandardItemParagraphAudit({0},'{1}');" Text="History" AllowSorting="false" />
<telerik:GridCheckBoxColumn DataField="DataRecordDeleteFlag" ItemStyle-Width="50px" HeaderText="Delete" ></telerik:GridCheckBoxColumn>
<telerik:GridBoundColumn DataField="StandardItemParaNumber" HeaderText="StandardItem Paragraph No" ItemStyle-Width="92px" MaxLength ="50" />
<telerik:GridBoundColumn DataField="StandardItemParaDesc" HeaderText="Paragraph Description" ItemStyle-Width="350px" MaxLength ="2000"
ItemStyle-CssClass="CellWrap"/>
<telerik:GridDropDownColumn UniqueName="InspectionTypeID" DataField="InspectionTypeID" ListValueField="Key" ListTextField="Description" ItemStyle-Width="160px" SortExpression="InspectionType.InspectionTypeCode" HeaderText="Requirement" DropDownControlType="DropDownList" AllowFiltering="false" AllowSorting="false" />
<telerik:GridBoundColumn DataField="QANotes" HeaderText="QA Notes" ItemStyle-Width="350px" MaxLength ="500" ItemStyle-CssClass="CellWrap"/>
</Columns>
</MasterTableView>
</telerik:RadGrid>
Problem is in "DataField="StandardItemParaDesc" . I need to paste the following 3 line text there without the CRLF.
Example Data : Line 1
Line 2
Line 3
My expected output should be Line 1 Line 2 Line 3 after copy paste. Now I am only seeing Line 1. Line 2 and Line 3 are completely missing.
Please help !!
I have a RadSplitter with two Pane and one SplitBar. On one Pane I have a dropdownlist, which when selected should change a textbox visibility to true. However it is completely clearing both RadPanes and not displaying anything.
Here is the code:
<
telerik:RadAjaxPanel
runat
=
"server"
ID
=
"RadAjaxPanel1"
>
<
telerik:RadSplitter
ID
=
"RadSplitter1"
runat
=
"server"
Width
=
"100%"
Height
=
"100%"
>
<
telerik:RadPane
ID
=
"LeftPane"
runat
=
"server"
Width
=
"75%"
>
<
h3
>Orders</
h3
>
</
telerik:RadPane
>
<
telerik:RadSplitBar
ID
=
"RadSplitBar1"
runat
=
"server"
CollapseMode
=
"Backward"
>
</
telerik:RadSplitBar
>
<
telerik:RadPane
ID
=
"RightPane"
runat
=
"server"
Width
=
"25%"
>
<
div
style
=
"padding-left:10px; padding-right:10px;padding-top:5px;"
>
<
h4
>Filters</
h4
>
<
hr
style
=
"width:100%;"
/>
<
table
>
<
tr
>
<
td
><
asp:Label
ID
=
"lblCustomer"
runat
=
"server"
Text
=
"Customer #"
></
asp:Label
></
td
>
<
td
><
telerik:RadDropDownList
ID
=
"ddlCustomer"
runat
=
"server"
AutoPostBack
=
"true"
DefaultMessage
=
"Select One.."
OnItemSelected
=
"ddlCustomer_ItemSelected"
></
telerik:RadDropDownList
></
td
>
<
td
><
telerik:RadTextBox
ID
=
"txtCust"
runat
=
"server"
AutoPostBack
=
"true"
Visible
=
"false"
></
telerik:RadTextBox
></
td
>
</
tr
>
</
table
>
</
div
>
</
telerik:RadPane
>
</
telerik:RadSplitter
>
</
telerik:RadAjaxPanel
>
protected
void
Page_Load(
object
sender, EventArgs e)
{
if
(!Page.IsPostBack)
{
ddlCustomer.DataSource =
new
List<
string
>() {
"Cust1"
,
"Cust2"
};
ddlCustomer.DataBind();
}
}
protected
void
ddlCustomer_ItemSelected(
object
sender, Telerik.Web.UI.DropDownListEventArgs e)
{
if
(ddlCustomer.SelectedItem !=
null
)
txtCust.Visible =
true
;
}
Am I missing something?
Based upon a user's selection of a dropdownlist item (which is on the page, but is not part of the grid), I need to alter the text of a GridColumnGroup in a batch mode grid. Essentially, the user's selection is used to determine what fields are used in a calculation. I need to alter the GridColumnGroup text so that it reflects their choice. I would prefer to do this using client-side code. At this point, have what I need to dynamically perform the calculations, but I haven't found an example showing how to update the GridColumnGroup text value.
Thanks.
Hello to all guru's reading this note of mine.
I'm using a Web ASP.NET page with a RadAsyncUpload control, and its job is well done.
However, each time I go to the selection task (better said, users go...), the same files (plus new ones) are shown here to be uploaded, and this drives the operator a little confused.
Is it possible to have these files deleted from the original directory once uploaded?
Thank you so much in advance. Have a nice day.
Saverio Tedeschi
From the console I get this error when using the radmenu onitemclick: Sys.WebForms.PageRequestManagerServerErrorException, ... "PRM_UnknownToken":"Unknown token: \u0027{0}\u0027.","PRM_MissingPanel":"Could not find UpdatePanel with ID \u0027{0}\u0027. While the controls to appear and seem to work they do not call my onitemclick event and instead generate the error.
The code works fine when running from the developer or IIS manager. I noticed IIS added the app pool name to the path so using http://localhost:86/SR05C works but not just using the web reference without specifying the pool, ie localhost:86 brings up the site and the controls but the code behind the Telerik controls do not.. Same problem when I tried to deploy to a godaddy server. I tried without AJAX with the same result.
When I right click on a file, the context menu shows up further below the click. I can't figure out why this is happening. Does anyone know why this is happening?
With the latest 2015.2.623 version of Telerik.Web.UI you could receive the following error:
System.ArgumentNullException: Value cannot be null.
Parameter name: key
if you have grid with paging enabled and you run the page in Visual Studio Page Inspector. In order to workaround this issue you need to add the code snippet below in the web config file.
<
appSettings
>
<
add
key
=
"PageInspector:ServerCodeMappingSupport"
value
=
"Disabled"
/>
</
appSettings
>
<
compilation
debug
=
"true"
targetFramework
=
"4.0"
>
<
assemblies
>
<
remove
assembly="Microsoft.VisualStudio.Web.PageInspector.Loader,
Version
=
1
.0.0.0,
Culture
=
neutral
,
PublicKeyToken
=
b03f5f7f11d50a3a
" />
</
assemblies
>
</
compilation
>
Dear All,
We have been using telerik controls in various projects. Currently we have
encountered an issue with the RadUpload control.
The issue is how the RadUpload control reads and saves the file data in the
database.
We have uploaded a word document with both .doc and .docx extension.
It saves the file in the database. When we do a free text search in the SQL server
it only searches a word document with .doc extension.
It does not search the word document with .docx extension.
See the below SQL script we have used to search for the data in the file:
Select * from tblDocuments
where
FREETEXT(tblDocuments.FileData, 'words to search')
It searches the FileData column in the tblDocuments table
The datatype of FileData column is varbinary(MAX)
if we upload a .docx via the file system (save to disk and then upload from disk to database)
the freetext search searches the .docx file. But if we use RadUpload control it does not search the .docx file.
It could be the way the RadUpload control creates a stream object to read the filedata.
Could you please look into this issue?
Please let us know if you need any more information with regards to this issue.
Thanks.