Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
116 views
2 answers
133 views
Whilst testing a page over browsers I find that in firefox a flash object overwrites (in the z-plane) my modal RadWindow. Any fixes? Works fine in IE6..8
dhlennon
Top achievements
Rank 1
 answered on 09 Feb 2009
1 answer
104 views

HI Telerik Team,

i am using Hierarchical grid with custum filtering.
the problem i am facing is something like this:

when i filter something in the grid and server returns the results the grid is not re-painted properly with the search results although the results returned are correct. when i use rebind method then in that case it paints the results properly but then the drill down button is throwing problem i.e.
"Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.  "

In Short i can say how to refresh the Grid without using rebind, in my case both the requests
Filter and drill down are post requests so i use isPostBack to check the request type

"Filter" works with rebind but "Drill Down" does not work with post back.

please tell me how to get out of this hassle. i have seen all the example given on your web site but could not find anything related to my scenrio.

here is the code for the code behind:

 

public partial class BookRunOffBank : ViewPage

 {

 public AjaxOptions options = new AjaxOptions();

 
protected void Page_Load(object sender, EventArgs e)

 {

options.UpdateTargetId = "page";

 

RadGrid1.PagerStyle.Position =

GridPagerPosition.TopAndBottom;

 

RadGrid1.MasterTableView.DataSource = ViewData["Companies"];

 

//////
//if i remove this method then drill down works but filter results are not painted...
//////
if (this.IsPostBack)

 

RadGrid1.Rebind();

 

}

 

protected void RadGrid1_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)

{

GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;

 

e.DetailTableView.DataSource = ViewData[

"CompanyBookRunOff"];

}
}

looking for your reply very soon.

thanks.

 

Yavor
Telerik team
 answered on 09 Feb 2009
1 answer
123 views
Hi All

What I have: A Tabstrip with 2 levels which when a user clicks on the second level, displays the approprate data in a 2 level hierarchy.

My Problem:
1. This is a problem with the Tabstrip that Telerik have suggested I open a formal ticket for but I will mention it in case it's related. If a user clicks on a top level tab the tab styles with the highlighted style, but the second level dont. I have traced this to postback, in that if I disable postback for the Tabstrip it accepts the style.

2. My main problem here is with the RadGrid,Once a user has the Radgrid full of data they can expand the Hierarchy and see everything for a particular row. If they try to edit the nested data (Or add new) the edit form shows and away they go.
If however they try to edit a top level row (the row containing the nested data), the raggrid is empty on postback, and will only show data and open edit form if I click on the second level tabstri[ tab again.

The radgrid is populated in code behind with a data class, I'm not using sql (or other) datasources.

I thinks I'm missing a refresh or rebind() somewhere but cant find where. Any Ideas?

Andy

Georgi Krustev
Telerik team
 answered on 09 Feb 2009
3 answers
123 views
I'm having problems where modal radwindows are not displaying transparent backgrounds. It's intermittent and the only difference is the datasource of the radgrid.

Here's an example of the non-working modal: http://img4.imageshack.us/img4/903/detailsfr2.jpg

Here's an example of the working modal: http://img218.imageshack.us/img218/5627/workingbw6.jpg

This only happens in IE7 and only for certain datasources.

Does anyone have any idea what's going on?
Georgi Tunev
Telerik team
 answered on 09 Feb 2009
1 answer
175 views
I'm using a RadSlider inside of a RadGrid. When the user slides, I want to update an ASP:Label.
This is similar to this example which I used as a basis:
http://www.telerik.com/community/forums/aspnet-ajax/slider/slider-inside-a-repeater-control.aspx

But when I do a postback, I get a JScript runtime error:
"Microsoft JScript runtime error: 'clientValueChangeCoreCompetencyRadGrid_ctl00_ctl04_Emplo...' is undefined"

In the debugger, it is on this code:
Sys.Application.add_init(function() { 
    $create(Telerik.Web.UI.RadSlider, {"_decreaseText":"Decrease","_dragText":"Drag","_increaseText":"Increase","_skin":"Web20","_uniqueID":"CoreCompetencyRadGrid$ctl00$ctl04$EmployeeRatingSlider","_value":1,"clientStateFieldID":"CoreCompetencyRadGrid_ctl00_ctl04_EmployeeRatingSlider_ClientState","length":206,"maximumValue":6,"minimumValue":1,"selectionEnd":1,"selectionStart":1,"showDecreaseHandle":false,"showIncreaseHandle":false,"trackMouseWheel":false,"value":1}, {"valueChange":clientValueChangeCoreCompetencyRadGrid_ctl00_ctl04_EmployeeRatingSlider}, null, $get("CoreCompetencyRadGrid_ctl00_ctl04_EmployeeRatingSlider")); 
}); 

I'm not sure what I'm doing wrong. Why would I get this error?

Here is my .aspx page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head id="Head1" runat="server"
  <title>Untitled Page</title> 
</head> 
<body> 
  <form id="form1" runat="server"
  <asp:ScriptManager ID="ScriptManager" runat="server" /> 
 
  <script type="text/javascript"
 
    function updateRatingLabel(sliderValue, target) { 
      // kind of a hack 
      var values = new Array(); 
      values[1] = "Needs Rating"; 
      values[2] = "Not Rated"; 
      values[3] = "Lacking"; 
      values[4] = "Attaining"; 
      values[5] = "Excelling"; 
      values[6] = "Mastering"; 
 
      var target = document.getElementById(target); 
      target.innerHTML = values[sliderValue]; 
 
    } 
 
 
  </script> 
 
  <telerik:RadGrid ID="CoreCompetencyRadGrid" runat="server" AutoGenerateColumns="false" 
    CssClass="" EnableEmbeddedSkins="false" GridLines="none" Width="100%" OnItemDataBound="CoreCompetencyRadGrid_ItemDataBound" 
    OnNeedDataSource="CoreCompetencyRadGrid_NeedDataSource" SkinID="Grid"
    <GroupHeaderItemStyle /> 
    <MasterTableView> 
      <GroupHeaderItemStyle /> 
      <ExpandCollapseColumn Visible="False"
        <HeaderStyle Width="19px" /> 
      </ExpandCollapseColumn> 
      <RowIndicatorColumn Visible="False"
        <HeaderStyle Width="20px" /> 
      </RowIndicatorColumn> 
      <Columns> 
        <telerik:GridTemplateColumn HeaderText="Rating" UniqueName="Rating"
          <ItemTemplate> 
            <div style="margin: 0; height: 5px;"
            </div> 
            <div id="employeeSlider" runat="server"
              <telerik:RadSlider ID="EmployeeRatingSlider" runat="server" Length="206" MinimumValue="1" 
                MaximumValue="6" ShowDecreaseHandle="false" ShowIncreaseHandle="false" Skin="Web20" 
                OnClientValueChange="clientValueChange" SlideStep="1" TrackMouseWheel="false" /> 
            </div> 
            <div> 
              <asp:Label ID="employeeRatingLabel" runat="server" Style="">HELLO</asp:Label> 
            </div> 
          </ItemTemplate> 
        </telerik:GridTemplateColumn> 
      </Columns> 
    </MasterTableView> 
  </telerik:RadGrid> 
  <asp:Button ID="Yo" runat="server" /> 
  </form> 
</body> 
</html> 
 



And the code behind:
using System; 
using System.Data; 
using System.Configuration; 
using System.Collections; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Web.UI.HtmlControls; 
using Telerik.Web.UI; 
 
public partial class Default : System.Web.UI.Page 
 
  protected void CoreCompetencyRadGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
  { 
    string[] data = new String[5] { "a""a""a""a""a" }; 
    CoreCompetencyRadGrid.DataSource = data; 
  
 
  } 
  protected void CoreCompetencyRadGrid_ItemDataBound(object sender, GridItemEventArgs e) 
  { 
    if (e.Item is GridDataItem) 
    { 
 
      GridDataItem dataItem = e.Item as GridDataItem; 
      RadSlider ratingSlider = (RadSlider)dataItem.FindControl("EmployeeRatingSlider"); 
      ratingSlider.OnClientValueChange = "clientValueChange" + ratingSlider.ClientID; 
      Label ratingLabel = (Label)e.Item.FindControl("employeeRatingLabel"); 
      string jsfunction = "function " + ratingSlider.OnClientValueChange + "(obj,args){updateRatingLabel(obj.get_value(),'" + ratingLabel.ClientID + "');};"
      Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Script" + ratingSlider.ClientID, jsfunction, true); 
    } 
  } 
 




(v2.0.50727)
Tsvetie
Telerik team
 answered on 09 Feb 2009
0 answers
105 views
Hi!

I have many different context menus that are set to specific nodes using the OnClientContextMenuShowing - event. The entire RadTreeView is placed inside an UpdatePanel control that is used to reload some tree status from time to time. Unfortunately, the usage of internal ContextMenus causes the reload to be very slow, about 1 sec per refresh, and therefor I wish to place the ContextMenu outside of the UpdatePanel. Is it possible and in that case, what is the best approach in replacing my collection of RadTreeViewContextMenu:s with RadContextMenu:s?

Regards,

Stefan Carlsson
Steff
Top achievements
Rank 2
 asked on 09 Feb 2009
1 answer
90 views
Has anyone seen where, i select a file from the database and load the html into the rad editor, I select a video wmv file from the media manager, then save the file back to the db and then open a new file - and the previuosly selected .wmv file shows over top of the newly selected file.

please advise.

currently using 

Version=2008.3.1105.20,

thanks,

Jeff

Rumen
Telerik team
 answered on 09 Feb 2009
1 answer
172 views
//this is how it is invoked in my javascript function  
var radWindowManager= GetRadWindowManager();  
        var radWindow=radWindowManager.GetWindowByName("RadWindow1");  
        radWindow.SetUrl(url);  
        radWindow.Show();  
 
Hi,
I have a scenario whereby i have multiple radwindowmanager instances on a single page. This is for the sole purpose that  both of the windows that are launched should use seperate skins.

 

<rad:RadWindowManager ID="BudgetsWindowManager" runat="server" Skin="Halcrow" SkinsPath="/RadControls/Window/Skins/" Behavior="Reload,Close,ReSize">  
 
<Windows>   
 
<rad:RadWindow ID="RadWindowPackageUpdate" Modal="true"   
 
ShowContentDuringLoad="true" runat="server" Width="900" Height="570" Skin="Halcrow" SkinsPath="/RadControls/Window/Skins/" Behavior="Reload,Close,ReSize"/>   
 
<rad:RadWindow ID="RadWindow1" runat="server" Skin="HalcrowHelp" VisibleTitlebar="false" VisibleStatusbar="false" Behavior="None" Modal="true" SkinsPath="/RadControls/Window/Skins/" /> 
 
</Windows> 
 
</rad:RadWindowManager> 
 
 
<rad:RadWindowManager ID="RadWindowManager1" runat="server" Skin="HalcrowHelp" VisibleTitlebar="false" VisibleStatusbar="false" Behavior="None" Modal="true" SkinsPath="/RadControls/Window/Skins/">  
 
 
</rad:RadWindowManager> 
 

However when i try to launch a window usin RadWIndowManager1 , it appears that due to multiple instances of RadWIndowManager on the page, it appears to use the skin settins provided for "Halcrow" mentioned in "BudgetsWindowManager" rather than the "HalcrowHelp" provided in the RadWindowManager1. I have tried mergin the Window Managers togather, however setting the skin on the rad window appears to have no effect and the WindowManager Skin always seems to take preference. Is there anyway i can use multiple instances of RadWindowManager to selct he appropriae SKin? I have tried various things to get around this issue including the one below

 <rad:RadWindowManager ID="BudgetsWindowManager" runat="server" Skin="HalcrowHelp" SkinsPath="/RadControls/Window/Skins/" Behavior="Reload,Close,ReSize">  
                                                <Windows>                                                       
                                                    <rad:RadWindow ID="RadWindowPackageUpdate" Modal="true"   
                                                    ShowContentDuringLoad="true" runat="server" Width="900" Height="570" Skin="Halcrow" SkinsPath="/RadControls/Window/Skins/" Behavior="Reload,Close,ReSize"/>                                                      
                                                    <rad:RadWindow ID="RadWindow1" runat="server"  Skin="HalcrowHelp" VisibleTitlebar="false" VisibleStatusbar="false" Behavior="None" Modal="true" SkinsPath="/RadControls/Window/Skins/" /> 
                                                </Windows> 
                                            </rad:RadWindowManager> 
 
 

 
but to no avail. Can ayone help please?

 


Thanks

 

Georgi Tunev
Telerik team
 answered on 09 Feb 2009
1 answer
65 views
I have a RadGrid and a lot of data binded in.
One of the templates items contains several database fields and i want to order the items by few fields.
For example i want to be able to order the items by field Name and also by Address. What do you suggest that i build-in that i can set the order by these two fields (ASC and DESC). I was thinking of commanditem's just like the refresh and insert commands.

Thank you
Yavor
Telerik team
 answered on 09 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?