Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
130 views
I am using RadGrid for AJAX, I cannot reserve row selection and status during paging, selected rows are deselected after leaving current page, the sample online has the same issue with both client-side and server-side selection. I am using client-side selection by the way. Any suggestions?

Thanks in advance!

Shan
Iana Tsolova
Telerik team
 answered on 24 Mar 2011
3 answers
141 views
Hi There,

I am using telerik:RadEditor. In this if i will copy and paste the table structure to my editor notes, i am able to do this. But when i am trying to copy an image and paste it in editor notes, i am unable to paste it. Let me know that whether it is possible to paste an image(.jpeg) in editor notes or not?

Regards:
Vimal Kumar Srivastava
Madhepura, Bihar
Rumen
Telerik team
 answered on 24 Mar 2011
1 answer
97 views
I have a tool bar in my rad grid with an command name of "Stock".  When a user selects a row and clicks on the button, I need to get the row details.

How can I get a hold of the details for the row selected?  I do have Postback on client selecting row, but I'm not sure that is correct.

protected

 

void grdProducts_ItemCommand(object sender, GridCommandEventArgs e)

 

 

{

 

 

if (e.CommandName== "Stock")

 

 

{
????

}
}

Princy
Top achievements
Rank 2
 answered on 24 Mar 2011
1 answer
81 views
Good day
 I am using the RADGRID control, established EditMode property to PopUp, I run it and it works very well, but the problem is with the style that is this window (not like), there is some way that the window has the same style as the RadWindow control?
Princy
Top achievements
Rank 2
 answered on 24 Mar 2011
2 answers
126 views
Hi all.

I've been using css to alter the default visible RadDock objects successfully (see styled1.png).
I've just been including whatever I can find in the inspector that's auto-generated and overwriting it using the (my) parent container .two20, for example:
.two20 .RadDock .rdTitleBar em
{
    font-family:Verdana, Sans-Serif;
    font-size:16px;
    color:#fff;
    font-weight:bold;
    padding: 0 10px;
    line-height:18px;
}
.two20 .RadDock .rdContent {font-family:Verdana, Sans-Serif;}

However I notice when I drag a widget, it reverts to it's old style (see styled2.png) - using the wrong font family, colour, size, etc etc.

I can't inspect while in dragging state, so I can't see what id/class it's using; I'm thinking there must be another container that's using different styles that I'm not overwriting and isn't generated until the drag starts (as I can't find it in view source either).

Where can I find the styles it's generating when a widget is in it's dragging-state?

Thank you :)
Ryan
Top achievements
Rank 1
 answered on 24 Mar 2011
2 answers
102 views
Hi All,

I want to move "PagerTextFormat" next to PageSize.
Is there any way to move "PagerTextFormat"  next to PageSize instead of showing rightmost corner.

Thank u

Avelyn Teh
Top achievements
Rank 1
 answered on 24 Mar 2011
2 answers
192 views
Hi all,

I have a RadDateTimePicker inside of a RadWindow which has smallish dimensions (400x500 pixels). I would like the pop-up to appear inside of this window, but instead it appears partially off-screen and causes weird resizing issues. How can I achieve this?

EnableScreenBoundaryDetection is set to true.
I tried playing around with the pop-up direction but didn't see what I wanted. It is currently set to upper-right.

Before/After shots attached.

Thanks for your help.

Sean
Top achievements
Rank 2
 answered on 23 Mar 2011
8 answers
137 views
Hi All,
  I need to bind the panel bar with IList.
I have a class library from where, i am getting the iList. In here DataReview, Score, something else, section 2 and sample are my parent and "", "/Score/Index", "/something/something", "", "/something/something" are my childeren in panel bar. The childrens are the links. How can I bind my panel bar with IList so that I can get the parents and childerens as links.

 

 

 

 

 

public IList<CsMenuSection> GetMenuItems()

 

 

{

 

 

 

// go to DB to find menu items.

 

 

 

 

 

 

 

 

 

 

CsMenuSection section = new CsMenuSection("DataReview","");

 

 

section.AddMenuItem(

 

new CsMenuItem("Score ", "/Score/Index"));

 

 

section.AddMenuItem(

 

new CsMenuItem("Something else", "/something/something"));

 

 

 

 

CisMenuSection section2 = new CsMenuSection("Section 2", "");

 

 

section.AddMenuItem(

 

new CsMenuItem("Sample", "/Scoring/Selectreps"));

 

 

 

 

_menu_item_list.Add(section);

 

_menu_item_list.Add(section2);

 

 

 

return MenuItemList;

 

 

 

 

 

 

}

MY CsmenuItem looks lik this

 

 

namespace

 

 

CSModel

 

 

{

 

 

 

public class CsMenuItem

 

 

 

 

 

 

 

 

{

 

 

 

 

 

private String _text;

 

 

 

 

private String _link;

 

 

 

 

 

 

public CsMenuItem()

 

 

{

 

}

 

 

 

public CsMenuItem( String text, String link)

 

 

{

 

 

 

Text = text;

 

Link = link;

 

}

 

 

 

public String Text

 

 

{

 

 

 

get { return _text; }

 

 

 

 

set { _text = value; }

 

 

}

 

 

 

public String Link

 

 

{

 

 

 

get { return _link; }

 

 

 

 

set { _link = value; }

 

 

}

 

 

 

}

 

}

 

 

 

Can anyone please help me with this. I really need it urgently.

Anjali
Top achievements
Rank 1
 answered on 23 Mar 2011
3 answers
252 views

I'm working on a custom usercontrol that nests 2 RadPanelBars - one RadPanelBar inside each of its parent's RadPanelItem - in Sitefinity 3.7.2057.2. The parent RadPanelBar expands/collapses as it should, however the child RadPanelBar doesn't expand or collapse. Can you tell me how to fix it?


This is all that exists in my ascx.

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="RadPa...
  
<telerik:RadPanelBar ID="RadPanelBarParent" runat="server" Skin="Default">
</telerik:RadPanelBar>


Codebehind Snippet that builds the RadPanelBar:
foreach (Guid id in ListsIds)
            {
                //Create new bar
                RadPanelItem NewItem = new RadPanelItem(manager.GetList(id).Name);
                RadPanelItem InternalParentItem = new RadPanelItem();
                // Create new PanelBar
                RadPanelBar ChildPanelBar = new RadPanelBar();
                  
                //Add to the child
                NewItem.Items.Add(InternalParentItem);
                  
                // Add the panelbar to the new item
                InternalParentItem.Controls.Add(ChildPanelBar);
                  
                //Add the parent
                RadPanelBarParent.Items.Add(NewItem);
  
                     
                foreach(IListItem listItem in manager.GetListItems(id)){
                      
                    //Create new bar
                    RadPanelItem ChildItem = new RadPanelItem(listItem.Headline);
                    RadPanelItem InternalChildItem = new RadPanelItem();
  
                    // Bind the template
                    InternalChildItem.ItemTemplate = new TextBoxTemplate();
                      
                    //Add to the child
                    ChildItem.Items.Add(InternalChildItem);
                      
                    // Set the content
                    InternalChildItem.Value = listItem.Content.ToString();
                      
                    //Add to the parent
                    ChildPanelBar.Items.Add(ChildItem);
                  }
            }
Shivers999
Top achievements
Rank 1
 answered on 23 Mar 2011
1 answer
109 views
I am trying to do a calcuation in a child grid using javascript but can not seem to figure out how to reference either a field in the nestedviewtemplate or the parent row.

My grids are as follows:
grid1 (with TaxRate bound column)
  nestedviewtemplate
    panel
      multipage
         pageviewPayment
            hiddenfield taxrate
            gridPayment
               PaymentAmount (bound column)
               TaxAmount (bound column)

I have a load client event for TaxAmount to see if it is already populated.  I have a blur event on PaymentAmount to calculate the TaxAmount if not already there.  The TaxAmount should be the PaymentAmount * the TaxRate from the parent grid.  I also have a hidden field in the page view with the tax rate and a label so I know it is picking up the right tax rate.  I can not figure out how to get to any of the TaxRate fields from my blur event.  How do I traverse up through my PaymentAmount field to either the label, the hidden field or the TaxRate from the parent grid?

thanks!
Koren
Top achievements
Rank 1
 answered on 23 Mar 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?