Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
197 views
Hi All,

I am facing a problem with RadWindow and RadListView.

I want to Rebind Perticular ListView on Parent Page on Close of the RadWindow.

I have used a RadTabStrip in side that i have more than one ListViews. I need to Rebind only perticular ListView. 

I have added a code on RadWindow's Button click :
GetRadWindow().BrowserWindow.refreshGrid(args);
GetRadWindow().close();

Which calls following method on Parent Page:

function refreshGrid(arg)
{
     //var btnName = $get("<%=btn.ClientID%>").name;
     //__doPostBack(btnName, "");
     // Above Two Lines code works fine. But the whole page Postback is called. i need only refresh perticular ListView to Rebind.
      
 
     var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
     ajaxManager.ajaxRequest('Refresh');
      
}

cs code:
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
     if (e.Argument.ToString() == "Refresh")
     {        
           lstvTask.Rebind();
     }
}


This code doesn't work for me.

Any help will be appreciated.
Thanks in Advance.

--
Thanks & Regards,
Rakesh Gupta



Marin Bratanov
Telerik team
 answered on 24 Aug 2011
1 answer
260 views
Hi Telerik team, I've been working on a solution requiring that the columns order can be editable, the RadGrid control we are using is on a SharePoint Webpart. We have an editor part where the page manager can edit the order of the columns. When the editing of the webpart is saved & closed the new data is passed to the RadGrid control to update. All the functionality works as expected except the order. This order is set programatically to the columns as it is configured on the editor part, we checked that the column.position is set correctly but the RadGrid is not re-ordering the columns when the Save & Close its done.
We want some support to make this work if possible.

Fun Fact: If any of the filters, grouping, or re order is done on the control (generating a Post-back) all the columns re-order with the specified order in the editor part.

Thanks in advance!!

Here is our code where we set the position of the columns:

Column column = new Column();
                    column.Name = ((Label) repeaterItem.FindControl("lblColumnName")).Text;
                    column.Id = GetColumnId(column.Name);
                    column.Display = ((CheckBox) repeaterItem.FindControl("chkDisplay")).Checked;
                    column.Position = Convert.ToInt32(((DropDownList) repeaterItem.FindControl("ColumnsDropDown")).SelectedItem.Text);
                    colunns.Add(column);

We set these attributes for each columns displayable on the RadGrid control.

Mr. Erwin W. B. Gutbrod
.NET/Sharepoint Developer Jr.
Radoslav
Telerik team
 answered on 24 Aug 2011
3 answers
188 views
Hi,
I have RadTextBox in my aspx page & i want to restrict user to enter any char except aplhabet. But when user enter any other char i want to display error prompt in radtextbox same like it will display in radNumericTextBox when user alphabets.
how can i implement like this?
Martin
Telerik team
 answered on 24 Aug 2011
1 answer
88 views
Hello Telerik Team,
          I have a RadTreeView in which i want to trigger an event in Expand and Colapse
         i tried lot of jquery code but i cant access
jQuery('li.rtLI div > span:eq(2)').live('click', function () {
    //xyz
});
jQuery('li.rtLI div > span.rtPlus').live('click', function () {
    //xyz
});
 I hope this helps.

Regards,
saad
Top achievements
Rank 1
 answered on 24 Aug 2011
1 answer
77 views
since topic titles can't be edited:

Change itemtemplate depending on number of items in datasource



Hello

If my datasource contains less than 10 entries, the listview needs to display the items in a tiled way (divs with float left), but if I get more results, it should be an ordinary list (just divs).

What would be the best way to accomplish this?
Iana Tsolova
Telerik team
 answered on 24 Aug 2011
7 answers
308 views
I use the following javascript to create a radalert :
<script language='JavaScript'> function f(){var oWnd=radalert('The record is successfully saved!',300,100,'RecordSaved',null);oWnd.add_close(function () {returnToParent();});Sys.Application.remove_load(f);}; Sys.Application.add_load(f); </script>

The issue is at times it throws an error like :Unable to get value of the property 'toLowerCase': object is null or undefined" on 
if(d&&d.tagName.toLowerCase()!="body")
Please see attached jpeg for exact description.
Also, sometimes it throws no error but don't display radalert at all.
These are random errors and do not happen every-time and has not particular pattern of occurrence.

Can anyone please tell me why it happens and how can I fix this. This is a very important part of my project as I use the same script on various pages and get same error on each.

Thanks,
Swati
Marin Bratanov
Telerik team
 answered on 24 Aug 2011
2 answers
307 views
Hi,

I need some charting controls for the application I'm developing ( an asp.net webforms application ) and it's required that "parts" of the chart (e.g  a "slice" in a pie chart ) are clickable ( have click events ). For example, a user clicks a slice of a pie chart and the page displays some relevant information.

I want to know if the RadChart control has this sort of event handling where the "OnClick" event reports the "part" of the chart that has been clicked.

Seabus
Evgenia
Telerik team
 answered on 24 Aug 2011
1 answer
146 views
  1. ASP.NET 3.5
  2. OS:  Code runs on Windows Server 2008. IE 8 is on Windows 7 Professional.
  3. Browser:  IE 8
  4. Telerik product version:  RadControls for ASP.NET AJAX Q2 2011.
  5. Preferred programming language:  VB.NET

 
We are using RadListView (and RadDataPager) to list records of data. Each record that we display has a checkbox for the user to select the record(s) (to perform some action on it, like edit or delete, which we handle.)

My questions is, in the RadListView control (or RadDataPager), is there a way to "persist" the checkboxes' values across pages, as the user goes from one page of records to another?

Iana Tsolova
Telerik team
 answered on 24 Aug 2011
2 answers
69 views
I use rad window

<

 

 

telerik:RadWindow runat="server" Width="300px"

 

 

 

Left="300px" Top="300px" ID="RadWindow_NavigateUrl" NavigateUrl="Sample.aspx"

 

 

 

Modal="true" InitialBehaviors="Maximize" RestrictionZoneID="NavigateUrlZone">

 

 

 

</telerik:RadWindow>

i call this from java script

 

function

 

 

RadCheckinSamp_ClientClicked(sender, eventArgs) {

 

$find(

 

'ctl00_ContentPlaceHolder1_RadWindow_NavigateUrl').show();

 

}

my output screen comes like this


give the solution pls

Marin Bratanov
Telerik team
 answered on 24 Aug 2011
1 answer
278 views
Hi,

I am using radgrid. i want to avoid paging when data has been modified. i am using onCommand method i have stopped redirect. but the current page image changed. i want to fix that background also not changed.

  function rgPayTxn_OnCommand(sender, args) {                   
                    alert('Please save or discard the changes');
                    args.set_cancel(true);                                        
            }

This is code. it is working fine. please let me know how to stop current page image.

please check the attached image. please see the attached image

Please let me know,

Thanks in Advance,
Dhamu.
Radoslav
Telerik team
 answered on 24 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?