Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
80 views

Hello,
At run time, my Rascheduler displays a blank header (please see attachment) (on Windows 7). I'm using Telerik version 2011.2.712.40 with VisualStudio 2010. In the designer, the header is shown as expected.
Does anyone have this problem? Thanks.

Below is my simple aspx file.

<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml">

 

<

 

head runat="server">

 

 

<title></title>

 

 

<telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />

 

</

 

head>

 

<

 

body>

 

 

<form id="form1" runat="server">

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

 

 

<Scripts>

 

<%

--Needed for JavaScript IntelliSense in VS2010--%>

 

<%

--For VS2008 replace RadScriptManager with ScriptManager--%>

 

 

<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>

 

 

</telerik:RadScriptManager>

 

 

<script type="text/javascript">

 

 

//Put your JavaScript code here.

 

 

</script>

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

</telerik:RadAjaxManager>

 

 

<div>

 

 

 

<telerik:RadScheduler ID="MainScheduler" runat="server" Culture="English (Australia)"

 

 

DayEndTime="20:00:00" DayStartTime="09:00:00" FirstDayOfWeek="Monday" Height="515px"

 

 

MinutesPerRow="15" NumberOfHoveredRows="1" Skin="Vista" TimeLabelRowSpan="4"

 

 

OverflowBehavior="Expand" DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End">

 

 

</telerik:RadScheduler>

 

 

 

</div>

 

 

</form>

 

</

 

body>

 

</

 

html>

 




Plamen
Telerik team
 answered on 22 Jul 2011
1 answer
219 views
Is there back/forward navigation like in a webbrowser.  For example in the demo of Radwindow I can open up Google in a radwindow and do a search.  If I click on a link how do I go back to the search results.

I could save the NavigateUrl property and reload that page when the user clicks a back button.  I was just hoping it was built in.

Thanks,
Corey
Marin Bratanov
Telerik team
 answered on 22 Jul 2011
2 answers
496 views
HI,

I have one radButton, when i click it i must open a link in a new blank page.
i see the property "target" on radButton but it does not work

Slav
Telerik team
 answered on 22 Jul 2011
2 answers
443 views
Hello,

    I have a Radgrid in my web application . When I edit a row in the Radgrid, I want to call a javascript function (which will get the geocodes ) from the update button. I know we can add the attributes if the button is on the form. But that is not the case now.

I am accessing that update button in the itemDatabound event like this

  Dim editItem As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)
   Dim updateButton As ImageButton = DirectCast(editItem.FindControl("UpdateButton"), ImageButton)

Appreciate the Help
Thanks
Jagat
Top achievements
Rank 1
 answered on 22 Jul 2011
1 answer
123 views
Hello All,

I have created a tree dynamically. CreateTreeView() is called in createchildcontorls and I am populating the tree in PreRender.
When I click on any tree node, the page just postbacks but NodeClick event is not firing. \

private void CreateTreeView()
{
treeViewPane.ID = "TreeViewPane";
treeViewPane.Width = new Unit("150px");
treeView = new RadTreeView();
treeView.Nodes.Clear();
treeView.NodeClick += new RadTreeViewEventHandler(treeView_NodeClick);
treeViewPane.Controls.Add(treeView);
}

Could someone please help me.

Regards
Rajeev
Plamen
Telerik team
 answered on 22 Jul 2011
3 answers
85 views
HI I HAVE A RADDATECOLUMN ON MY GRID.I BIND IT WITH EF QUERY.BUT GRIDDATE COLUM CANT FILTERED IT CORRECTLY COLLACITON IS TURKISH_CI_AS
<telerik:RadGrid ID="grdSales" runat="server" AutoGenerateColumns="False" GridLines="None"
                    Height="350px" AllowPaging="True" EnableEmbeddedSkins="False"
                    Skin="customGrid" AllowFilteringByColumn="True">
                    <GroupingSettings CaseSensitive="False" />
                    <ClientSettings>
                        <Selecting AllowRowSelect="True" />
                    </ClientSettings>
                    <MasterTableView NoMasterRecordsText=""  AllowFilteringByColumn="True">
                        <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                        <RowIndicatorColumn>
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn>
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridDateTimeColumn AutoPostBackOnFilter="True" DataField="SALESDATE" SortExpression="SALESDATE"
                                DataFormatString="{0:dd/MM/yyyy}" UniqueName="SALESDATE" PickerType="None">
                            </telerik:GridDateTimeColumn>
                        </Columns>
                        <EditFormSettings>
                            <EditColumn InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif" EditImageUrl="Edit.gif"
                                CancelImageUrl="Cancel.gif">
                            </EditColumn>
                        </EditFormSettings>
                    </MasterTableView>
                    <FilterMenu EnableEmbeddedSkins="False">
                    </FilterMenu>
                    <HeaderContextMenu EnableImageSprites="True" CssClass="GridContextMenu GridContextMenu_Default">
                    </HeaderContextMenu>
                </telerik:RadGrid>
Teoman
Top achievements
Rank 1
 answered on 22 Jul 2011
6 answers
256 views
I have a EditFormSettings FormTemplate inside a RadGrid that contains two comboboxes:
(Looks something like this):
<FormTemplate> 
                    <table> 
                        <tr> 
                            <td> 
                                Inventory Name: 
                            </td> 
                            <td> 
                                <telerik:RadComboBox SelectedValue='<%# Bind( "InventoryId") %>' ID="RadComboBoxInventoryName" runat="server" Height="300px" Width="300px" 
                                    Filter="Contains" MarkFirstMatch="true" ChangeTextOnKeyBoardNavigation="false" 
                                    DataSourceID="ObjectDataSourceInventoryName" DataTextField="Name" DataValueField="InventoryId" AutoPostBack="true"
                                    <Items> 
                                        <telerik:RadComboBoxItem Text="" Value="" Selected="true" /> 
                                    </Items> 
                                </telerik:RadComboBox> 
                            </td> 
                        </tr> 
                        </tr> 
                            <tr> 
                            <td> 
                                Attribute: 
                            </td> 
                            <td> 
                                <telerik:RadComboBox Text='<%# Bind( "Attribute") %>' ID="RadComboBoxAttribute" runat="server" Height="300px" Width="300px" 
                                    Filter="Contains" MarkFirstMatch="true" ChangeTextOnKeyBoardNavigation="false" 
                                    DataSourceID="ObjectDataSourceAttribute" DataTextField="Attribute" DataValueField="Attribute" AutoPostBack="true"
                                    <Items> 
                                        <telerik:RadComboBoxItem Text="" Value="" Selected="true" /> 
                                    </Items> 
                                    <ItemTemplate> 
                                        <%# DataBinder.Eval(Container.DataItem, "Type")%>.<%# DataBinder.Eval(Container.DataItem, "Attribute")%> 
                                    </ItemTemplate> 
                                </telerik:RadComboBox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td align="left" colspan="2"
                                <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' 
                                    runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                                </asp:Button>&nbsp; 
                                <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" 
                                CommandName="Cancel"></asp:Button></td
                        </tr> 
                    </table> 
                </FormTemplate> 
Simple enough... There are two RadComboBoxes with two different ObjectDataSources applied. The ObjectDataSources look like this:
    <asp:ObjectDataSource ID="ObjectDataSourceInventoryName" runat="server"  
        TypeName="Ams.Web.BackOffice.InventoryAdapter"  
        DataObjectTypeName="Ams.Core.DomainObject.Inventory"  
        OldValuesParameterFormatString="original_{0}" 
        ConflictDetection="CompareAllValues" 
        SelectMethod="GetInventoryForComboBox"
     </asp:ObjectDataSource> 
 
    <asp:ObjectDataSource ID="ObjectDataSourceAttribute" runat="server"  
        TypeName="Ams.Web.BackOffice.InventoryTypeAttributesAdapter"  
        DataObjectTypeName="Ams.Core.DomainObject.InventoryAttribute_InventoryType"  
        OldValuesParameterFormatString="original_{0}" 
        ConflictDetection="CompareAllValues"  
        SelectMethod="GetAttributeByInventoryId"
<SELECTPARAMETERS> 
                <asp:ControlParameter Name="aInventoryId" PropertyName="SelectedValue" ControlID="RadComboBoxInventoryName" /> 
            </SELECTPARAMETERS> 
     </asp:ObjectDataSource> 
             

Note, the ObjectDataSource of interest is the second, as it has a dependency on the first for one of its SelectParameters. When the page loads, I get an error stating:

Could not find control 'RadComboBoxInventoryName' in ControlParameter 'aInventoryId'.

Basically, it reports that it cannot find the control for the aInventoryId parameter (as its not rendered on the page yet).
Is it possible to use ObjectDataSources with parameter dependencies inside an edit form? If not, is there a work around?
Thanks in advance,
Tim
PS. I've tried the $ sign trick some other have posted.. No dice. (Inspected the client "name" attribute for the input control of the RadComboBox --

ctl00$ContentPlaceHolderBody$mImportMappingGrids$RadGridOrigin$ctl00$ctl07$RadComboBoxInventoryName

Nope...
Dimitar Terziev
Telerik team
 answered on 22 Jul 2011
1 answer
75 views
I have a WCF services that expose a function List<MyDataDTO> FindPagedData(pageIndex, pageCount).

If I want to use Virtual scolling and page, I need to expose a function Int32 GetTotalItemCount()?

Which is the better strategy/solutions?

And about Filtering feature, how can I work using VirtualItemCount?

Thanks.

Genti
Telerik team
 answered on 22 Jul 2011
3 answers
412 views
Hi, I am new to this forum and new to rad controls. I have spent a little time on understanding the usage of these control and no trying to implement one.

I have a radgrid binded to a datatable(code behind). I would like to display dropdown for a column(say Prefix) with prefilled values from another datatable when in Edit Mode. I tried using GridDropDownColumn this does not display data for that column but does gives me a dropdown control in Edit mode.

I have the grid this way.
-----------------------------Control---------------------------------------------
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="true" OnNeedDataSource="RadGrid1_NeedDataSource"
                AllowSorting="true" GridLines="None" PageSize="5" Skin="Web20"
        Width="80%" onpageindexchanged="RadGrid1_PageIndexChanged"
        onpagesizechanged="RadGrid1_PageSizeChanged"
        OnUpdateCommand="RadGrid1_UpdateCommand"
        onitemdatabound="RadGrid1_ItemDataBound">
                <ClientSettings AllowKeyboardNavigation="true" EnablePostBackOnRowClick="true">
                    <Selecting AllowRowSelect="true" />
                    <Resizing AllowColumnResize="True" AllowRowResize="false" ResizeGridOnColumnResize="false"
                    ClipCellContentOnResize="true" EnableRealTimeResize="false" AllowResizeToFit="true" />
                </ClientSettings>
                <MasterTableView Width="100%" AutoGenerateColumns="false" >
                    <Columns>
                        <telerik:GridButtonColumn CommandName="Edit" Text="Edit" UniqueName="Edit">
                        </telerik:GridButtonColumn>
                        <telerik:GridButtonColumn CommandName="Replace" Text="Replace" UniqueName="Replace">
                        </telerik:GridButtonColumn>
                        <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="Delete">
                        </telerik:GridButtonColumn>
                        <telerik:GridBoundColumn DataField="P" HeaderText="Prefix">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="FN" HeaderText="FirstName">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="MN" HeaderText="MiddleI">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="LN" HeaderText="LastName">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="SchoolName" HeaderText="LocatedAt">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="PersonID" HeaderText="PersonID" Visible="false" UniqueName="PersonID">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
                <PagerStyle Mode="NextPrevAndNumeric" />

            </telerik:RadGrid>
-----------------------------CodeBehind---------------------------------------------
Page Load :-
RadGrid1.DataSource = dsAdminInfo.Tables[0];<br>
RadGrid1.DataBind();


 protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            RadGrid1.DataSource = ((DataSet)Session["AdminInfo"]).Tables[0];
        }

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if ((e.Item is GridEditFormItem) && (e.Item.IsInEditMode))
            {
                GridEditFormItem editform = (GridEditFormItem)e.Item;
                editform["PersonID"].Parent.Visible = false;
        }
Marin
Telerik team
 answered on 22 Jul 2011
1 answer
49 views
Hi All,

      In my page i have radtreeview, radgrid and dropdown list above the radgrid.
      Please find the attached screen shot of my page. My scenario is when i select filter in dropdownlist i want to bind radgrid based on 2 different dates. Please provide any help or link how can i follow this scenario.


Thanks,
Nagendra.
   
Princy
Top achievements
Rank 2
 answered on 22 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?