I have a RadFilter and select the function "equals" and the text "Peru" and when I press the Apply button, no results found. But radgrid column exists in the text column country "Perú" with accent, I tried putting the property: <GroupingSettings CaseSensitive = "false"> </ GroupingSettings>, but only ignores case sensitive, I need to omit the accents.
Attached image.
Please any advice?
PDT:
In basic search I succeeded with SP where the condition COLLATE establish Latin1_General_CI_AI, I need to achieve the same result with RadFilter.
Attached image: Search Search basic.png and basic sp.png
Hello,
I am trying to export the OrgChart to pdf, I have followed the tips in previous posts, my chart contains Arabic characters which printed wrongly or not printed at all in pdf like in attachments.
any Idea how to solve this please?
Thanks
In a loop, I Can update the status for every record. So i need to show the status of record after the every single record updated. These should done when the button is clicked.
When i click start button it should updated the every record status in loop. Then i need to show every record status for every updates in UI.
protected
void
btnstart_Click(
object
sender, EventArgs e)
{
string
pageId =
string
.Empty;
divMsg.Style.Add(
"display"
,
"none"
);
divMsg.Attributes.Add(
"class"
,
""
);
try
{
DataSet DsPages = (DataSet)ViewState[
"SitePages"
];
bool
IsSucess =
false
, IsError =
false
;
string
SqlQuery =
string
.Empty;
if
(DsPages.Tables[0].Rows.Count > 0)
{
for
(
int
i = 0; i < DsPages.Tables[0].Rows.Count; i++)
{
try
{
htmlClean(DsPages.Tables[0].Rows[i][
"contents"
].ToString());
pageId = DsPages.Tables[0].Rows[i][
"ID"
].ToString();
SqlQuery = TransformXMLToHTML(htmldesign.InnerText, txtPageTypeXslt.InnerText.Trim());
SqlQuery = SqlQuery.Replace(
"<?xml version=\"1.0\" encoding=\"utf-16\"?>"
,
""
);
PagesBL objPage =
new
PagesBL(1);
if
(!
string
.IsNullOrEmpty(SqlQuery))
{
if
(objPage.ExecuteQuery(SqlQuery) > 0)
{
PagesBL objPageBL =
new
PagesBL();
objPageBL.UpdateLastExtract(DateTime.Now.ToString(
"yyyy/MM/dd hh:mm:ss"
), DsPages.Tables[0].Rows[i][
"ID"
].ToString());
IsSucess =
true
;
}
}
}
catch
(Exception ex)
{
IsError =
true
;
string
Error = ex.Message;
PagesBL objPageBL =
new
PagesBL();
Errors objErr =
new
Errors();
objErr.PageID = pageId;
objErr.ErrorOccuredOn = DateTime.Now;
objErr.ErrorText = ex.Message;
objErr.SQLError = ex.Source ==
".Net SqlClient Data Provider"
? SqlQuery : ex.Message;
objErr.ErrorStatus = 1;
//1=
objPageBL.InsertErrors(objErr);
// divMsg.Attributes.Add("class", "alert alert-danger");
// divMsg.InnerText = "Extract process complete with few error.Please check the error list";
}
}
if
(IsSucess && !IsError)
{
Session[
"Complete"
] =
"True"
;
divMsg.Style.Add(
"display"
,
"block"
);
divMsg.Attributes.Add(
"class"
,
"alert alert-success"
);
divMsg.InnerText =
"Extract process completed."
;
}
}
}
catch
(Exception ex)
{
}
}
Hi,
I'm working on a legacy ASP.NET WebForms project and I am to add accessibility to the project.
My predecessor already tried to add accessibility by manually assigning an access key to the AccessKey property of some of the PanelBar's RadPanelItemCollection elements (see attachment #1).
Hello,
I am using a RadGrid with multiple columns which can be edited (BatchEdit like excel).
<
telerik:RadGrid
RenderMode
=
"Lightweight"
ID
=
"RadGrid1"
runat
=
"server"
AutoGenerateColumns
=
"False"
GridLines
=
"Both"
OnNeedDataSource
=
"RadGrid1_NeedDataSource"
AllowAutomaticInserts
=
"True"
AllowAutomaticUpdates
=
"True"
AllowAutomaticDeletes
=
"True"
>
<
ItemStyle
Wrap
=
"false"
/>
<
MasterTableView
TableLayout
=
"Fixed"
NoMasterRecordsText
=
""
ShowFooter
=
"true"
EditMode
=
"Batch"
>
...
</
MasterTableView
>
</
telerik:RadGrid
>
Datasource of RadGrid is ObjectDataSource
<
asp:ObjectDataSource
ID
=
"TestSource"
runat
=
"server"
TypeName
=
"TestClass"
SelectMethod
=
"GetAllItems"
>
<
UpdateParameters
>
<
asp:Parameter
Name
=
"Name"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"LastName"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"BirthData"
Type
=
"DateTime"
/>
</
UpdateParameters
>
</
asp:ObjectDataSource
>
On OnNeedDataSource event I'm setting Id of ObjectDataSource to RadGrid.DataSourceId.
protected
void
RadGrid1_NeedDataSource(
object
sender, GridNeedDataSourceEventArgs e)
{
RadGrid1.DataSourceID =
"TestSource"
;
}
In current Page I have also button "Send email" send rad gird inserted values.
<
asp:Button
ID
=
"SendEmail"
OnClick
=
"SendEmail_Click"
Text
=
"Send"
runat
=
"server"
/>
Problem is that on SendEmail_Click DataSource is null. But I want to get newly changed DataSource.
protected
void
SendEmail_Click(
object
sender, EventArgs e)
{
RadGrid1.Rebind();
// RadGrid1.Datasource is null
}
How I can solve this problem?
Thanks,
Daler
Hello,
I have a problem where I pull data from a huge database (over 140 000 entries) and have taken care to do my own pagination to limit loading time for my users.
Basically, on pagination changes (next, prev, click on number etc.) I query my own 20 rows (which is pagesize) to fill up only what the user see and not pull tens of thousands of rows each time which would slow down the user's experience.
So my problem is, if I do it this way, my table only shows my 20 rows and not whats available to the user.
I have a line in my codebehind that returns the number of results I would like to tell RadGrid is available:
var querySize = bllUsNet.ObtenirTout().Count;
Is there a way to "Trick" Radgrid into thinking there is that many entries but only return 20 ?
If anyone has an idea of a better title for this thread, I had a hard time to find one :)
Thanks
Hello,
I want filtr in grid between two radsearchbox. I would also that after filtering vaule remained RadSearchBox. My code not working:
<telerik:GridBoundColumn HeaderText="Name" UniqueName="_amountColumn" DataField="Amount">
<FilterTemplate>
<telerik:RadSearchBox runat="server" ID="From" Text="Form" OnClientSearch="FromSelected"></telerik:RadSearchBox>
<telerik:RadSearchBox runat="server" ID="To" Text="To" OnClientSearch="ToSelected"></telerik:RadSearchBox>
<telerik:RadScriptBlock ID="RadScriptBlock" runat="server">
<script type="text/javascript">
function FromSelected(sender, args) {
var startValue = FromOrderBrutto.get_value();
var endValue = ToOrderNetto.get_value();
tableView.filter("_amountColumn", startValue + " " + endValue, "Between");
}
function ToSelected(sender, args) {
var startValue = FromOrderBrutto.get_value();
var endValue = ToOrderNetto.get_value();
tableView.filter("_amountColumn", startValue + " " + endValue, "Between");
}
</script>
</telerik:RadScriptBlock>
</FilterTemplate>
Please help my
So, I have a page with multiple user controls. There is a RadAjaxManager on the page. Each user control needs to make ajaxRequests from javascript, and I would like each control to handle that itself. Is this possible?
So, for instance, I have control1 with the following in its code behind:
protected
void
Page_Load(
object
sender, System.EventArgs e)
{
RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
manager.AjaxRequest +=
new
RadAjaxControl.AjaxRequestDelegate(Control1_AjaxRequest);
}
and control2 with
protected
void
Page_Load(
object
sender, System.EventArgs e)
{
RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
manager.AjaxRequest +=
new
RadAjaxControl.AjaxRequestDelegate(Control2_AjaxRequest);
}
and in javascript, control1 does
$find(
"<%= RadAjaxManager.GetCurrent(Page).ClientID %>"
).ajaxRequest(dataString);
and I end up in Control2_AjaxRequest rather than Control1_AjaxRequest.
Is what I'm trying to do possible? If so, how? I'm currently trying to do this by adding a RadAjaxPanel to each control and invoking ajaxRequest on it, but I'm running into some code block issues with this that weren't there with RadAjaxManager.