Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
80 views
I have a Telerik project that I created with VS2010.  The problem I'm having is as follows: 

 In IE9 when i upload a video and play it in rad editor it works fine.But in design made when i select the video and then try to  delete it the selection box goes away but video stays and continues to play and then i scroll anywhere video box also scrolls with scroll bar.
I am using this code.
<div>
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
        <telerik:RadEditor ID="ed1" runat="server" Width="722px" Height="750px">
            <Content>
                    <OBJECT  height='400px' width='600px' id='VIDEO' style='position:absolute;left:50px;top:50px;border:1px solid lightgray;'
                     CLASSID = 'CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'type=application/x-oleobject>
                     <param name=URL value='NewFolder1\Wildlife.wmv'/>
                     </OBJECT>
            </Content>
        </telerik:RadEditor>
    </div>
Ivaylo
Telerik team
 answered on 20 Jun 2013
2 answers
197 views

how di programitaccly acces the DataSource property of a RadComboBox that is in the Filtertemplate of a GridDropdownColumn of my grid
I want to set the datasource in code behind at the server side

							<telerik:GridDropDownColumn DataField="ProductVolumeID" DataSourceID="ProductVolumeDataSource"
									HeaderText="Product Volume" ListTextField="LongDesc" ListValueField="ProductVolumeID"
									UniqueName="ProductVolumeID">
									<FilterTemplate>
											<telerik:RadComboBox ID="ProductVolumeComboBox" DataSourceID="ProductVolumeDataSource" DataTextField="LongDesc"
													DataValueField="ProductVolumeID" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("ProductVolumeID").CurrentFilterValue %>'
													runat="server" OnClientSelectedIndexChanged="ProductVolumeIndexChanged">
													<Items>
															<telerik:RadComboBoxItem Text="All" />
													</Items>
											</telerik:RadComboBox>
											<telerik:RadScriptBlock ID="ProductVolumeIndexChangedRadScriptBlock" runat="server">
													<script type="text/javascript">
                        		function ProductVolumeIndexChanged(sender, args) {
															var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
															tableView.filter("ProductVolumeID", args.get_item().get_value(), "StartsWith");
														}
													</script>
											</telerik:RadScriptBlock>
									</FilterTemplate>
							</telerik:GridDropDownColumn>
How do i programitaccly access the DataSource property of a RadComboBox that is in the FilterTemplate of a GridDropDownColumn
I want to set the datasource in the server side code and not use the DataSourceID
  
                            <telerik:GridDropDownColumn DataField="ProductVolumeID" DataSourceID="ProductVolumeDataSource"
                                    HeaderText="Product Volume" ListTextField="LongDesc" ListValueField="ProductVolumeID"
                                    UniqueName="ProductVolumeID">
                                    <FilterTemplate>
                                            <telerik:RadComboBox ID="ProductVolumeComboBox" DataSourceID="ProductVolumeDataSource" DataTextField="LongDesc"
                                                    DataValueField="ProductVolumeID" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("ProductVolumeID").CurrentFilterValue %>'
                                                    runat="server" OnClientSelectedIndexChanged="ProductVolumeIndexChanged">
                                                    <Items>
                                                            <telerik:RadComboBoxItem Text="All" />
                                                    </Items>
                                            </telerik:RadComboBox>
                                            <telerik:RadScriptBlock ID="ProductVolumeIndexChangedRadScriptBlock" runat="server">
                                                    <script type="text/javascript">
                                function ProductVolumeIndexChanged(sender, args) {
                                                            var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                                            tableView.filter("ProductVolumeID", args.get_item().get_value(), "StartsWith");
                                                        }
                                                    </script>
                                            </telerik:RadScriptBlock>
                                    </FilterTemplate>
                            </telerik:GridDropDownColumn>
Richard
Top achievements
Rank 1
 answered on 20 Jun 2013
3 answers
257 views
Good Afternoon,

I am currently having an issue with the OnClick Events of a RadTabStrip which is supposed to change the RadPageViews of a RadMultiPage. After placing the following code on a page which inherits no Master Page, with the following definition of a RadScriptManager, everything works fine.

<asp:Content ID="ContentPlaceHolder_RegisterUser" ContentPlaceHolderID="ContentPlaceHolder_MainContent" runat="server">
     
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RegisterUser_RadTabStrip">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RegisterUser_RadTabStrip" />
                    <telerik:AjaxUpdatedControl ControlID="RegisterUser_RadMultiPage" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RegisterUser_RadMultiPage">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RegisterUser_RadTabStrip" />
                    <telerik:AjaxUpdatedControl ControlID="RegisterUser_RadMultiPage" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
 
    <link href="../../Styles/RegisterEmpresa.css" rel="stylesheet" type="text/css" />
 
    <div id="RegisterUser_FormDecoratorZone">
 
        <fieldset>
 
            <legend>
                <asp:Literal ID="RegisterUser_Fieldset_Legend" runat="server" meta:resourcekey="RegisterUser_Fieldset_Legend" />
            </legend>
 
            <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel">
 
                <telerik:RadTabStrip runat="server" ID="RegisterUser_RadTabStrip" SelectedIndex="1" MultiPageID="RegisterUser_RadMultiPage" AutoPostBack="true">
 
                    <Tabs>
 
                        <telerik:RadTab meta:resourcekey="RegisterUser_RadTabStrip_User" PageViewID="RadPageView_User" runat="server">
                        </telerik:RadTab>
 
                        <telerik:RadTab meta:resourcekey="RegisterUser_RadTabStrip_Company"
                            PageViewID="RadPageView_Company" runat="server" Selected="True">
                        </telerik:RadTab>
 
                    </Tabs>
 
                </telerik:RadTabStrip>
 
                <telerik:RadMultiPage id="RegisterUser_RadMultiPage" runat="server" SelectedIndex="1" EnableEmbeddedScripts="true">
                 
                    <telerik:RadPageView ID="RadPageView_User" runat="server" >
                        olaaaaaaaaaaaaa 1
                    </telerik:RadPageView>
 
                    <telerik:RadPageView ID="RadPageView_Company" runat="server">
                        olaaaaaaaaaaaaa 2
                    </telerik:RadPageView>
 
                </telerik:RadMultiPage>
 
            </telerik:RadAjaxPanel>
 
        </fieldset>
 
    </div>
 
    <script type="text/javascript">
 
        ....
 
    </script>
 
</asp:Content>


But after placing the same code inside a Master Page which defines the RadScriptManager, the OnClick Events performed on the RadTabs do not seem to fire.

<form id="form" runat="server">
 
           <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
               <Scripts>
                   <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                   <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                   <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
               </Scripts>
               <Services>
                   <asp:ServiceReference Path="../../WebService/PTC_WebService.svc" />
               </Services>
           </telerik:RadScriptManager>


I would be much appreciated if you could assist me.

Thank you for our attention.

Best Regards,

Nencho
Telerik team
 answered on 20 Jun 2013
4 answers
469 views
Hi,


How can I make telerik radtextbox rounded corner?

Thanks,
Danail Vasilev
Telerik team
 answered on 20 Jun 2013
7 answers
102 views

can someone tell me how to do this same thing but, make it for a DATE CONTROL??
and of course not a StartsWith but an Equals

 

 

 

RadFilterStartsWithFilterExpression expr1 = new RadFilterStartsWithFilterExpression("LOGDISPLAY");

 

expr1.Value =

 

"";

 

UnreportedItemsRadFilter.RootGroup.AddExpression(expr1);

UnreportedItemsRadFilter.RecreateControl();

Vasil
Telerik team
 answered on 20 Jun 2013
2 answers
223 views
Hi ,

I am using NestedViewTemplate to place a child grid within a parent grid . On click of a column in parent grid the child grid expands . But the columns are not aligned properly . please find the screenshot attached .


Here is my code :

 

 

 

 

<

 

telerik:RadGrid ID="RadGridActions" runat="server" CellSpacing="0" GridLines="None" AutoGenerateColumns="False" AllowSorting="true" Skin="WebBlue"

 

 

OnItemCommand="RadGridActions_ItemCommand" ShowFooter="true" OnItemCreated="RadGridActions_ItemCreated" OnDataBound="RadGridActions_DataBound" >

 

 

<MasterTableView>

 

 

<Columns>

 

 

<telerik:GridTemplateColumn>

 

 

<ItemTemplate>

 

 

<asp:CheckBox ID="chkStat" runat="server" autopostback="true" />

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<asp:CheckBox ID="chk" runat="server" AutoPostBack="true" />

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

 

 

<telerik:GridTemplateColumn visible="false">

 

 

<ItemTemplate>

 

 

<asp:Button ID="BtnExpand" runat="server" Text="+" style="width:20px;height:20px;" CommandName="ExpandOrCollapse" Visible="false" />

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="Set Seq" DataField="ActionSetSequence"></telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="Action Name" DataField="ActionName" ></telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="Predecessor Set Seq." DataField="PredecessorSetSequence" ></telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="Created Dt" DataField="CreateDateTime" ></telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="Last Updated Dt" DataField="EndDateTime" ></telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="Status" UniqueName="Status" DataField="GILStatus" ></telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="RuntimeDt" DataField="NextRunDateTime" Visible="false"></telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn UniqueName="ImgSchedule" HeaderText="" ></telerik:GridTemplateColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ActionId" DataField="ActionId" Visible="false" HeaderText="Action Id" ></telerik:GridBoundColumn>

 

 

 

 

</Columns>

 

 

 

 

 

 

<NestedViewSettings DataSourceID="SqlDataSource2" >

 

 

<ParentTableRelation>

 

 

<telerik:GridRelationFields DetailKeyField="ActionID" MasterKeyField="ActionId" />

 

 

</ParentTableRelation>

 

 

</NestedViewSettings>

 

 

 

<NestedViewTemplate>

 

 

 

<telerik:RadGrid ID="RadChildGrid" runat="server" Skin="WebBlue" AutoGenerateColumns="False" OnNeedDataSource="RadChildGrid_Datasource" OnDataBound="RadChildGrid_OnDataBound" OnItemCommand="RadChildGrid_ItemCommand" >

 

 

<MasterTableView>

 

 

<Columns>

 

 

 

<telerik:GridTemplateColumn HeaderText="Replay" UniqueName="Replay">

 

 

<ItemTemplate>

 

 

<asp:ImageButton ID ="ImgBtnReplay" runat="server" ImageUrl="~/Images/replay_disabled.png" CommandName="ReplayAction" CssClass="ReplayImg"/>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn>

 

 

<ItemTemplate>

 

 

<asp:LinkButton ID="LBtnServiceName" runat="server" CommandName="Service" Text='<%# Bind("ServiceName")%>' ></asp:LinkButton>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

<telerik:GridBoundColumn HeaderText="Source Trade Ref" DataField="SourceSystemID" ></telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="GRIP Trade Ref" DataField="GRIPPlacementID" ></telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="Created Dt" DataField="MessageDateTime" ></telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="Last Updated Dt" DataField="StatusDateTime" ></telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="Status" DataField="GILStatus" UniqueName="Status" ></telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn UniqueName="ImgSchedule" HeaderText="" ></telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn UniqueName="ImgSchedule" HeaderText="" ></telerik:GridTemplateColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="RuntimeDt" DataField="NextRunDateTime" Visible="false"></telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ServiceId" DataField="ServiceID" Visible="false"></telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn>

 

 

<ItemTemplate>

 

 

<asp:LinkButton ID="LBtnServiceId" runat="server" Text='<%# Bind("ServiceID") %>'></asp:LinkButton>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

 

</telerik:RadGrid>

 

 

</NestedViewTemplate>

 

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

Galin
Telerik team
 answered on 20 Jun 2013
1 answer
128 views
I would like to create my rows and columns dynamically and not use Bind... is that possible?
or how do I dynamically create the List object at runtime, as I don't know the number of columns or what they are going to be called.
I do know the list will consist of one string and any number of int columns... basically, I'm needing to do a pivot and account for gaps so I preferably would like to just fill the grid view via code instead of using Bind.
Kostadin
Telerik team
 answered on 20 Jun 2013
14 answers
175 views
How do I hide the Node Expansion symbol if there are no nodes underneath?
Plamen
Telerik team
 answered on 20 Jun 2013
1 answer
71 views
Hello,

Is it possible to copy the content from a RadPanelBarItem on a web page so it could be pasted elsewhere?

Thank You!
Kate
Telerik team
 answered on 20 Jun 2013
8 answers
688 views
I have successfully added a RequiredFieldValidator on my grid, whose EditMode="InPlace":

if ((e.Item is GridDataInsertItem) && e.Item.IsInEditMode)  
{  
    //  Insert is clicked  
    GridEditableItem editedItem = e.Item as GridEditableItem;  
 
    GridDataItem dataItem = (GridDataItem)e.Item;  
 
    GridEditManager editMan = editedItem.EditManager;  
 
    GridDropDownListColumnEditor editor = editMan.GetColumnEditor("Id"as GridDropDownListColumnEditor;  
 
    RadComboBox dropDownList1 = editedItem["Id"].Controls[0] as RadComboBox;  
 
    TableCell cell = (TableCell)editor.ContainerControl;  
    //Declare the validator    
    RequiredFieldValidator rfv = new RequiredFieldValidator();  
 
    rfv.ControlToValidate = dropDownList1.ID;  
    rfv.ID = "valId";  
    rfv.ErrorMessage = @"<img src='Images/cautionIcon.png' class='Validation' />";  
 
    //Add the validator to the cell    
    cell.Controls.Add(rfv);    
 
    editor.ComboBoxControl.Skin = "MySkin";  
    editor.ComboBoxControl.EnableEmbeddedSkins = false;  
    editor.ComboBoxControl.DropDownWidth = Unit.Pixel(500);  
    editor.ComboBoxControl.Width = Unit.Pixel(380);  
 
    var erds = (from result in _s  
             where !_Ds.Any(dto =>  
                 dto.Id == result.SystemID)  
             select result).ToList<DTO>();  
 
    editor.DataSource = s;  
 
    editor.DataBind();  
}  
else if ((e.Item is GridEditableItem) && e.Item.IsInEditMode)  
{  
    //  Edit is clicked  
    GridEditableItem editedItem = e.Item as GridEditableItem;  
 
    GridDataItem dataItem = (GridDataItem)e.Item;  
 
    DTO affected = (DTO)e.Item.DataItem;  
 
    GridEditManager editMan = editedItem.EditManager;  
 
    GridDropDownListColumnEditor editor = editMan.GetColumnEditor("Id"as GridDropDownListColumnEditor;  
 
    RadComboBox dropDownList1 = editedItem["Id"].Controls[0] as RadComboBox;  
 
    TableCell cell = (TableCell)editor.ContainerControl;  
    //Declare the validator    
    RequiredFieldValidator rfv = new RequiredFieldValidator();  
 
    rfv.ControlToValidate = dropDownList1.ID;  
    rfv.ID = "Id";  
    rfv.ErrorMessage = @"<img src='Images/cautionIcon.png' class='Validation' />";  
 
    editor.ComboBoxControl.Skin = "EPSS";  
    editor.ComboBoxControl.EnableEmbeddedSkins = false;  
    editor.ComboBoxControl.DropDownWidth = Unit.Pixel(500);  
    editor.ComboBoxControl.Width = Unit.Pixel(380);  
 
    var erds = (from result in _s  
                where !_as.Any(dto =>  
                    dto.Id == result.SystemID && dto.Id != affected.Id)  
                select result).ToList<DTOSystem>();  
 
    editor.DataSource = s;  
 
    editor.DataBind();  
 
    editor.SelectedValue = affected.Id.ToString();  
 

I know my code is convaluted, but basically its correctly adding a RequiredFieldValidator when you click insert.  But not sure why, its now not putting an identical RequiredfieldValidator when I click 'Edit'?  I would think it would roughly be the same code.

J
Eyup
Telerik team
 answered on 20 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?