Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
I've tried the following example in IE (6.x and 7.x) and Firefox and the example doesn't work.  Is it supposed to? 

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx

I'm trying to get grid to grid drag and drop working in my dev project and am looking for some sample code to start with but this code sample doesn't work in my environment just like it doesn't work on the telerik site.  Anyone know another area I can find example code?

Thanks!

Nathan
nathan
Top achievements
Rank 1
 answered on 05 Feb 2009
0 answers
66 views
I have a treeview inside of a combobox and once a node on the treeview is selected, the treeview and the box that is containing the treeview 'detach' from the combobox and move about an inch and a half down the page and about a half an inch to the right before it closes.  I have used this combination of controls a few times in my app and it only does this in this one instance.

Is there a property I need to set so that the dropdown of the combo always starts and stay directly below the combobox?

Thank you for any help you might have.

Aaron
Aaron
Top achievements
Rank 1
 asked on 04 Feb 2009
1 answer
229 views
I built an ASPX page from scratch using a combination of the RadGrid, RadAjaxManager, RadComboBox controls ultimately to be used as an application page in SharePoint.  Everything works well and the controls are using AJAX postbacks.  I deploy the page to the LAYOUTS directory in SharePoint and it still works.  However, as soon as I convert the page into a content page and point it at SharePoint's application.master file, all the controls start doing full postbacks.  The functionality (paging, sorting, filtering, etc.) still works but all the AJAX goodness is gone.  The only thing that had changed in the page itself is the pertinent content was wrapped up in <asp:Content> controls.  The ScriptManager, RadAjaxManager, etc. controls were still there.  I attempted to put the javascript "fix" on the page as well as referenced here but to no avail.  Can somebody help me out?

Thanks!
Nick
Martin
Top achievements
Rank 1
 answered on 04 Feb 2009
1 answer
126 views
No matter what my input are, the result/sort order are the same.

It seems that the filter dosent "kick in".

Here are my code:

aspx:  
 
<telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource" 
 AllowSorting="True" PageSize="3" AllowPaging="True" AutoGenerateColumns="False" AllowFilteringByColumn="True" EnableViewState="True" GridLines="None" ShowGroupPanel="True">  
 <PagerStyle Mode="NextPrevAndNumeric" /> 
   <MasterTableView ShowFooter="True">  
     <Columns> 
        <telerik:GridHyperLinkColumn DataTextFormatString="Ret" DataNavigateUrlFields="UserID" 
                                DataNavigateUrlFormatString="http://www.google.com/search?hl=en&amp;q={0}&amp;btnG=Google+Search" 
                                UniqueName="Ret" DataTextField="UserID" HeaderText="Ret" AllowFiltering="false" > 
       </telerik:GridHyperLinkColumn> 
       <telerik:GridHyperLinkColumn DataTextFormatString="Slet" DataNavigateUrlFields="UserID" DataNavigateUrlFormatString="javascript: void(alert('UserId={0}'));" 
       UniqueName="Slet" DataTextField="UserID" HeaderText="Slet"  AllowFiltering="false">  
       </telerik:GridHyperLinkColumn> 
       <telerik:GridBoundColumn UniqueName="Email" SortExpression="Email" HeaderText="E-mail" 
       DataField="Email" CurrentFilterFunction="StartsWith" AutoPostBackOnFilter="true">  
       </telerik:GridBoundColumn> 
       <telerik:GridBoundColumn UniqueName="FuldeNavn" SortExpression="FuldeNavn" HeaderText="Navn" 
       DataField="FuldeNavn">  
       </telerik:GridBoundColumn> 
       <telerik:GridBoundColumn UniqueName="Medlemsnummer" SortExpression="Medlemsnummer" 
       HeaderText="Medlemsnummer" DataField="Medlemsnummer">  
       </telerik:GridBoundColumn> 
       <telerik:GridBoundColumn UniqueName="RoleName" SortExpression="RoleName" HeaderText="Rolle" 
       DataField="RoleName">  
       </telerik:GridBoundColumn> 
       </Columns> 
     </MasterTableView> 
</telerik:RadGrid> 

 protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
        {  
            IObjectScope os = (IObjectScope)Context.Items["ObjectScopeProvider"];  
            IQueryable result = from x in os.Extent<UserRole>()  
                                where x.PortalID == 1  
                                select new { x.User.UserID, x.User.Email, x.User.FuldeNavn, x.Medlemsnummer, x.Role.RoleName };  
 
            RadGrid1.DataSource = result;   
         } 

The grid are filled every time I enter data to filter from (number of rows/sort order are the same).
Hessner
Top achievements
Rank 2
 answered on 04 Feb 2009
5 answers
178 views
hi,
My aplication has one master page and several child page. i have  used more rad controls in my application and also used rad ajax manager for the ajax. but my application is very slow.
I have used one RadTab with 4 tabs, and each tab has lot of  rad controls. i have wriiten  code for the ajxax in pag_load()
like this

 

RadAjaxManager AjaxManager = (RadAjaxManager)Master.FindControl("MasterRadManager");

 

ImageButton

ImgBtnSave = (ImageButton)Master.FindControl("ImgBtnSave");

 

AjaxManager.AjaxSettings.AddAjaxSetting(ImgBtnSave, pnlSender, DefaultLoadingPanel);

then i have used four buttons in my master page, which is fire an event in content pages. the content page  load event has the code as mentioned above.
please let me knwo what is wrong and the solution for this.

KlimUser
Top achievements
Rank 2
 answered on 04 Feb 2009
4 answers
392 views
Hi

I'm using the tabstrip to host a multipage with two page views (all telerik)
within these page views i have some controls all contained in a panel.

When I click something on the page (that is not in one of these panels in the pageviews) I want to refresh the contents of the current visible panel (that is the selected tab ) using ajax and a loading panel

I got it working, but when the ajax postback occurs both of the panel contents needs to be refreshed because one does not know which one of the two is currently visible (selected tab) this causes the loading panel for both of them to appear with one of the loading panels all the way to the left of the web page because it cannot draw itself on the hidden panel in the pageview which does not currently have 'focus'

any ideas?
Felipe Saldana
Top achievements
Rank 1
 answered on 04 Feb 2009
1 answer
37 views
Hello,

     How do I set the font on the X Axis Label? Thanks.
Rouky Martin
Top achievements
Rank 1
 answered on 04 Feb 2009
2 answers
196 views
I am new using RadGrid. Somehow the filter icon is not showing up, but my coworker's shows up. We just can not figure why?
It suppose to show up filter icor when you enable filtering. Anyone experiences this problem? How to fixe it?

 

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True"

 

 

AllowPaging="True" AllowSorting="True" GridLines="None">

 

 

<HeaderContextMenu>

 

 

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

 

</HeaderContextMenu>

 

 

<MasterTableView>

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</ExpandCollapseColumn>

 

 

</MasterTableView>

 

 

<FilterMenu>

 

 

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

 

</FilterMenu>

 

 

</telerik:RadGrid>

 


 

MOLIN
Top achievements
Rank 2
 answered on 04 Feb 2009
1 answer
96 views
I am currently testing your earlier TreeView product.  Later this year I plan to upgrade my test project to your latest TreeView and then purchase a license from you.  So this question pertains to your newest TreeView:

I have a situation where I've implemented the checkbox feature in a fairly large tree.  The user uses this tree to assign rights to each user.  A necessary feature is that when one checks or unchecks a given node, all of the child nodes follow suit.  I know how to do this in both client-side and server-side code.  With the server-side version there is a noticeable delay (lag time) when the user sees the child nodes being checked/unchecked.

With your old treeview I could not get both client and server-side events to fire; one or the other but not both.  Has this been corrected with your latest version?

In case you're wondering, there has to be server-side code for this.  The TreeView in question is not in a modal dialog box but simply on the web page, along with other controls.  And to keep things as flexible as possible, the user has the ability (right) to move away from the page whenever they want.  So any checking/unchecking immediately has to be reflected in a Session data table.

My thinking is to fire the client-side code first, visually show the changes, but then also have the server-side code handle the behind-the-scenes stuff.
Robert
Top achievements
Rank 1
 answered on 04 Feb 2009
1 answer
182 views

We are using radPanelBar as a menu for our customer facing site. It seems to be doing a good job so far. I have couple of issues though.
I need to be able to indent items beyond the second level it supports by default. How do I go about doing that?
Any pointers/help will be appriciated.
Thanks
Sid

Heres an example:

This is how the menu is organized:
Home
+ Section 1
    + Sub-Section 1
        - Sub-Sub - Section 1
        - Sub-Sub - Section 2
        + Sub-Sub Section 3
            - Item 1
            - item 2
            - item 3

I have my CSS style defined and working fine for upto Sub-Section 1, there after the indenting for Sub-Sub Section 3 is same as Sub-Section1. Can someone give me an idea of what I should be doing to achieve the new level of indent.

Heres my CSS code for your reference:

------------------- Start CSS code -------------------

/* telerik r.a.d.panelbar 4 eNora2 skin */

/* panelbar wrapper */
.RadPanelbar_eNora2
{
 /*background-color: #3767A5;*/
 white-space: nowrap;
 width: 200px !important; /* this skin requires fixed width */
}

.RadPanelbar_eNora2 ul,
.RadPanelbar_eNora2 li

 text-align:left;
    font-size: 8pt;
    line-height: 19px;

.RadPanelbar_eNora2 .rootGroup
{
 border: solid 1px #8EA95C;
}

/* global text class declaration */
.RadPanelbar_eNora2 .text
{
 padding: 0px 15px; /* vertical - horizontal */
 font: bold 8pt Arial, Verdana, Sans-serif;
 
}

/* panelbar icon [if any] */
.RadPanelbar_eNora2 .image
{
 margin: 0px 0px;
}

 

.RadPanelbar_eNora2 .rootGroup .text
{
 /*background: url('Img/horzarrow.png') no-repeat 1px center;*/
 line-height: 19px;
 
 
}

/* main item link */
.RadPanelbar_eNora2 .rootGroup a.link
{
 background: url('Img/MainItemNormal.gif') repeat-x;
 color: #FFFFFF;
 line-height: 19px;
 border-bottom: solid 1px #3767A5;
}

/* main item link:hover */
.RadPanelbar_eNora2 .rootGroup a.link:hover
{
 background: url('Img/MainItemSelected.gif') repeat-x;
 color: #3767a5;
}

 

/* child items enclosing parent element */
.RadPanelbar_eNora2  .group
{
 /*background: url('Img/ChildItemNormal.gif') repeat-y;*/
 /*background: #f6d101 url('Img/level1_bg.jpg') no-repeat;*/
}
/* child item link */
.RadPanelbar_eNora2 .rootGroup .group a.link
{
 /*background: url('Img/ChildItemSeparator.gif') no-repeat left bottom;*/
 background: #f6d101 url('Img/level1_bg.png') no-repeat;
 color: black;
 border-bottom: 0px;
}

/* child item link:hover */
.RadPanelbar_eNora2 .group a.link:hover
{
 /*background: url('Img/ChildItemSeparator.gif') no-repeat left bottom;*/
 color: white;
}

/* child item .text declaration */
.RadPanelbar_eNora2 .group .text
{
 padding: 0px 20px;
 line-height: 19px;
 font-weight: normal;
}

.RadPanelbar_eNora2 .level1 .first a.link,
.RadPanelbar_eNora2 .level1 .first a.link:hover
{
 background: #f6d101 url('Img/level1top_bg.png') no-repeat;
 
}

.RadPanelbar_eNora2 .group .level1 a.link,
.RadPanelbar_eNora2 .group .level1 a.link:hover
{
 background: #f6d101 url('Img/level1_bg.png') no-repeat;
 
 
}

.RadPanelbar_eNora2 .level1 .text
{
 padding-left: 25px;
 line-height: 19px;
 /*background: url('Img/Bullet.gif') no-repeat 36px center;*/
}

 

.RadPanelbar_eNora2 .group .level2 a.link
{
 background: #f6d101 url('Img/level2_bg.png') no-repeat;
 color: Black;
}

.RadPanelbar_eNora2 .group .level2 a.link:hover
{
 background: #f6d101 url('Img/level2_bg.png') no-repeat;
 color: White;
 
}

/*.RadPanelbar_eNora2 .group .level2 .last a.link,
.RadPanelbar_eNora2 .group .level2 .last a.link:hover
{
 background: url('Img/ChildItemNormal.gif') repeat-y;
}*/

 

.RadPanelbar_eNora2 .level2 .text
{
 padding-left: 38px;
 line-height: 19px;
 /*background: url('Img/Bullet.gif') no-repeat 36px center;*/
}

.RadPanelbar_eNora2 .rootGroup .expandable .text
{
 background: url('Img/horzarrow.png') no-repeat left center;
 line-height: 19px;
}
.RadPanelbar_eNora2 .level1 .expandable .text
{
 background: url('Img/horzarrow2.png') no-repeat left center;
}

/* selected main panelbar item */
.RadPanelbar_eNora2 .rootGroup .expanded .text
{
 background: url('Img/vertarrow.png') no-repeat left center;
 line-height: 19px;
}

.RadPanelbar_eNora2 .level1 .expanded .text
{
 background: url('Img/vertarrow2.png') no-repeat left center;
}

.RadPanelbar_eNora2 .group .level1 .selected .text
{
 padding-left: 45px;
 background: url('Img/vertarrow.png') no-repeat left center;
 line-height: 19px;
}

/* selected child panelbar item */
/*.RadPanelbar_eNora2 .group .selected .text
{
 background: transparent;
 
}*/

.RadPanelbar_eNora2 .rootGroup .disabled:hover,
.RadPanelbar_eNora2 .disabled .text
{
 display:none;
 background: url('Img/MainItemNormal.gif') no-repeat;
 color: #ccc;
 cursor: default;
}

.RadPanelbar_eNora2 .rootGroup .group .disabled:hover,
.RadPanelbar_eNora2 .rootGroup .group .disabled .text
{
 text-decoration: none;
 background: #f6d101 url('Img/Level2Bg.gif') repeat-y;
 color: #ccc;
 cursor: default;
}

.RadPanelbar_eNora2 .group .level2 .disabled,
.RadPanelbar_eNora2 .group .level2 .disabled:hover
{
 background: #f6d101 url('Img/Level2Bg.gif') repeat-y;
}

.RadPanelbar_eNora2 .group .level2 .disabled .text,
.RadPanelbar_eNora2 .group .level2 .disabled:hover .text
{
 background: url('Img/Bullet.gif') no-repeat 36px center;
}

.RadPanelbar_eNora2 .haschildren
{
 background: url('Img/horzarrow.png') no-repeat 4px center;
}

---------------- End CSS Code -------------

nbushnell
Top achievements
Rank 1
 answered on 04 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?