Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
83 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
72 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
93 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
86 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
168 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
116 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
212 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
101 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
4 answers
160 views
I am sorry if this has been asked before, but I couldn't seem to find anything on it and don't have enough development background to figure it out. I have docks being dynamically created based on some of the Telerik sample code. When the user adds the dock the contents are populated with a user control that is pulled from a database. The user control contains some javascript that needs to run immediately after the dock is loaded, but only seems to intiate after a postback. Anytime that dock is loaded afterwards the contents are displayed fine. Is there something I can do to make that load during the initial creation. Thank you!
Imran
Top achievements
Rank 1
 answered on 23 Mar 2011
2 answers
68 views
I just downloaded and installed the latest upgrade in the last 2 or 3 days and am having a problem with the Editor now that I did not have prior to the new upgrade.  Basically, no matter what skin I choose, the actual text editing portion of the editor displays the page background.

The source code for the .aspx page is immediately below.

<%@ Page Language="VB" AutoEventWireup="true" CodeFile="ZTest_RadEditor.aspx.vb" Inherits="ZTest_RadEditor" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
    <link href="THDiStyles/Default.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
        <br /><br />
        <telerik:RadEditor ID="RadEditor1" runat="server" EnableEmbeddedSkins="true" Skin="Simple" ToolsFile="BasicTools.xml" >
        </telerik:RadEditor>
        <br /><br />
    </div>
    </form>
</body>
</html>

I have uploaded screen captures of:
(a) The displayed page; and,
(b) The Developer Tools window capture.

Can anyone tell me what is happening?  I have not changed anything I am doing and this did not happen before installing the last upgrade.

Thanks in advance for the assistance!

Lynn
Lynn
Top achievements
Rank 2
 answered on 23 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?