Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
177 views
I am currently implementing an application using the trial version of Telerik in hopes to see if it can fit our needs. I have a question/issue. I need to show the user a plan layout of appointments along with current appointments. Whenever these 2 conflict they appear side by side. Is there any way to merge them or combine them into 1 section. Even better can I set the overlapping section a different color.
For example the plan is 2-5, so that block shows blue. The appointment created is 3-6, so 2-3 is blue, 3-5 is green, 5-6 is red.
In other words I want to indicate the difference in the plan vs schedule.
Gopi
Top achievements
Rank 1
 answered on 20 Sep 2017
1 answer
112 views

Had an issue where a column converted from a text column to a dropdownlist column would display fine and update/insert fine as a text column but when converted to a dropdownlist (for the edit/insert form), the renderd 'grid' would not reflect the underlying value in the database, but would allow selection and would update the underlying database when in the edit/insert mode.  Other fields converted from text to dropdown list in the same grid would behave fine.  I traced this error back to the underlying column definition in the database.  The misbehaving column was defined as char(10) and the working columns were varchar(10).  When I converted the underlying column with the issue to varchar(10), the issue was resolved.

Just an FYI.

Eyup
Telerik team
 answered on 20 Sep 2017
3 answers
136 views

Greetings,

As per a previous ticket, in a page we're disabling the ability for users to change the expressions in a radfilter, other than the values and the condition type (contains, starts with, etc).

To do that, we're using, as suggested, in the ExpressionItemCreated event the code:

if (e.Item is RadFilterGroupExpressionItem)
                {
                    RadFilterGroupExpressionItem groupItem = e.Item as RadFilterGroupExpressionItem;
                    groupItem.RemoveButton.Visible = (sender as RadFilter) == FilterChoice;
                    groupItem.AddExpressionButton.Visible = (sender as RadFilter) == FilterChoice;
                    groupItem.AddGroupExpressionButton.Visible = (sender as RadFilter) == FilterChoice;
                    groupItem.GroupOperationChooserLink.Enabled = (sender as RadFilter) == FilterChoice;
                }

                if (e.Item is RadFilterSingleExpressionItem)
                {
                    RadFilterSingleExpressionItem singleItem = e.Item as RadFilterSingleExpressionItem;
                    singleItem.FieldNameChooserLink.Enabled = (sender as RadFilter) == FilterChoice;
                    singleItem.RemoveButton.Visible = (sender as RadFilter) == FilterChoice;
                }

This was working perfectly until we've upgraded to the latest version (due to the security warning you sent). Since then, the dropdown to select the field name and to select And/Or are enabled, even though the code suffered no changes.

We really need to disable these options. Please advise. Thank you.

Best Regards,

Nuno Cabrinha

Marin Bratanov
Telerik team
 answered on 19 Sep 2017
6 answers
299 views
Is there a way to integrate the ImageEditor into the ASP.NET MVC?
Currently, we can use the Editor (Ajax) in ASP.NET MVC, but I can't find a way to integrate the ImageEditor in ASP.NET MVC.
Vessy
Telerik team
 answered on 19 Sep 2017
0 answers
144 views
How to update datasource of dropdownlist(without losing data which is present inside rag grid from) in rag grid based on index change of dropdown list which is present outside the radgrid?
rajat
Top achievements
Rank 1
 asked on 19 Sep 2017
2 answers
698 views
Hi,

In my Radgrid, i have a dropdownlist inside EditItemTemplate.

On change of ddlAxis, depending on its value i want to enable/disable cbIsSameAxis using javascript. Below is the code.

Pls suggest how to do this.
 
<telerik:GridTemplateColumn UniqueName="tcAxis" HeaderText="Axis">
                                                           <ItemTemplate>
                                                               <asp:Label ID="lblAxis" runat="server"></asp:Label>
                                                           </ItemTemplate>
                                                           <EditItemTemplate>
                                                               <asp:DropDownList ID="ddlAxis" runat="server">
                                                                   <asp:ListItem Text="--Select--" Value="--Select--"></asp:ListItem>
                                                                   <asp:ListItem Text="PrimaryB" Value="PrimaryB"></asp:ListItem>
                                                                   <asp:ListItem Text="PrimaryT" Value="PrimaryT"></asp:ListItem>
                                                                   <asp:ListItem Text="SecondaryT" Value="SecondaryT"></asp:ListItem>
                                                                   <asp:ListItem Text="SecondaryB" Value="SecondaryB"></asp:ListItem>
                                                               </asp:DropDownList>
                                                               <asp:RequiredFieldValidator ID="rfvAxis" runat="server" ErrorMessage="*" ControlToValidate="ddlAxis"
                                                                   InitialValue="--Select--"></asp:RequiredFieldValidator>
                                                           </EditItemTemplate>
                                                       </telerik:GridTemplateColumn>
                                                       <telerik:GridTemplateColumn UniqueName="tcIsSameAxis" HeaderText="Is Same Axis">
                                                           <ItemTemplate>
                                                               <asp:CheckBox ID="cbIsSameAxisDisplay" runat="server" Enabled="false" />
                                                           </ItemTemplate>
                                                           <EditItemTemplate>
                                                               <asp:CheckBox ID="cbIsSameAxis" runat="server" />
                                                           </EditItemTemplate>
                                                       </telerik:GridTemplateColumn>
rajat
Top achievements
Rank 1
 answered on 19 Sep 2017
0 answers
151 views

Aspx :

<telerik:GridDateTimeColumn DataField="StartDateTime" HeaderText="Start" DataType="System.DateTime" PickerType="DateTimePicker" />

 

VB :

Dim dteFrom As RadDateTimePicker = CType(item("StartDateTime").Controls(0), RadDateTimePicker)
 
dteFrom.SharedTimeView.TimeFormat = GetShortTimeFormat()
dteFrom.TimeView.TimeFormat = GetShortTimeFormat()
dteFrom.DateInput.DateFormat = GetShortDateFormat() + " " + GetShortTimeFormat()
dteFrom.DateInput.DisplayDateFormat = GetShortDateFormat() + " " + GetShortTimeFormat()
 
dteFrom.SharedTimeView.Interval = New TimeSpan(0, 15, 0)
dteFrom.SharedTimeView.Columns = 8

 

The Time Picker appears as a huge list of 8 x 12 times for selection.

Is there an option to have a Hour selector, and a Minute selector?

Seems there is a workaround for a RadDateTimePicker :

    http://www.telerik.com/forums/raddatetimepicker-select-seperate-hours-and-time

How can I hook this into the GridDateTimeColumn?

 

Ben
Top achievements
Rank 1
 asked on 19 Sep 2017
0 answers
51 views
I have a fairly standard grid, nothing fancy. My company made our own custom control derived from the RadGrid. So the example I'm providing will reflect that. 

<Efficio:EfficioGridView runat="server" ID="grdIncrease" AllowSorting="True" RetainDataInViewState="True">
    <MasterTableView Width="100%">
        <Columns>
            <Efficio:EfficioGridTemplateColumn HeaderText="Account" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" SortExpression="AdvertiserName">
                <ItemTemplate>
                    <asp:HyperLink CssClass="ListLineCEL" ID="lnkAdvertizer" NavigateUrl='<%# "/Efficio/Account/AccountSummary.aspx?aid=" + DataBinder.Eval(Container.DataItem, "advertiserguid") %>' Text='<%# DataBinder.Eval(Container.DataItem, "advertisername") %>' runat="server" />
                </ItemTemplate>
            </Efficio:EfficioGridTemplateColumn>
            <Efficio:EfficioGridTemplateColumn HeaderText="This Year" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" SortExpression="ThisYearAmount" DataType="System.Int32">
                <ItemTemplate>
                    <%# Common.Utilities.FormatMoney(Convert.ToString(DataBinder.Eval(Container.DataItem, "ThisYearAmount")), true)%>
                </ItemTemplate>
            </Efficio:EfficioGridTemplateColumn>
            <Efficio:EfficioGridTemplateColumn HeaderText="Last Year" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" SortExpression="LastYearAmount" DataType="System.Int32">
                <ItemTemplate>
                    <%# Common.Utilities.FormatMoney(Convert.ToString(DataBinder.Eval(Container.DataItem, "LastYearAmount")), true)%>
                </ItemTemplate>
            </Efficio:EfficioGridTemplateColumn>
            <Efficio:EfficioBoundDifferenceColumn HeaderText="$ Diff" DataField="DiffAmount" SortExpression="DiffAmount" DifferenceType="Money" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" DataType="System.Int32">
            </Efficio:EfficioBoundDifferenceColumn>
            <Efficio:EfficioBoundDifferenceColumn HeaderText="% Diff" DataField="PercentAmount" SortExpression="PercentAmount" DifferenceType="Percentage" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" DataType="System.Int32">
            </Efficio:EfficioBoundDifferenceColumn>
        </Columns>
    </MasterTableView>
</Efficio:EfficioGridView>

In my code behind, I'm using mobile detection and enabling all the standard stuff for frozen columns:

if (State.IsMobileDevice(Page.Request.UserAgent))
{
    grdIncrease.ClientSettings.Scrolling.AllowScroll = true;
    grdIncrease.ClientSettings.Scrolling.UseStaticHeaders = true;
    grdIncrease.ClientSettings.Scrolling.FrozenColumnsCount = 1;
    grdIncrease.MasterTableView.TableLayout = GridTableLayout.Fixed;
    grdIncrease.HeaderStyle.Width = 200;
}

The end result is this. The scrollbar at the bottom scrolls through the locked columns as expected. But when I drag or swipe within the grid body, the static headers don't move at all and the frozen columns do not stay frozen. Its like the grid content is scrolling around in the direction I drag or swipe my finger and does not stay lined up with the headers at all. 

Thomas
Top achievements
Rank 1
 asked on 18 Sep 2017
0 answers
133 views

I am seeing this error message when I run my Visual Studio 2015 web application, plus several of my web controls are not recognized element when I drag and drop them on my page.  Error message is

There was a conflict between "Telerik.Web.UI, Version=2012.3.1308.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" and "Telerik.Web.UI, Version=2015.1.401.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

What is the proper way to correct this situation?

 

Perry
Top achievements
Rank 1
 asked on 18 Sep 2017
5 answers
178 views

I have a grid which use Header Context Menu. Filtering option is not working with DateTime Fields

 

<telerik:RadGrid RenderMode="Lightweight" ID="itinerariosGrid" runat="server" AutoGenerateColumns="False" EnableEmbeddedSkins="false" Skin="telerikbootstrap"
                    AllowFilteringByColumn="True" AllowSorting="True" AllowPaging="True" Culture="es-MX" FilterType="HeaderContext" EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true"
                    AllowMultiRowSelection="True" AllowAutomaticUpdates="False" AllowAutomaticInserts="False" OnItemDataBound="itinerariosGrid_ItemDataBound"
                    OnNeedDataSource="itinerariosGrid_NeedDataSource" AllowAutomaticDeletes="false" EnableLinqExpressions="false"            
                    OnInsertCommand="itinerariosGrid_InsertCommand" OnUpdateCommand="itinerariosGrid_UpdateCommand" OnDeleteCommand="itinerariosGrid_DeleteCommand">

Eyup
Telerik team
 answered on 18 Sep 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?