Currently Telerik grid supports Filtering based on conditions(Equal,not equal etc).
If i have 2 columns in a grid and if i apply conditions on both the columns.
The result condition would be like ( Column 1 condition ) AND (Column 2 condition).
We have a requirement where the user can specify multiple conditions on Columns and it could be either And, OR or combination on both.
IS there a way we can achieve this.Appreciate your help..
I am using a RadComboBox to display the list that is fetched using web service based on whatever text has been entered.
I want to put a validation on the text that it should allow only letters, numbers, spaces, hyphen or apostrophe.
The regular expression I am using is
var regex = new RegExp("[^a-zA-Z0-9\s`,-]+");
But the problem is that when I enter apostrophe and read the text of the combo box using get_text(), I get %60 instead of ` (hexadecimal representation of apostrophe).
Why is this happening? Is there any other function that I can use to get the exact text (in ASCII characters) that has been entered.
I'm having a strange problem with the z-indexes on either the tooltip or the raddock. something is causing the dock to be on top of the tooltip instead of the opposite.
Can anyone clarify the hierarchy of how z-indexes are set for the tooltips? Does the script (tooltip.js?) override the skin, or the style? I would think that setting the style="z-index: 10000" at the tooltip level would override everything, but that doesnt seem to be the case.
Hello.
I am using a RadToolTipManager for displaying the full size image of thumb nail image in my form.It is not working when I am loading the image from the database using a binary image control.But it is working perfectly when I am loading image from a folder.
The web service code I have used is given below
public string GetFullSizeImage(object context)
{
cApplicationSettings oAppSettings = new cApplicationSettings();
Telerik.Web.UI.RadBinaryImage img = new RadBinaryImage(); img.DataValue = (byte[])oAppSettings.GetDefaultPhoto(1).Rows[0][0];//This function will return the image from my table
StringWriter sw = new StringWriter();
HtmlTextWriter writer = new HtmlTextWriter(sw);
img.RenderControl(writer);
writer.Flush();
return sw.ToString();
}
When I replace the DataValue field of the binary image with ImageUrl as below it is working without any problem.
img.ImageUrl = "~/images/noimage.png";
when i am working on telerik rad controls in my project,
and after try to change some thing like datasource configuration or radgrid columns ,.. i get this error :
http://i29.tinypic.com/2ztdb4l.jpg
my changes will not be applied , but if i reload my page every things is ok.
I have a linkbutton in which I need to add a radconfirm to it. The behavior of the LinkButton is the postback is triggered and the page is refreshed and adding a return false with customizing the radconfirm resolves this and works great.
The issue I am having is if you need to customize the LinkButton with CSS such as having a link button with the tags <b> used. (My real example uses more css to create a css compliant button) this causes an issue with RadConfirm.
asp:LinkButtonID="linkBtn"runat="Server"OnClientClick="return radconfirm('Are you sure?', event, 400, 200,'','Custom title');" Text="Delete Item"OnClick="linkBtn_Click"><b>This does not</b></asp:LinkButton>
Taking the attachment and just adding the tags <b> in the example causes the RadConfirm to not work. The issue is the caller object being sent to the radconfirm is not the LinkButton "<A>" tag but the "<b>" tag so this results in no post back via the href call.
How can this be fixed or what's a work around with the javascript radconfirm function?
Hi
I used the DataList. herewith i used the pageindex using panel container... It is working fine.. Herewith i used the dynamic controls (link button) for paging. I dont know how can i bind the Ajax for this dynamic control. Herewith i have attached the sample paging coding here...
private void bindDataWithPaging(DataList bindControl, DataTable propertyDataTable) //you can pass either DatList or Repeater to this function
{
if (propertyDataTable.Rows.Count > 0) // if the datset contains data
{
DataView dv = propertyDataTable.DefaultView;
//Binding data to the controls
if (bindControl is DataList)
{
((DataList)bindControl).DataSource = dsP;
((DataList)bindControl).DataBind();
}
//saving the total page count in Viewstate for later use
PageCount = dsP.PageCount;
//create the linkbuttons for pagination
BuildPagination();
}
}
private int CurrentPageIndex //to store the current page index
{
get { return ViewState["CurrentPageIndex"] == null ? 0 : int.Parse(ViewState["CurrentPageIndex"].ToString()); }
set { ViewState["CurrentPageIndex"] = value; }
}
private int PageCount //total number of pages needed to display the data
{
get { return ViewState["PageCount"] == null ? 0 : int.Parse(ViewState["PageCount"].ToString()); }
set { ViewState["PageCount"] = value; }
}
private LinkButton createButton(string title, int index)
{
LinkButton lnk = new LinkButton();
lnk.ID = index.ToString();
lnk.Text = title;
lnk.CommandArgument = index.ToString();
lnk.Click += new EventHandler(lnkPager_Click);
return lnk;
}
//create the linkbuttons for pagination
protected void BuildPagination()
{
pnlPager.Controls.Clear(); //
pnlTopPager.Controls.Clear();
if (PageCount <= 1) return; // at least two pages should be there to show the pagination
//finding the first linkbutton to be shown in the current display
int start = CurrentPageIndex - (CurrentPageIndex % ButtonsCount);
//finding the last linkbutton to be shown in the current display
int end = CurrentPageIndex + (ButtonsCount - (CurrentPageIndex % ButtonsCount));
//if the start button is more than the number of buttons. If the start button is 11 we have to show the <<First link
if (start > ButtonsCount - 1)
{
pnlPager.Controls.Add(createButton(propertyDetailData.FirstPageText, 0));
pnlPager.Controls.Add(createButton("..", start - 1));
for (i = start; i < end; i++)
{
LinkButton lnk;
if (i < PageCount)
{
if (i == CurrentPageIndex) //if its the current page
{
Label lbl = new Label();
Label lbltop = new Label();
// lbl.Text = (i + 1).ToString();
//If the total number of pages are greaer than the end page we have to show Last>> link
if (PageCount > end)
{
pnlPager.Controls.Add(createButton("..", i));
pnlPager.Controls.Add(createButton(">>", PageCount - 1));
After following settings listed here : http://www.telerik.com/help/aspnet-ajax/radcompression.html , only ScriptResource.axd files are being compressed by RadCompression .
Please let me know if there is something missing. Thanks. Regards.