Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
206 views
HI,

I have a Grid in a RadWindow. This grid has a RadDatePicker control in EditItemTemplate. The calendar is not shown when I click on the datepicker control. 


                               
<telerik:RadWindowManager ID="RadWindowManagerActuals" ShowContentDuringLoad="true" VisibleStatusbar="true" width="820px" Height="800px"
                                  ReloadOnShow="true" runat="server" Skin="Default" EnableShadow="false">
          <Windows>
          <telerik:RadWindow ID="RadShowActuals" runat="server" Behaviors="Close" Modal="true"  >
      <ContentTemplate>               
            <telerik:RadGrid ID="GrdMeasureActuals" AutoGenerateColumns="False" AllowPaging="True" GridLines="Both" CellPadding="2"
                  AllowSorting="True" runat="server"  OnNeedDataSource="GrdMeasureActuals_NeedDataSource" OnUpdateCommand="GrdMeasureActuals_UpdateCommand"
                  OnItemCommand="GrdMeasureActuals_ItemCommand" OnItemDataBound="GrdMeasureActuals_ItemDataBound"
                   Width="780px">
                  <PagerStyle Mode="NextPrev" />
                  <GroupingSettings CaseSensitive="false" />
                  <MasterTableView TableLayout="Fixed" PageSize="300" DataKeyNames="ID">
                      <Columns>
                          <telerik:GridButtonColumn FooterText="Edit" DataTextFormatString="Edit" ButtonType="ImageButton"
                              UniqueName="Edit" HeaderText="Edit" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                              CommandName="Edit" DataTextField="ID" ImageUrl="~/_layouts/images/edit.gif"
                              HeaderStyle-Width="25px">
                          </telerik:GridButtonColumn>                       
                           <telerik:GridTemplateColumn HeaderText="Actual Value Date" SortExpression="ActualValueDate" HeaderStyle-Width="60px" >
                              <ItemTemplate>
                                 <asp:Label Id="LblActualValueDate" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ActualValueDateString")%>' />
                              </ItemTemplate>
                              <EditItemTemplate>
                                     <telerik:RadDatePicker ID="DatActualValueDate" runat="server" Width="140px" Enabled="true"
                              AutoPostBack="false" DateInput-EmptyMessage="" MinDate="01/01/2010" MaxDate="01/01/2100" Culture='<%# preferredCulture %>' >
                               
                                      <Calendar runat="server">
                                          <SpecialDays>
                                              <telerik:RadCalendarDay Repeatable="Today" ItemStyle-CssClass="rcToday" />
                                          </SpecialDays>
                                      </Calendar>
                                  </telerik:RadDatePicker>
                                   <asp:Label runat="server" ForeColor="red" Id="LblErrorActualValueDate" />
                              </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                                 </Columns>
                  </MasterTableView>
              </telerik:RadGrid>
             <br />
            
             
         </ContentTemplate>
          </telerik:RadWindow>
         
      </Windows>
  </telerik:RadWindowManager>
 

Bhupinder Singh
Top achievements
Rank 1
 answered on 15 May 2012
0 answers
112 views


Hi ,

This is Rathan am Using the telerik menu control its working in localsystem. But when i published in server styles not working .Please let me know.


Thank you in Advance.



Rathan
Top achievements
Rank 1
 asked on 15 May 2012
1 answer
126 views
I want to Implement File Explore from custom content provide . my provider us database table. how can in implement this .
Dobromir
Telerik team
 answered on 15 May 2012
1 answer
195 views
Hi All

I'm having some trouble with the DateTimePicker;
<telerik:RadDateTimePicker ID="dtpWhen" Width="200px" runat="server" AutoPostBackControl="Calendar">
    <TimeView ID="TimeView3" Interval="0:30" Columns="4" RenderDirection="Vertical" runat="server" />
    <Calendar>
        <SpecialDays>
            <telerik:RadCalendarDay Repeatable="Today" ItemStyle-BackColor="Pink" />
        </SpecialDays>
    </Calendar>
</telerik:RadDateTimePicker>

When I call dtpWhen.DbSelectedDate = i("uatWhen"), the date is set correctly per the database, but the time is always set to 12:00.

Debug.WriteLine(i("uatWhen")) gives 7/05/2012 10:48:59 AM as expected.

I've also tried setting the value using just .SelectedDate with no luck.

Does anyone see something I'm doing wrong?
Eyup
Telerik team
 answered on 15 May 2012
3 answers
186 views
I have two combo boxes, where second are loading/reloading by selected item from first.
I am using OnClientSelectedIndexChangingand  and OnClientItemsRequested to make dependency this two combos.
After selecting item from first combo, second combo doesn't expand when I click on him.
But if I click anywhere else and then on second combo it expand.
This was working till last update of telerik.

Any idea to solv this?
Thank you
Princy
Top achievements
Rank 2
 answered on 15 May 2012
3 answers
204 views
Hi,

I am new to Entity framework 4.0 combine with telerik and I want your help please. I have a grid which is bind to Users entity. All users are assigned to a role (administrator,manager....e.t.c). The relation is many to one. On the grid I manage to displayed the users with all the necessary information including the roles. The user role is displayed inside the grid having a radcombobox and using a separate entitydatasource to fetch all the availble roles exists in database.
- My first problem is that the "role" comboBox doesn't select the correct value each user has during grid load(the first item is always selected).
- Second main problem is that if I want to update a record no changes are applied to the selected record(nothing happens).

Sample code below:
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True"
        AllowPaging="True" AllowSorting="True" AllowAutomaticUpdates="True" AllowAutomaticInserts="True"
            AllowAutomaticDeletes="True" AutoGenerateDeleteColumn="True"
        AutoGenerateEditColumn="True" DataSourceID="EntityDataSource1">
    <MasterTableView AutoGenerateColumns="False" DataKeyNames="ID"
                DataSourceID="EntityDataSource1" CommandItemDisplay="Top">
    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
    <HeaderStyle Width="20px"></HeaderStyle>
    </RowIndicatorColumn>
    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
    <HeaderStyle Width="20px"></HeaderStyle>
    </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn DataField="NAME"
                FilterControlAltText="Filter NAME column" HeaderText="NAME"
                SortExpression="NAME" UniqueName="NAME">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="SURNAME"
                FilterControlAltText="Filter SURNAME column" HeaderText="SURNAME"
                SortExpression="SURNAME" UniqueName="SURNAME">
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn DataField="ROLE_ID" DataType="System.Int32"
                FilterControlAltText="Filter ROLE_ID column" HeaderText="ROLE_ID"
                SortExpression="ROLE_ID" UniqueName="ROLE_ID">
                <EditItemTemplate>
                    <asp:EntityDataSource ID="roleDS" runat="server"
                        ConnectionString="name=TestDbEntities" DefaultContainerName="TESTDbEntities"
                        EnableFlattening="False" EntitySetName="ROLE" Select="it.[ID], it.[NAME]">
                    </asp:EntityDataSource>
                    <telerik:RadComboBox ID="ROLE_IDComboBox"   runat="server" DataSourceID="RoleDS" DataTextField="NAME" DataValueField="ID">
                    </telerik:RadComboBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="ROLE_IDLabel" runat="server" Text='<%# Eval("ROLE_ID") %>'></asp:Label>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    <EditFormSettings>
    <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
    </EditFormSettings>
    </MasterTableView>
    <FilterMenu EnableImageSprites="False"></FilterMenu>
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
</telerik:RadGrid>
     
<asp:EntityDataSource ID="EntityDataSource1" runat="server"
ConnectionString="name=TestDbEntities" DefaultContainerName="TESTDbEntities"
EnableDelete="True" EnableFlattening="False" EnableInsert="True"
EnableUpdate="True" EntitySetName="USER">
</asp:EntityDataSource>


Can you provide me an example using entity framework with grid having many to one relation records. I can't find any examples.

Thanks in advance
Daniel
Telerik team
 answered on 15 May 2012
3 answers
137 views
Hello,
I noticed this change here: http://www.telerik.com/products/aspnet-ajax/whats-new/release-history/q2-2011-version-2011-2-712.aspx

We were previously using this property so that our insert item would show at all times.  In this case, our RadListView should have the InsertItemTemplate exposed at all times but after upgrading from the Q1 to Q2 release, the fix which disables this behavior in Q2 changes the way the ListView control performs.  What is the recommended way to always show the InsertItemTemplate?  We have several pages which are using several instances of the RadListView control, all of which we want the InsertItem available at all times.

Thanks,
Ben
Peter
Top achievements
Rank 1
 answered on 15 May 2012
2 answers
122 views

I have used a RadTreeView control in an aspx page, where the Root element has been associated an "Add " context menu.

While the ContextMenuItemClick event is fired on the server side when viewed from Opera 11, Firefox 11, Chrome 17, Internet Explorer 8, it does not fire when viewed from Internet Explorer 9 - it only adds a # tag at the end of the URL and no PostBack is executed.

I have tried to set the PostBack property of the Context menu item to true, to false - to no avail.

Please let me know if there is something that I am missing.

Thank you.
Zoltan

PS. Below is the mark-up used in my page:

<telerik:RadTreeView ID="CollectiveNameTree" runat="server"
    EnableDragAndDrop="true"
    EnableDragAndDropBetweenNodes="true"
    MultipleSelect="false"
    EnableViewState="true"
    OnNodeEdit="CollectiveNameTree_NodeEdit"
    OnClientNodeEditing="onClientNodeEditing"
    OnNodeDrop="CollectiveNameTree_HandleDrop"
    OnClientContextMenuItemClicking="onClientContextMenuItemClicking"
    OnClientContextMenuShowing="onClientContextMenuShowing"
    OnClientDoubleClick="onClientNodeDoubleClicking"
    OnClientNodeDragStart="onClientNodeDragStart"
    OnClientNodeDropping="onClientNodeDropping"
    OnClientNodeDragging="onClientNodeDragging"
    >
    <WebServiceSettings Path="~/WebServices/Substances.asmx" Method="GetTreeViewCategories" />
    <Nodes>
        <telerik:RadTreeNode Text="<%$ Resources:Buttons,ClassificationsRootNodeTitle %>" PostBack="true"
            Expanded="false" ExpandMode="WebService" Value="1" ContextMenuID="RootContextMenu" />
    </Nodes>
    <ContextMenus>
        <telerik:RadTreeViewContextMenu ID="RootContextMenu" runat="server">
            <Items>
                <telerik:RadMenuItem Value="AddClassification"
                    Text="<%$ Resources:Buttons,AddClassification %>" />
            </Items>
        </telerik:RadTreeViewContextMenu>
    </ContextMenus>
</telerik:RadTreeView>

 

Zoltan
Top achievements
Rank 1
 answered on 15 May 2012
10 answers
394 views
I am trying to dynamically resize the grid to fill an area on the screen when the user resizes the browser.
In order to determine the 'GridData' area, I need to know the height of the static header row ('GridHeader').
When I create the control, the height is always 20.
Once I resize the browser, the header height is 33. 
Why the difference and how can I get the 33 when the control is created?

Thanks,
Eric
wnl
Top achievements
Rank 1
 answered on 15 May 2012
3 answers
73 views
After upgrading to the recent build we have noticed a problem with spaces being stripped on paste (somewhat randomly)

We are able to duplicate the problem in our system AND on your demo.

Browser: Chrome 18.0.1025.168 m
Build: Telerik.Web.UI_2012_1_411_Dev_hotfix

If you paste the following content directly from a word doc (or Outlook email)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec elementum vehicula condimentum. Vivamus sed neque arcu. Proin mattis tristique ante, ac tincidunt sem vulputate sed. Vestibulum et elit ac lorem sagittis blandit a vitae dui. Sed aliquet fermentum pulvinar. Nunc erat ante, euismod sit amet blandit pulvinar, semper sed orci. Pellentesque egestas tempus magna, vitae interdum dui feugiat a. Duis a vestibulum arcu. Nam arcu turpis, fringilla in consectetur pulvinar, hendrerit sed sem. Phasellus id sem odio. Nam quis ante lectus. In non sapien vitae turpis pulvinar congue. Ut porta auctor nisl non hendrerit. Proin eget odio at nibh faucibus laoreet.


Some words lose the spaces between them.  For example "Donec elementum vehicula" goes to "Donec elementumvehicula"

Pasting into THIS editor (the forum) works fine.  Pasting into the demo (http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx) the problem exists.

The editor on the demo alerts me if I'd like to strip formatting. If I say yes, the problem exists.  If I say cancel, it pastes ok.

Reverting to the previous build in our app resolved the problem.  I notice it doesn't always occur depending on where I paste from.  But it can be duplicated every time by pasting from word. Its just pasting directly from Word into the demo editor.

Thanks for any input you can provide.
Rumen
Telerik team
 answered on 15 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?