Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
326 views
I am using RadSplitter on my master page for layout. My layout is similar to layout in THIS demo. Thea only difference is that I have one extra pane at the bottom for footer. So, my master page layout would be something like this:
<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<head runat="server">
    <title>FullWindow</title>
    <style type="text/css">
    html, body, form
    {
        height: 100%;
        margin: 0px;
        padding: 0px;
        overflow: hidden;
    }
    </style>
     <asp:ContentPlaceHolder ID="HeadContent" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form2" runat="server">
        <asp:ScriptManager ID="ScriptManager" runat="server" />
        <div id="ParentDivElement" style="height: 100%;">
            <telerik:RadSplitter ID="MainSplitter" runat="server" Height="100%" Width="100%"
                Orientation="Horizontal" Skin="Outlook">
                <telerik:RadPane ID="TopPane" runat="server" Height="100" MinHeight="85" MaxHeight="150"
                    Scrolling="none">
                    <!-- Place the content of the pane here -->
                </telerik:RadPane>
                <telerik:RadSplitBar ID="RadsplitbarTop" runat="server" CollapseMode="Forward" />
                <telerik:RadPane ID="MainPane" runat="server" Scrolling="none" MinWidth="500">
                    <telerik:RadSplitter ID="NestedSplitter" runat="server" Skin="Outlook" LiveResize="true">
                        <telerik:RadPane ID="LeftPane" runat="server" Width="200" MinWidth="150" MaxWidth="400">
                            <!-- Place the content of the pane here -->
                        </telerik:RadPane>
                        <telerik:RadSplitBar ID="VerticalSplitBar" runat="server" CollapseMode="Forward" />
                        <telerik:RadPane ID="ContentPane" runat="server">
                            <asp:ContentPlaceHolder ID="MainContent" runat="server" />
                        </telerik:RadPane>
                                    <telerik:RadPane ID="FooterPane" CssClass="footer" Height="35px" runat="server">
                                       My footer © 2012. All rights reserved.
                                  </telerik:RadPane>
                    </telerik:RadSplitter>
                </telerik:RadPane>
            </telerik:RadSplitter>
        </div>
    </form>
</body>
</html>


I want NestedSplitter to resize according to ContentPane height, with no vertical scroll bar within ContentPane. I've also found THIS article describing how to accomplish that but I keep getting some JavaScript error: "undefined" is null or not an object. Could you please help me?

asimptota
Top achievements
Rank 1
 answered on 04 Sep 2012
3 answers
138 views
Hello,
we are using RadEditor in SharePoint 2010.
If we put the below tags:

<figure class="freestyl
e left">
       <img src="/csvstories-cookingcaravan.jpg"/>
       <figcaption class="caption">
               Caption Arial Regular 11px #666666<br />
               Image format: Landscape 300 x 180 px
       </figcaption>
</figure>

RadEditor will remove it the final tags and we are not able to use it.
Is there some specific configuration we are missing?

thanks

manuel

Rumen
Telerik team
 answered on 04 Sep 2012
8 answers
341 views

see the attachment i have bind image in radlistview ,
after that which image i click that image how i get that id

<telerik:RadListView ID="RadListViewAttachment" runat="server" ItemPlaceholderID="ListViewContainer"
                                        OnNeedDataSource="RadListViewAttachment_NeedDataSource" DataKeyNames="RecordID"
                                        OverrideDataSourceControlSorting="true">
                                        <LayoutTemplate>
                                            <asp:PlaceHolder runat="server" ID="ListViewContainer" />
                                        </LayoutTemplate>
                                        <ItemTemplate>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <telerik:RadBinaryImage Style="cursor: pointer; display: block;" runat="server" ID="RadBinaryImage1"
                                                            AutoAdjustImageControlSize="false" Width="15px" Height="15px" DataValue='<%#Eval("SaveFile") %>'
                                                            AlternateText="<%$ Code:Resources.Articles.Article_LargeImage %>" ToolTip="<%$ Code:Resources.Articles.Article_LargeImage %>"
                                                            onclick="<%#CreateWindowScript() %>" />
                                                    </td>
                                                    <td>
                                                        <label>
                                                            <%#Eval("OrgFileName")%></label>
                                                    </td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                    </telerik:RadListView>


See the attachment.

Thanks Advance,
Mohideen.
New
Top achievements
Rank 1
 answered on 04 Sep 2012
5 answers
114 views
hi telerik team,

with client-side databinding the feature "GroupLoadMode=Client" does not work. Do you plan to provide this feature in future?

best regards,

bernhard
Radoslav
Telerik team
 answered on 04 Sep 2012
9 answers
854 views
Guys,

Apologies if this has been asked before however I've been searching for a while and couldn't find an answer.

I have a RadGrid with grouping. The gird does not posts back when a group is expanded and collapsed. I have checkboxes  for each row in the grid. What i need to achieve is to have a checkbox in header of each group and when that checkbox is checked/unchecked all the items of the group should be checked/unchecked. I wish to accomplish this with client side code. No Post-backs

Any suggestions most appreciated. Thx in advance 
Amit
Top achievements
Rank 1
 answered on 04 Sep 2012
1 answer
250 views
Hi,
    I have problem in mastertableview and detailtableview.When we click on the mastertable row checkbox means i want the actual output should be check all the checkbox displaying in the detail table view for that particular master row.
I have used this javascript which i mentioned below but its not working properly.

 

 

function MarkCheckBox(cntrl, CmdtType) {

 

 

 

var rgBarcodeGen = document.getElementById('<%=rgBarcodeGen.ClientID %>');

 

 

 

var gvRow = rgBarcodeGen.getElementsByTagName('tr');

 

 

 

for (var i = 1; i < gvRow.length; i++) {

 

 

 

var gvCntrl = gvRow[i].getElementsByTagName('input');

 

 

 

for (var j = 0; j < gvCntrl.length; j++) {

 

 

 

if (gvCntrl[j].type == "checkbox") {

 

 

 

if (CmdtType == 'master') {

 

gvCntrl[j].checked = cntrl.checked;

 

 

break;

 

}

 

 

else if (CmdtType == 'detail') {

 

gvCntrl[i = j].checked = cntrl.checked;

 

 

break;

 

}

}

}

}

}

 

Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Sep 2012
1 answer
47 views
I want to show A pane contains a RadGrid  above scheduler when i right click in Scheduler Appointments ...i think the default behavior for that is to show context menu i want to show A pane contains RadGrid Instead of Context menu.
Princy
Top achievements
Rank 2
 answered on 04 Sep 2012
3 answers
135 views
When I edit a record with a RadCombox control in RadGrid, the height of dropdown item is so height(in attached image). Normaill, if the RadCombox bound two record, it should only show the height of two record. Don't know why it sill have so many blank space?

My Code is:
 protected void RadGridFunction_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
            if (e.Item is GridEditableItem)
            {
                GridEditableItem editedItem = e.Item as GridEditableItem;
                if ((e.Item as GridEditableItem).IsInEditMode)
                {
                    GridEditManager editMan = editedItem.EditManager;

                    GridDropDownListColumnEditor editor = editMan.GetColumnEditor("RuleType") as GridDropDownListColumnEditor;
                    RadComboBox ddl = (RadComboBox)editedItem["RuleType"].Controls[0];
                    ddl.Width = Unit.Pixel(100);


                    ddl.Items.Add(new RadComboBoxItem("dd1"));
                    ddl.Items.Add(new RadComboBoxItem("dd2"));                 
                }
            }           
        }

 <telerik:GridDropDownColumn DataField="RuleType" UniqueName="RuleType"
                                    HeaderText="Rule Type" ItemStyle-Width="100px">
                                    <FilterTemplate>
                                        <telerik:RadComboBox runat="server" Width="100px" ID="RadComboBoxRuleType" AutoPostBack="true">                                                                                   
                                        </telerik:RadComboBox>
                                    </FilterTemplate>
                                </telerik:GridDropDownColumn>
Shinu
Top achievements
Rank 2
 answered on 04 Sep 2012
1 answer
158 views

In my telerik radgrid i have 2 checkbox columns named "Approved" and "Denied". How do i 'check' multiple checkboxes in each column by draging over the checkboxes? Please note I DO NOT want to select multiple entire rows but just multiple checkboxes in these respective columns by just dragging. Here is the aspx:

 <telerik:GridTemplateColumn UniqueName="checkBoxYesColumn">
                           
<HeaderStyle HorizontalAlign="Center"   />
                           
<HeaderTemplate>
                                 
<asp:CheckBox  ID="cbYesHead2" runat="server" />
                               
<cc1:MutuallyExclusiveCheckBoxExtender ID="mecbeYesHead" runat="server" TargetControlID="cbYesHead2"  />
                           
</HeaderTemplate>
                             
<ItemStyle ... HorizontalAlign="Center"   />
                           
<ItemTemplate>
                                 
<asp:CheckBox ID="cbYes2" runat="server"  />
                                   
<cc1:MutuallyExclusiveCheckBoxExtender ID="mecbe1" runat="server" TargetControlID="cbYes2"  />
                             
</ItemTemplate>
                       
</telerik:GridTemplateColumn>                          
                       
<telerik:GridTemplateColumn HeaderText="" UniqueName="ignoreCheckBoxYesColumn">
                             
<HeaderStyle HorizontalAlign="Center"  />

                             
<ItemStyle  HorizontalAlign="Center"   />
                             
<ItemTemplate>    
                                 
<asp:CheckBox  ID="cbNo2" runat="server"  />
                                   
<cc1:MutuallyExclusiveCheckBoxExtender ID="mecbe2" runat="server" TargetControlID="cbNo2" />
                             
</ItemTemplate>
                       
</telerik:GridTemplateColumn>  

Here is the code behind in C#:

CheckBox cb = (CheckBox)headerItem.FindControl("cbYesHead2");

                cb
.Attributes.Add(...);
               
AjaxControlToolkit.MutuallyExclusiveCheckBoxExtender mecbeYes = (AjaxControlToolkit.MutuallyExclusiveCheckBoxExtender)headerItem.FindControl("mecbeYesHead2");
                mecbeYes
.Key = "head_" +...

cb
= (CheckBox)headerItem.FindControl("cbNo2");
                cb
.Attributes.Add(...);
               
AjaxControlToolkit.MutuallyExclusiveCheckBoxExtender mecbeNo = (AjaxControlToolkit.MutuallyExclusiveCheckBoxExtender)headerItem.FindControl("mecbe2");
                mecbeNo
.Key = "head_" + ...
Tsvetina
Telerik team
 answered on 04 Sep 2012
3 answers
249 views
Hi,

    In my RadGrid, I show DropDownList objects (during Edit mode only) and I wish to populate one based on the selected value of another.

    I created a GridTemplateColumn for this, which during the Edit mode, the DropDownList objects are to be shown. The initial values of these dropdown objects are populated on the ItemCreated event of the grid, and I am just checking that if the grid is in edit mode, I will just populate the dropdown with initial values. The values are fixed and known and they are not a lot so there's no impact doing it on this event.  
  
   On the grid, I show at least two dropdown objects, and I just wish that if the user selects a value from the first dropdown, it will initiate repopulating values on the second dropdown based on the selected choice on the first.

    Can someone please help me on this?  If I am not clear stating my problem here, I'd be glad to clarify it for you.....I really really appreciate your help on this matter.

Regards,
Arthur
Shinu
Top achievements
Rank 2
 answered on 04 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?