Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
109 views
I want to localize scheduler for Persian or Arabic Calendar. Has anyone any idea?
Peter
Telerik team
 answered on 15 May 2012
3 answers
65 views
Hi everybody,

Iam starting this thread cause I couldnt find any answer to my problem in Google or this forum or somewhere else.
description:
I have got 3 Grids on my Page and want to drag a Item from Grid A and drop it on Grid B:
Grid A: source of drag
Grid B: target of drop
Grid C: test target of drop

My Grid C is an empty Grid without any special settings. Grid A is my source where I have some contact items listed. Grid B is wrapped into a telerik:RadAjaxPanel.
If I drag an item from Grid A and drop it on Grid C the eventargs in the codebehind in OnRowDrop looks like this:
? e
{Telerik.Web.UI.GridDragDropEventArgs}
    base {System.EventArgs}: {Telerik.Web.UI.GridDragDropEventArgs}
    DestDataItem: {Telerik.Web.UI.GridDataItem}
    DestinationGrid: {DotNetNuke.Web.UI.WebControls.DnnGrid}
    DestinationTableView: {Telerik.Web.UI.GridTableView}
    DraggedItems: Count = 1
    DropPosition: Above
    HtmlElement: ""

If I drag an item from Grid A and drop it on Grid B the eventargs looking like:
? e
{Telerik.Web.UI.GridDragDropEventArgs}
    base {System.EventArgs}: {Telerik.Web.UI.GridDragDropEventArgs}
    DestDataItem: null
    DestinationGrid: null
    DestinationTableView: null
    DraggedItems: Count = 1
    DropPosition: Above
    HtmlElement: "undefined"

This is only caused by the telerik:RadAjaxPanel if I remove the ajaxpanel it will work like in the first drag drop.
I alrdy read documentations here on telerik.com and looked into demos but couldnt find any answer to my problem.
I thought something about using the OnDragging method on client side to determine if the destination is wrapped by a telerik:RadAjaxPanel and react on this. For example setting the eventarg properties and filling it with the correct data on client side. (But this is just a guess I couldnt get it working)

It would be awesome if someone could help me with this problem.

best regards, noone.
Daniel
Telerik team
 answered on 15 May 2012
1 answer
57 views
Hi,

I am using a Rad Shared Calendar in edit item template of a Rad Grid. I have implemented the solution exactly like you have shown it in your demo, with the same textbox and javascript. It is showing the correct selected value, but in Updated event of RadGrid it is always giving the me old value of textbox. Can you tell me how to get the new selected value in code behind from the text box?
Bhupinder Singh
Top achievements
Rank 1
 answered on 15 May 2012
4 answers
185 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
87 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
107 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
146 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
164 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
173 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
118 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
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?