Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
121 views
In the Ajax radGrid, in the PreRender event, I have all the group headers collapsed. But if I use another control to select the item, I want to select it in the grid (that's working great) and expand that item's header.

foreach ( item in sender.MasterTableView.Items) {
    if (item is GridDataItem) {
        GridDataItem dataItem = (GridDataItem)item;
        if (curItem.Equals(dataItem.OwnerTableView.DataKeyValues(dataItem.ItemIndex)("JobNumber").ToString())) {
            dataItem.Selected = true;
            GridGroupHeaderItem groupHeader = default(GridGroupHeaderItem);
    // *** At this point, how do I navigate to the groupHeader from the dataItem?  
        }
    }
}
Andy
Top achievements
Rank 2
 answered on 14 Mar 2011
1 answer
192 views
I have radcombobox into my radgrid. i want selected index changed without post back.

using OnClientSelectedIndexChanging with OnItemsRequested. i got value from db. but it is not assigning into label.

here i attached my code

 <telerik:RadComboBox ID="ddlCoverage" AutoPostBack="false" Width="110px" AppendDataBoundItems="true"
                                                runat="server" OnSelectedIndexChanged="ddlCoverage_IndexChanged"  DataTextField="cvg_typ_code" OnClientSelectedIndexChanged="LoadDdlCvg" OnItemsRequested="ddlCoverage_OnItemsRequested"
                                                DataValueField="pln_cvg_id">                                               
                                            </telerik:RadComboBox>


function LoadDdlCvg(combo, eventArqs) {
                      var item = eventArqs.get_item();
                      $find(combo.get_id()).requestItems(item.get_value(), false);            
                  }

   Protected Sub ddlCoverage_OnItemsRequested(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs)
        Dim rcCoverage As RadComboBox = DirectCast(sender, RadComboBox)
        Dim l_pln_id, l_pln_cvg_id, ben_EE_amt, ben_ER_amt As Double
        Dim item As GridDataItem = CType(rcCoverage.NamingContainer, GridDataItem)             
            l_pln_cvg_id = e.Text                   
            Dim lblEEContrib As Label = item.FindControl("lblEEContrib")
            Dim lblERContrib As Label = item.FindControl("lblERContrib")             
                lblEEContrib.Text = String.Format("{0:c}", ben_EE_amt)           
                lblERContrib.Text = String.Format("{0:c}", ben_ER_amt)        
       
    End Sub

Bold value comes from db. but it's not assigning into label
Please give me a tips for this is one.

Thanks in advance,
Dhamu.
Tsvetina
Telerik team
 answered on 14 Mar 2011
1 answer
123 views
IE9
[Title should be: IE9 scroll bar bug (2011.1.225.40)]

Hi,

I ran into an issue with nested splitters in IE9 (RC).
IE9 adds unnecessary scrollbars to a nested splitter.
There are several ways to reproduce it:
  • Dock Pane A/B/C and/or dock Pane 1/2/3
  • Shrink the browser window (just a few pixels are enough)
  • Load the site in a very small browser window (I used a viewport size of 624*349 pixels for reproduction)

The scrollbars disappear when you:

  • Undock a Pane (if you have docked a pane from each SlidingPaneZone scrollbars disappear as soon as you undock any pane)
  • Increase viewport size (just a little bit)

This issue does not repro in IE7/8.

Please see the attached screenschots and markup for further reference.

<telerik:RadSplitter ID="RadSplitter1" Height="100%" HeightOffset="80" runat="server"
BackColor="#30B8CF" ClientIDMode="AutoID" SplitBarsSize="" LiveResize="False"
ResizeMode="Proportional" Width="100%" Orientation="Horizontal" VisibleDuringInit="false">
<telerik:RadPane ID="TopPane" runat="server" Height="22px" Scrolling="none">
<telerik:RadSlidingZone ID="SlidingZone1" runat="server" Height="22px">
<telerik:RadSlidingPane ID="RadSlidingPane1" Title="Pane1" runat="server" Width="150px">
Pane 1 Content a
</telerik:RadSlidingPane>
<telerik:RadSlidingPane ID="Radslidingpane2" Title="Pane2" runat="server" Width="150px">
Pane 2 Content a
</telerik:RadSlidingPane>
<telerik:RadSlidingPane ID="Radslidingpane3" Title="Pane3" runat="server" Width="150px">
Pane 3 Content a
</telerik:RadSlidingPane>
</telerik:RadSlidingZone>
</telerik:RadPane>
<telerik:RadSplitBar ID="Radsplitbar1" runat="server" />
<telerik:RadPane ID="ContentPane" runat="server" Scrolling="None">
<telerik:RadSplitter ID="Radsplitter2" runat="server" Orientation="Vertical" LiveResize="False"
ResizeMode="Proportional" VisibleDuringInit="false">
<telerik:RadPane ID="LeftContentPane" Width="22px" runat="server">
<telerik:RadSlidingZone ID="Radslidingzone2" runat="server" Width="22px" SlideDirection="Right">
<telerik:RadSlidingPane ID="Radslidingpane4" Title="PaneA" runat="server" Height="150px">
Pane1 B</telerik:RadSlidingPane>
<telerik:RadSlidingPane ID="Radslidingpane8" Title="PaneB" runat="server" Height="150px">
Pane2 B</telerik:RadSlidingPane>
<telerik:RadSlidingPane ID="Radslidingpane9" Title="PaneC" runat="server" Height="150px">
Pane3 B</telerik:RadSlidingPane>
</telerik:RadSlidingZone>
</telerik:RadPane>
<telerik:RadSplitBar ID="Radsplitbar3" runat="server" />
<telerik:RadPane ID="Radpane2" runat="server">
<telerik:RadSplitter ID="RadSplitter3" Orientation="Horizontal" LiveResize="True"
ResizeMode="Proportional" VisibleDuringInit="false" runat="server">
<telerik:RadPane ID="RightContentPaneTop" runat="server">
text<br />
text<br />
text<br />
text<br />
text<br />
text<br />
text<br />
text<br />
text<br />
text<br />
text<br />
text<br />
text<br />
text<br />
text<br />
text<br />
</telerik:RadPane>
<telerik:RadSplitBar ID="RadSplitBar4" runat="server" />
<telerik:RadPane ID="RightContentPaneBottom" runat="server">
Hello
</telerik:RadPane>
</telerik:RadSplitter>
</telerik:RadPane>
</telerik:RadSplitter>
</telerik:RadPane>
<telerik:RadSplitBar ID="RadSplitBar2" runat="server" />
<telerik:RadPane ID="BottomPane" runat="server" Width="22px" Scrolling="None">
</telerik:RadPane>
</telerik:RadSplitter>
Dobromir
Telerik team
 answered on 14 Mar 2011
0 answers
77 views
Problem:

In many occasions I had the problem that my grid is not rendered perfectly. Sometimes the headers and itemsrows are misaligned (so they don't show up under eachother) or that on the right side of the grid is a white little space rendered.

Solution:

This can be solved by using the following javascript snippet (the radgrid is getting redrawed without refreshing the page):

<yourelement>.style.display = "";
<yourelement>.style.display = "block";

I thought lets share this because I think more people have the issues of misalignment etc. At least if fixes a lot of issues for me :).

Best regards,
Michiel Peeters
Michiel Peeters
Top achievements
Rank 1
 asked on 14 Mar 2011
1 answer
56 views
RadEditor Dialogs don't work in Medium Trust and U have  the below in your PageStateAdapter.browser file.

How can I force a single page to NOT use the PageStateAdapter.browser or ignore Radcompression for a given page?



PageStateAdapter.browser 
    
<browsers
    <browser refID="Default"
        <controlAdapters
            <adapter controlType="System.Web.UI.Page"  adapterType="Telerik.Web.UI.RadSessionPageStateCompression" /> 
        </controlAdapters
    </browser
</browsers>
Rumen
Telerik team
 answered on 14 Mar 2011
5 answers
125 views
Hi,

I want to detect programmably the event of page down button pressed, as well as the end of page is reached in RadEditor. What are the events raised for both case? Thanks.

York
Marin Bratanov
Telerik team
 answered on 14 Mar 2011
1 answer
70 views
Hello dear representative of Telerik. We have problems with the new version of Telerik Combobox.
In the Old version of Telerik you had the .dll file of RadCombobox.Net2.dll. And there we had a possibility of seeing the property LoadOnDemandURL as seen in the example below:


<telerik
:RadComboBox ID="Systems" runat="server" AllowCustomText="true" AutoPostBack

="false"

 

DataTextField="Name" DataValueField="Id" DropDownWidth="360px" EnableLoadOnDemand

="true"

 

HighlightTemplatedItems="true" IsCaseSensitive="false" ItemRequestTimeout

="500"

 

MarkFirstMatch="true" OnClientDropDownClosing="showContactType();" OnClientDropDownOpening

="insertSelectedType(this);"

 

OnClientKeyPressing="showDropDown(this);" OnClientSelectedIndexChanged

="systemUpdated(this);"

 

OnItemsRequested="Systems_ItemsRequested" OnSelectedIndexChanged

="Systems_Changed"

 

ShowDropDownOnTextboxClick="true" Skin="ClassicLongWidth" ToolTip="" ShowMoreResultsBox

="true">

 

<HeaderTemplate>
Please see the Function Below:
function
insertSelectedType(sender)

 

 

{

debugger ;

 

 

 

var

customers = <%= Customers.ClientID %>;

 

 

var

products = <%= Products.ClientID %>;

 

 

var

platforms = <%= Platforms.ClientID %>;

 

 

var

sstes = <%= SSTes.ClientID %>;

 

//inserts the selected tier to the ajax request

 

var tierString = "&ContactTypes=" + $F('<%= ContactTypes.ClientID %>' );

 

 

tierString +=

 

 

"&Customers="

+ customers.GetValue();

 

 

if(sstes !=null )

 

 

{

 

 tierString +=

 

 

 "&SSTes="

+ sstes.GetValue();

 

}

if(products!=null )

 

 

tierString +=

 

 

"&Products="

+ products.GetValue();

 

 

if(platforms!=null )

 

 

tierString += 

 

 

"&Platforms="

+ platforms.GetValue();

 

 

if (sender.LoadOnDemandUrl.indexOf(tierString) != -1)

 

 

 

return ;

 

 

 

var indexOfTiers = sender.LoadOnDemandUrl.indexOf("&ContactTypes=" )

 

 

 

if (indexOfTiers != -1)

 

 

{

//assume is last parameter

 

sender.LoadOnDemandUrl = sender.LoadOnDemandUrl.substring(0,indexOfTiers); 

 

}

 

sender.LoadOnDemandUrl = sender.LoadOnDemandUrl + tierString;

if ((Sys.Browser.agent === Sys.Browser.InternetExplorer) && (Sys.Browser.version < 7))

{

 

$(

 

'<%= LogicalUnits.ClientID %>').style.visibility = 'hidden' ;

 

 

 

$(

 '<%= Severities.ClientID %>').style.visibility = 'hidden' ;

 

 

 

 $(

'<%= Urgencies.ClientID %>').style.visibility = 'hidden' ;

 

 

 

 

}
As you can see there was a possibility of setting a new LoadonDemandURL.
I tried to do the same in Telerik.Web.UI, Version 2010.2.817.40
But I don't have over there this property.

I wanted first of all to ask if you have any other function which can help me to make what is described below.
If I make LoadOndeMand = true for some combobox it won't be able to see the value of other combos which were loaded in the same way with AutoPostBack = false.
With LoadOnDemandURL I could set the new URL and receive the values by request.querystring.

Wait for your reply.
Thanks.

 

 

 

Kalina
Telerik team
 answered on 14 Mar 2011
3 answers
108 views
Hi,

I was try create slider on client side. But without success. Firefox show error: "h is not a constructor"

This is my code (this code is wer simillar like Telerik's example):

function OnPageLoad() 
  responseEnded(null, null); 
 
function responseEnded(sender, eventArgs) 
  var sliderProps = { value : 50 } 
  var sliderEvents = {};
 
  $create(Telerik.Web.UI.RadSlider, sliderProps, null, null, $get("ClientSlider")); 
 

Thanks in advance,

J
Niko
Telerik team
 answered on 14 Mar 2011
1 answer
42 views
I'm using radgrid with Sunset skin
and I want to customize something in this grid like Head Title bar.
But when I change the skin for Edit Form, but it can not work
Please take me the sample code to customize this issue
Please see the attach file for more information
Shinu
Top achievements
Rank 2
 answered on 14 Mar 2011
1 answer
56 views
Hi Folks!

This is my first post, but I have been learning a ton by reading past posts here on the forums. Just wanted to take a second and say thank you to everyone who posts solutions here as well as the entire Telerik team for being responsive.

Unfortunately my first post is due to a issue with the Visual Style Builder.   I was attempting to make a new skin for an app I am working on, but I noticed in IE 9 I was not able to see many of the critical controls (such as check boxes) in the interface.  

I am on IE9 Version:
RC 9.0.8080.16413

This page shows the missing controls: http://stylebuilder.telerik.com/New.aspx  

I am using FireFox as a work-around, but I thought I would bring this up as I didn't see any other posts about it.  Apologies if there is another thread on this.

Thanks,
-= Daniel

Alex Gyoshev
Telerik team
 answered on 14 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?