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

Sirs:

I'm trying to dynamically set the font color in the TileList PeekTemplate. The code that I'm using is below (and it works), but Visual Studio generates 7 warning for the syntax. Is there a better way? I can't seem to access that property in the TileDataBound event.

<telerik:RadTileList runat="server" ID="RadTileList1" TileRows="1" >
    <DataBindings>
        <CommonTileBinding  TileType="RadTextTile" DataNavigateUrlField="NavigateUrl"  />
        <TextTileBinding  DataTextField="Module_Name"    />
        <TilePeekTemplate  >
            <div style="font-size:20px; width:150px;color:<%# DataBinder.Eval(Container.DataItem, "TileColor") %>">
                <div><%# DataBinder.Eval(Container.DataItem, "ModuleID") %></div>
                <div style="font-size:14px"><%# DataBinder.Eval(Container.DataItem, "NumberOfTables") %></div>
 
            </div>
        </TilePeekTemplate>
 
    </DataBindings>
</telerik:RadTileList>       

 

 

Marin Bratanov
Telerik team
 answered on 07 Sep 2016
1 answer
146 views

Hi,

We are using Telerik Rad Controls in SharePoint Visual Webpart.

Any telerik controls either it could be a radbutton or radtabs . After the First Load of the page, when clicked on button or tab the page will post back and the ajax is not working.

However after the postback, ajax seems to start working. Its consistent across all the control where there is a postback event.

How to solve this issue ? As simple sample to solve this issue in SharePoint 2013 will help.

Please advise

 

Stanimir
Telerik team
 answered on 07 Sep 2016
1 answer
287 views
Hi,

I am trying to implement 3 buttons to filter a templated column in a nested grid.
So i have my buttons. I can find the column. I had the filter. I rebind .. but No filter is apply .
<telerik:GridTableView  runat="server" DataSourceID="LDS" Name="PRD" AutoGenerateColumns="False" DataKeyNames="1,2,3"
    ShowHeader="false" HierarchyDefaultExpanded="true"  CommandItemDisplay="Top" >
    <ParentTableRelation> [...] </ParentTableRelation>
 
    <CommandItemTemplate>
        <telerik:RadButton ID="RadButton1" runat="server" Text="ClearFilter" CommandName="ClearFilter" OnClick="ClearFilter">
        <Icon PrimaryIconCssClass="rbCancel" />
        </telerik:RadButton>
 
        <telerik:RadButton ID="RadButton2" runat="server" Text="++++++++++++++" CommandName="Exp"  OnClick="CustomFilter">
        </telerik:RadButton>
 
        <telerik:RadButton ID="RadButton3" runat="server" Text="---------------" CommandName="No-Exp" OnClick="CustomFilter2">
        </telerik:RadButton>
    </CommandItemTemplate>
 
    <Columns>
        <telerik:GridTemplateColumn DataField="totaldone" HeaderText="totaldone" UniqueName="SuperFilter" >
        [...]
        </telerik:GridTemplateColumn>
    </Columns>

With in my code behind:
protected void CustomFilter(object sender, EventArgs e)
{
    dude(RG_BL.MasterTableView);
}
protected void dude(GridTableView gridTableView)
{
    GridItem[] nestedViewItems = gridTableView.GetItems(GridItemType.NestedView);
    foreach (GridNestedViewItem nestedViewItem in nestedViewItems)
    {// Let's find the grid
        foreach (GridTableView nestedView in nestedViewItem.NestedTableViews)
        {
            this.Label1.Text += nestedView.Name + "(" + nestedView.Items.Count + ")" + " | ";
            if (nestedView.Name == "PRD")
            {// Got the Grid
                nestedView.FilterExpression = string.Empty;
                foreach (GridColumn column in nestedView.Columns)
                {// The Column ?
 
                    if (column is GridTemplateColumn && column.UniqueName == "SuperFilter")
                    {// Here.
                        GridTemplateColumn myColumn = column as GridTemplateColumn;
 
                        myColumn.CurrentFilterFunction = GridKnownFunction.GreaterThan;
                        myColumn.CurrentFilterValue = "0";
                    }
                }
                nestedView.Rebind();
            }
            if (nestedView.HasDetailTables)
            { dude(nestedView); }
        }
    }
}

I must have miss Something, If you have any idea.

Regards,
Pierre
Kostadin
Telerik team
 answered on 07 Sep 2016
7 answers
273 views
I have a RadWindow inside a RadWindowManager (with NavigateUrl) that closes really slow but only in Internet Explorer (including 11). It only occurs when the window is maximized. The problem becomes very noticeable when there are many grid items in the window. Closing takes up to 15-20 seconds. Profiling shows that the offsetWidth function in IE takes a really long time. Chrome and Firefox are instant.

I tried many configuration options and it seems that the only way to solve this issue is by not having the window maximized. Also, if I just delete the window manually, everything works quickly. Setting DestroyOnClose = true does not solve this problem either. What are the extra calculations that are happening on close event? Is there a way to avoid them?
Stamo Gochev
Telerik team
 answered on 07 Sep 2016
3 answers
75 views

I have a GridTemplateColumn with RadEditor, but when i try insert new post or update a post it will not be insert/updated in Internet Explorer 11 version 11.545.

It be insert/updated in IE Edge, Chrome and Firefox, not in IE 11?

Use SqlDataSource......

<telerik:GridTemplateColumn UniqueName="artikel" SortExpression="artikel" HeaderText="Artikel" HeaderStyle-Width="0px">
    <EditItemTemplate>
        <telerik:RadEditor ID="RadEditor1" Skin="Office2010Silver" ToolsFile="Toolbar.xml" Content='<%# Bind("artikel") %>' Width="670px" Height="300px" EnableResize="False" runat="server" />
    </EditItemTemplate>
</telerik:GridTemplateColumn>

Kostadin
Telerik team
 answered on 07 Sep 2016
3 answers
122 views
Hi, I am using a Time picker in my web form. The time selected is bounded  with a column in the back-end database of the data type time.

When the comparison between the time selected from web app and the column of the data type time in the database, the web app gives me an error indicating that "The data types time and datetime are incompatible". I have noticed that time picker has a data type of date and time together which is making this problem.


any solution for that?
Regards. 
Konstantin Dikov
Telerik team
 answered on 07 Sep 2016
3 answers
163 views

When using a RadTimePicker in a RadGrid (in a EditItemTemplateColumn), I'm getting Nothing for the RadTimePicker.SelectedTime object when updating.  

Thanks!

Here is my RadGrid:

<telerik:RadGrid runat="server" ID="grdScheduleBook" AllowSorting="True" AllowPaging="True" PageSize="15" AutoGenerateColumns="False"
            OnNeedDataSource="grdScheduleBook_NeedDataSource" RenderMode="Lightweight" HeaderStyle-Font-Size="X-Small" ItemStyle-Font-Size="X-Small" Height="800px">
            <MasterTableView EditMode="InPlace">
                <Columns>
                    <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" HeaderText="Pick Time" UniqueName="PickTime"  HeaderStyle-Width="100px">
                        <EditItemTemplate>
                            <telerik:RadTimePicker ID="RadTimePicker1" runat="server" Skin="Default" Width="88px">
                            </telerik:RadTimePicker>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server"></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridEditCommandColumn>
                    </telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn UniqueName="Group" DataField="Group" HeaderText="Group" ReadOnly="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="Payroll" DataField="Payroll #" HeaderText="Payroll #" ReadOnly="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="LastName" DataField="Last Name" HeaderText="Last Name" ReadOnly="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="FirstName" DataField="First Name" HeaderText="First Name" ReadOnly="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="MI" DataField="MI" HeaderText="MI" ReadOnly="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="SeniorDate" DataField="Senior Date" HeaderText="Senior Date" ReadOnly="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="Sequence" DataField="Seq" HeaderText="Sequence" ReadOnly="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="DeptLoc" DataField="Dept #/ Location" HeaderText="Dept/Location" ReadOnly="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="JobCode" DataField="Job Code" HeaderText="Job Code" ReadOnly="True">
                    </telerik:GridBoundColumn>
                </Columns>
 
                <EditFormSettings>
                    <EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column"></EditColumn>
                </EditFormSettings>
            </MasterTableView>
 
            <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
 
            <ClientSettings AllowColumnsReorder="True" Resizing-AllowColumnResize="true" ReorderColumnsOnClient="True">
                <Selecting AllowRowSelect="True" />
                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                <ClientEvents OnBatchEditOpening="OnBatchEditOpening" />
                <Resizing AllowColumnResize="True"></Resizing>
            </ClientSettings>
 
            <HeaderStyle Font-Size="Small" Font-Bold="True"></HeaderStyle>
 
            <ItemStyle Font-Size="Small"></ItemStyle>
 
            <FilterMenu RenderMode="Lightweight"></FilterMenu>
 
            <HeaderContextMenu RenderMode="Lightweight"></HeaderContextMenu>
        </telerik:RadGrid>

RadGrid_UpdateCommand:

Protected Sub grdScheduleBook_UpdateCommand(sender As Object, e As GridCommandEventArgs) Handles grdScheduleBook.UpdateCommand
        Dim dataItem As GridEditableItem = TryCast(e.Item, GridEditableItem)
        Dim timePicker As RadTimePicker = CType(e.Item.FindControl("RadTimePicker1"), RadTimePicker)
        Dim time As String = timePicker.SelectedTime.ToString()
        Dim row As DataRowView = dataItem.DataItem
        Dim sql As String
        Dim payroll As String = row.Row.ItemArray(1)
        Dim pickTime As String = Format(time.ToString(), "Short Time")
        '...(sql command here)...
End Sub

Timothy
Top achievements
Rank 1
 answered on 06 Sep 2016
19 answers
132 views

We have a RadTreeList that is inside an ASP.NET control.  On the Page_PreRender of the control we are resetting the selected item (TreeListName.Items[0].Selected = true). 

However, when we select something, navigate away from the page, and then back to the page the selected item is getting reset at some point to the selection that it was prior to navigating away.  This occurs despite the fact the the selection is getting forced in the PreRender event.

I believe this has something to do with Ajax and/or ViewState.  I tried turning off ViewState for the control using EnableViewState = false but the control did not render even though we are using the NeedDataSource event and there was a collection assigned to the DataSource within that event.  We have always used NeedDataSource so we know that it works when ViewState is enabled.

Do you have any suggestions or advice?

 

Thank you.

Tim
Top achievements
Rank 1
 answered on 06 Sep 2016
8 answers
358 views
After a security update for Microsoft Excel 2010 (KB3115322) which was released on 12 July 2016 documents using HTML based Excel format could not be opened. There is already an open discussion in Microsoft Community forums and we hope the issue will be resolved soon. Meanwhile the possible solutions are to either uninstall the update or uncheck Enable Protected View for files originating from the Internet option from Options -> Trust Center -> Trust Center Settings -> Protected View in Excel. Another option is to use some of the other Excel formats where this issue could not be observed.

Update (August 2016)

You can find below the official announcement by the Microsoft Excel Support Team about this matter and its Resolution:
Excel Workbooks may not open after installing MS16-088

Here is another reference:
KB3170008 for Office 2016 Breaks Functionality - MS16-088

Andrew
Top achievements
Rank 1
 answered on 06 Sep 2016
3 answers
143 views

how can I save map as an image on my server?

I would like a openstreet map of a location with a marker that I can save as a jpg or png.

Marty

Rumen
Telerik team
 answered on 06 Sep 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?