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.
Is it possible to restyle a radcomboxbox if it doesn't pass custom validators? Ideally we wanted to put a red border around the outside of the combobox. We have managed to do this with a radtextbox but the combobox is proving to be a little bit tricker? Any suggestions?
Since I could not find any recent doc about how to install radEditor in dnn, I did it like this: http://www.telerik.com/help/aspnet-ajax/dnn-radeditor-provider.html
But now none of the dialogs (image manager, document manager etc) works. I only get a message that says, the system couldn't find the specified file.
what did I do wrong, and where can I see what I need to do instead?
Greets from sunny switzerland :)
edit: I am working with dnn 5.1 and the latest telerik controls (downloaded two weeks ago)
My site after a payment under https secured pages should return to http from links inserted in a radMenu.
I am building radmenuItems from code behind and I checked that the navigateUrl contains a full url with scheme like http://MyDom/myPage.aspx but still Radmenu post https://MyDom/MyPage.aspx when the containing page is https
I have .aspx page, CreateData.aspx, which has .net gridview, named gridViw1, in which i have a linkbutton. On clicking the linkbutton, I need to redirect to a httphandler class, which would open a filedownload popup. During this time, till the download box appears, the previous page should be in callbacl, or show the "Loading" image, and once the dialog box appears, the previous page should be visible in the backgroud.
The follwoing code is executed on clicking the linkbutton1
Response.Redirect(
"DataHandler.aspx", false);
My problem is once the httphandler finishes execution, the page CreateData.aspx is still shows "Laoding".
But if i remove ajaxmamanager from this page, it works as expected. But ajaxmanager is required due to some other requirements on the page.