Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
221 views
Dear Telerik development team,

is there any way to create CheckBox columns in RadGrid fully programmatically in the code-behind? 

I have List<string> collection and I would like to add RadGrid (with two columns) to my aspx page. However, I must do this fully programmatically by code-behind. Please, do not ask me why such scenario ;) . 
So, the first column should contain items from List<string> collection, and the second one should contain enabled checkboxes.
Finally, a RadButton to get which items from the RadGrid rows are selected, should be added under the RadGrid.

Can somebody help me to accomplish described scenario by code-behind only, please?
Thank you very much.

Miro
Miroslav
Top achievements
Rank 1
 answered on 03 Jun 2011
9 answers
441 views
please see attached image:
Kate
Telerik team
 answered on 03 Jun 2011
2 answers
197 views
This problem happens only in IE7, the same application works fine in chrome and firefox, i have read all the post in this website but the problem still happens, cannot set the width in the columns because the header text doesn't fix, the grid have a scroll but the space keeps comming, it doesn't happens when MasterTableView TableLayout set to "Fixed", but the columns content doesn't fix.

attach an picture of the problem.


i hope you can help me,

regards

Andres G.

andres
Top achievements
Rank 1
 answered on 03 Jun 2011
1 answer
68 views
Hi

I refered the  Window / RadWindow And MDI from demos Now when i open any new window using javascript from a opened page how to bring the opened page text in tadstrip.

Help !!!

Marin Bratanov
Telerik team
 answered on 03 Jun 2011
2 answers
151 views
Hello,

I'm trying to embed the rotator as mentioned in the telerik examples, but it is not fading the images. The images are moving from right to left and they are not performing the fade effect even the sample is copy paste from the telerik samples.

Here is the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
  
<head runat="server">
    <title></title>
     <style type="text/css">
        .rotatorBackground
        {
            float: left;
            margin-left: 50px;
            margin-top: 10px;
            width: 440px;
            height: 185px;
            border: solid 2px #dedede;
            -moz-border-radius: 15px;
            -webkit-border-radius: 15px;
        }
        .rotatorStyle
        {
            margin: 40px auto 0px;
        }
        .rotatorStyle .RotatorItem
        {
            margin:5px;
            height: 100px;
            width: 100px;
        }
        .rotatorCarouselStyle
        {
            margin: 0px auto;
        }
        .RotatorItem
        {
            border: solid 1px #dff3ff !important;
        }
        .mainDiv
        {
            margin-bottom: 20px;
        }
        .configurationPanel
        {
            width: 290px;
            border: 0px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
      
    </telerik:RadScriptManager>
    <telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="Server" Transparency="30"
        EnableSkinTransparency="false" BackColor="#E0E0E0">
    </telerik:RadAjaxLoadingPanel>
     
    <telerik:RadAjaxPanel ID="AjaxPanel1" runat="server" LoadingPanelID="LoadingPanel1">
        <div class="mainDiv">
            <div class="rotatorBackground">
                
                <telerik:RadRotator ID="RadRotator1" runat="server" Width="224px" Height="112px"
                    CssClass="rotatorStyle" ItemHeight="112" ItemWidth="112" 
                    SlideShowAnimation-Type="Fade" SlideShowAnimation-Duration="3000"  >
                    <Items>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image" ImageUrl='Img/Northwind/Customers/Thumbs/ANATR.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image1" ImageUrl='Img/Northwind/Customers/Thumbs/ANTON.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image2" ImageUrl='Img/Northwind/Customers/Thumbs/BOTTM.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image3" ImageUrl='Img/Northwind/Customers/Thumbs/CACTU.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image3" ImageUrl='Img/Northwind/Customers/Thumbs/CENTC.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image3" ImageUrl='Img/Northwind/Customers/Thumbs/ERNSH.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image3" ImageUrl='Img/Northwind/Customers/Thumbs/LAUGB.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image3" ImageUrl='Img/Northwind/Customers/Thumbs/MAISD.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image3" ImageUrl='Img/Northwind/Customers/Thumbs/MEREP.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                        <telerik:RadRotatorItem>
                            <ItemTemplate>
<asp:Image runat="server" ID="Image3" ImageUrl='Img/Northwind/Customers/Thumbs/OCEAN.jpg'
CssClass="RotatorItem" AlternateText="Customer Image" />
                            </ItemTemplate>
                        </telerik:RadRotatorItem>
                    </Items>
                </telerik:RadRotator>
            </div>
        </div>
    </telerik:RadAjaxPanel>
  
    </form>
</body>
</html>

Thanks for your help
Mike_T
Top achievements
Rank 1
 answered on 03 Jun 2011
1 answer
116 views
hi,

how to hide parent radwindow behaviours when open child radwindow in javascript and how to enable parnet radwindow behaviour when close child radwindow


regards,
asiq
Marin Bratanov
Telerik team
 answered on 03 Jun 2011
5 answers
513 views
Hi
I'm using a hierarchical grid. In one of them I defined columns but all of them is set to visible = false. All of these columns I binded manualy in nested view template. The grid have just one row. Nested view template is automaticaly expanded. I want to place the edit and the delete button onto view template instead to having them in column (e. g. GridEditCommandColumn). Is this possible ?

I'm using this because I don't want to loose the automatic update delete and insert abilities.

Thank you very much.

Tibor
Princy
Top achievements
Rank 2
 answered on 03 Jun 2011
10 answers
313 views
Hello every one,


How to find control in ,
But One thing that radlist box in EditFormSettings,
That why how i find that controls.
Reply As soon As possible

 protected void RadListBoxSourceGroup_Transferred(object sender, Telerik.Web.UI.RadListBoxTransferredEventArgs e)
        {
            RadListBox SelectedList = (RadListBox)FindControl("RadListBoxDestinationGroup");
            foreach (RadListBoxItem item in SelectedList.Items)
            {
                Response.Write(item.Attributes["myId"]); // get the third value
            }
        }


Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 03 Jun 2011
1 answer
126 views
1. I have a general layout like this (see below). What happens is when i click on content1 or 2 pane they slide open but they DONT fill up 100% of the width of "LeftPane", unstead they open in a small slice about 200px it looks like. If I explicitly change content1 width to be like 700px then it opens bigger, but i want to use percentage to fill in 100% of "LeftPane". How can i get percentages to work?

2. Say i make CONTENT1 docked and open on load. (expandedpaneid=content1 and dockonopen=true). How can I totally prevent the user from ever undocking ie closing that pane. Such that CONTENT2 will just slide open overtop content1 but CONTENT1 can never be closed or undocked?


<telerik:RadSplitter ID="RadSplitter1" runat="server" skin="vista" Width="100%">
   <telerik:RadPane ID="LeftPane" runat="server" Scrolling="None" Width="58%">
 
      <telerik:RadSlidingZone ID="Zone1" runat="server" Width="22px" ClickToOpen="true">
            <telerik:RadPane ID="Expanding_CONTENT1" Title="Pane1" runat="server" Scrolling="None" Width="100%" >    
            </telerik:RadPane>
            <telerik:RadPane ID="Expanding_CONTENT2" Title="Pane1" runat="server" Scrolling="None" Width="100%" >    
            </telerik:RadPane>
      </telerik:RadSlidingZone>
 
  </telerik:RadPane>
 
  <telerik:RadSplitBar runat="server" ID="SplitBar1" CollapseMode="Both" />
 
  <telerik:RadPane ID="RightPane_AlwaysOpen" runat="server" Scrolling="None" Width="38%">
  </telerik:RadPane>
 
</telerik:RadSplitter>


UPDATE: Did some more testing and the layout/sizing is actually all correct as long as I don't use ExpandedPaneId or Dock any Panes. As soon as i dock something or set expandedpaneid then the size of the left pane jumps to a small window and the right pane takes up most of the screen. (not the behavior i want)

Another Issue i noticed is resizing the browser doesn't resize Panes? why is this? The radgrid and all the other controls i have used automatically resize if i resize the browser but the above layout does not resize at all - unless i reload the page


THANKS
jason
Dobromir
Telerik team
 answered on 03 Jun 2011
5 answers
225 views
Hello,

I have a radGrid inside a XmlHttpPanel and when I call panel.set_value() I am getting the following error:

XmlHttpPanel Callback Loading error:
Exception=Script control 'rfltMenu' is not a registered script control.
Script controls must be registered using RegisterScriptControl() before
calling RegisterScriptDescriptors().
Parameter name: scriptControl


I have downloaded and installed the latest build ( 2009_2_927) which seems to have fixed a similar error I was getting before with the GoToPageTextBox. 

Thanks

Ernie
Pero
Telerik team
 answered on 03 Jun 2011
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?