Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
72 views
Check out the screen shot.  I am getting a weird behavior on my radgrids when the web application is viewed through Citrix via a thin client.

The screen shot is on a grid that has client scrolling, but the same affect is happening on grids that do not have the client scrolling.

The users browser in Citrix is IE9.  IE9 on my pc works fine. Seems fine through Citrix on my PC, but maybe an issue on the thin client.  Any help would be great.


Konstantin Dikov
Telerik team
 answered on 08 Oct 2013
2 answers
103 views
Hi,

I've encountered a problem recently when a text is copied from MSWORD to telerik editor. This behaviour is only observed in Mozilla.

I've created a table in msword and copied the table to the telerik rad editor. So, when table is copied i've observed that an additional tag in style called "border-image:none" is being displayed. This is only displaying in Mozilla, where as in Chrome the tag is not visible when pasted the same content. The content from this editor is being validated against a dtd. So, the process fails because of the border-image tag

Finally i got up to the demos of telerik site to make sure if this thing is working or not. I've copied the same table from word to the demos page in telerik site i've observed that the tag is being visible for Mozilla firefox even in the telerik site.

Create a table as is in the sample.png image that i've atattched in this post. Now open mozilla browser and chrome browser copy the following url:

http://demos.telerik.com/aspnet-ajax/editor/examples/cleaningwordformatting/defaultcs.aspx

Now paste the created table in to the editors of both the browsers. Also i've atattched the screenshots for both the browsers.

Can anyone please suggest any approach for doing this.

Thanks
Karthik
Top achievements
Rank 1
 answered on 08 Oct 2013
1 answer
69 views
Hello,

Using the RadAsync Upload and it's failing for some IE10s. (Red Dot after Upload).
Forms Authentication.
Location specific authorization for Telerik.Web.UI.WebResource.axd.
Windows8 Client
IE10 browser only fails. -- Some client systems with IE10 succeed.

Any help would be appreciated
Hristo Valyavicharski
Telerik team
 answered on 08 Oct 2013
1 answer
184 views

Hi,

How to strike out a value of a column based on some conditions. Anyone can show me a sample?

Thanks,
Dawson.
Shinu
Top achievements
Rank 2
 answered on 08 Oct 2013
2 answers
179 views
I currently load a RadTreeView via an XML file inside a RadPanelBar and as I get the data to load just fine many of the scrollbars to not show.  How can I get these to show if needed. 

Attached is an image of the scrollbars not showing, now if the RadPanelItem that needs to have the scrollbars is active and there is a postback, they will appear.
<telerik:RadPanelBar ID="RadPanelBar1" Runat="server" ExpandMode="FullExpandedItem" Height="700px" Width="280px">
     <Items>
         <%--<!-- DEFAULT TABS FOR EITHER FMS OR POLICYHOLDER -->--%>
         <telerik:RadPanelItem Expanded="true" text="Favorites" Visible="true">
             <ContentTemplate>
                 <telerik:RadTreeView ID="_rtvwFavorites" runat="server" DataSourceID="XmlDataSource4" CheckBoxes="True" CheckChildNodes="True" TriStateCheckBoxes="False"  >
                         <DataBindings>
                             <telerik:RadTreeNodeBinding DataMember="Node" TextField="Text" ExpandedField="Expanded" Checked="True" ValueField="ID"></telerik:RadTreeNodeBinding>
                         </DataBindings>
                 </telerik:RadTreeView>
                 <asp:XmlDataSource ID="XmlDataSource4" runat="server" DataFile="~/Common/FavoritesTree.xml" XPath="/Favorites/Node"></asp:XmlDataSource>
             </ContentTemplate>
         </telerik:RadPanelItem>
         <telerik:RadPanelItem Text="Credit Union" Visible="true">
             <ContentTemplate>
                 <telerik:RadTreeView ID="_rtvwCreditUnion" runat="server" DataSourceID="XmlDataSource3" CheckBoxes="True" CheckChildNodes="True" TriStateCheckBoxes="False"  >
                         <DataBindings>
                             <telerik:RadTreeNodeBinding DataMember="Node" TextField="Text" ExpandedField="Expanded" ValueField="ID"></telerik:RadTreeNodeBinding>
                         </DataBindings>
                 </telerik:RadTreeView>
                 <asp:XmlDataSource ID="XmlDataSource3" runat="server" DataFile="~/Common/CuInfoTree.xml" XPath="/CUInfo/Node"></asp:XmlDataSource>
             </ContentTemplate>
         </telerik:RadPanelItem>
         <telerik:RadPanelItem Text="Financial" Visible="true">
             <ContentTemplate>
             <telerik:RadTreeView ID="_rtvwFinancialList" Runat="server"
                         DataSourceID="XmlDataSource1" CheckBoxes="True" CheckChildNodes="True" TriStateCheckBoxes="False"  >
                         <DataBindings>
                             <telerik:RadTreeNodeBinding DataMember="Node" TextField="Text" ExpandedField="Expanded" ValueField="ID"></telerik:RadTreeNodeBinding>
                         </DataBindings>
             </telerik:RadTreeView>
             <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/Common/FinancialTree.xml" XPath="/Financial/Node"></asp:XmlDataSource>
             </ContentTemplate>
         </telerik:RadPanelItem>
         <telerik:RadPanelItem Text="Ratio" Visible="True">
             <ContentTemplate>
             <telerik:RadTreeView ID="_rtvwRatioList" Runat="server"
                         DataSourceID="_RatioListData" CheckBoxes="True" CheckChildNodes="True" TriStateCheckBoxes="False"  Visible="True">
                         <DataBindings>
                             <telerik:RadTreeNodeBinding DataMember="Node" TextField="Text" ExpandedField="Expanded" ValueField="ID"></telerik:RadTreeNodeBinding>
                         </DataBindings>
             </telerik:RadTreeView>
             <asp:XmlDataSource ID="_RatioListData" runat="server" DataFile="~/Common/RatioTree.xml" XPath="/Ratio/Node"></asp:XmlDataSource>
             </ContentTemplate>
         </telerik:RadPanelItem>
         <%--<!-- END DEFAULT TABS -->
     </Items>
 </telerik:RadPanelBar>
Kurt Kluth
Top achievements
Rank 1
 answered on 08 Oct 2013
1 answer
62 views
 
     Hi,
          How can I access a no-record template from server side? Please share if anybody has an idea.

     thanks
     Allen
Shinu
Top achievements
Rank 2
 answered on 08 Oct 2013
2 answers
62 views
Hi,
i wanna when click on the item in radpanelbar to load grid according to this item but if i use paging or any thing in the grid require to click on this item again .
how can i solve this issue plz

Thanks!
Sahar
Top achievements
Rank 1
 answered on 08 Oct 2013
2 answers
109 views
Hi there
I am applying a filter in a radGrid on pre_Render, its works great, but when I add a date field, it doesn't bring any results.

Here is a example of what I am doing:
DateTime startDate = DateTime.Parse("2013-10-01");
uxBookOrderGrid.MasterTableView.FilterExpression = "(([StatusDescription] LIKE \'%Approved%\') AND ([TimeStamp] >= '" + startDate.ToString("g") + "'))";
uxBookOrderGrid.Rebind();
and the aspx
<telerik:GridDateTimeColumn  DataFormatString="{0:g}" DataType="System.DateTime" FilterControlWidth="90%" HeaderText="Date" DataField="TimeStamp" UniqueName="TimeStamp" />
It works great without the [TimeStamp] filter.

Any idea why this is not working?

Thank you.
Jako
Top achievements
Rank 1
 answered on 08 Oct 2013
1 answer
58 views
I have a RadGrid list of staff members that opens a web user control for editing. The edit control has a RadDatePicker for selecting a birthdate, and I set the control to today - 21 years when opened if the date picker control is blank. All of this was working fine until I added a RadAjaxManager and paging to my RadGrid. I can remove the RadAjaxManager code from the RadGrid and the OnPopupOpening event works again. Can't I have both ajax enabled paging and be able to set the default date.

Here is my ascx code for the RadGrid list control.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="uxStaffList">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="uxStaffList" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<cc1:IbsRadGridList ID="uxStaffList" runat="server"
    Factory="StaffFactory"
    AllowPaging="true"
    PageSize="20"
    DeleteButtonVisible="false">
    <MasterTableView DataKeyNames="StaffId">
        <EditFormSettings UserControlName="StaffEditControl.ascx" PopUpSettings-Width="940px" CaptionDataField="FullName"></EditFormSettings>
    </MasterTableView>
</cc1:IbsRadGridList>
Here are the relevant snippets from my edit control.
            ...
            <div class="control-group">
                <asp:Label ID="BirthDateLabel" runat="server" CssClass="control-label" AssociatedControlID="uxBirthDate">Birthday</asp:Label>
                <div class="controls">
                    <telerik:RadDatePicker ID="uxBirthdate" runat="server" MinDate="1/1/1913" ClientEvents-OnPopupOpening="setDefaultBirthDate"></telerik:RadDatePicker>
                </div>
            </div>
           ...
 
<script type="text/javascript">
    function setDefaultBirthDate(sender, e) {
        if (sender.isEmpty()) {
            var d = new Date();
            d.setFullYear(d.getFullYear() - 21);
            sender.set_selectedDate(d);
        }
    }
</script>
Konstantin Dikov
Telerik team
 answered on 08 Oct 2013
1 answer
76 views
On a "Save" command, I'm trying to update multiple edited rows on an Excel like grid, the columns of which look like this:
<Columns>               
    <telerik:GridNumericColumn DataField="CarID" DataType="System.Int32" HeaderText="ID"
        SortExpression="CarID" UniqueName="CarID" AutoPostBackOnFilter="true" CurrentFilterFunction="EqualTo" HeaderStyle-Width="100" ItemStyle-Width="100" FilterControlWidth="60" ReadOnly="false"/>
    <telerik:GridBoundColumn DataField="CarMake" DataType="System.String" HeaderText="Car Make"
        SortExpression="CarMake" UniqueName="CarMake" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" HeaderStyle-Width="120" ItemStyle-Width="120" FilterControlWidth="80" />
    <telerik:GridBoundColumn DataField="CarModel" DataType="System.String" HeaderText="Car Model"
        SortExpression="CarModel" UniqueName="CarModel" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" HeaderStyle-Width="120" ItemStyle-Width="120" FilterControlWidth="80" />
    <telerik:GridBoundColumn DataField="CarTrim" DataType="System.String" HeaderText="Car Trim"
        SortExpression="CarTrim" UniqueName="CarTrim" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" HeaderStyle-Width="200" ItemStyle-Width="200" FilterControlWidth="160"/>
    <telerik:GridNumericColumn DataField="CarYear" DataType="System.Int32" HeaderText="Car Year"
        SortExpression="CarYear" UniqueName="CarYear" AutoPostBackOnFilter="true" CurrentFilterFunction="EqualTo" HeaderStyle-Width="100" ItemStyle-Width="100" FilterControlWidth="60" />
</Columns>

Here's my "Save" command:
Case "Save"
    For Each editedItem As GridEditableItem In RadGridViewExcelGridTest.EditItems
        Dim newValues As Hashtable = New Hashtable
        'The GridTableView will fill the values from all editable columns in the hash
        e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem)
        SqlDataSourceExcelGridTest.UpdateCommandType = SqlDataSourceCommandType.StoredProcedure
        SqlDataSourceExcelGridTest.UpdateCommand = "spExcelGridTestUpdateTable"
        SqlDataSourceExcelGridTest.UpdateParameters.Add(New Parameter("CarID", DbType.Int32))
        SqlDataSourceExcelGridTest.UpdateParameters.Add(New Parameter("CarMake", DbType.String))
        SqlDataSourceExcelGridTest.UpdateParameters.Add(New Parameter("CarModel", DbType.String))
        SqlDataSourceExcelGridTest.UpdateParameters.Add(New Parameter("CarTrim", DbType.String))
        SqlDataSourceExcelGridTest.UpdateParameters.Add(New Parameter("CarYear", DbType.Int32))
        SqlDataSourceExcelGridTest.Update()
        editedItem.Edit = False
    Next

And my stored procedure looks like this:
ALTER PROCEDURE [dbo].[spExcelGridTestUpdateTable]
    -- Add the parameters for the stored procedure here
    @CarID int,
    @CarMake varchar(100),
    @CarModel varchar(100),
    @CarTrim varchar (100),
    @CarYear int
 
AS
BEGIN
    -- SET NOCOUNT ON added to prevent extra result sets from
    -- interfering with SELECT statements.
    SET NOCOUNT ON;
 
        UPDATE [dbo].[TestTable_Cars]
            SET CarMake=@CarMake, CarModel=@CarModel, CarTrim=@CarTrim, CarYear=@CarYear
            WHERE CarID=@CarID
 
END

The error that I'm getting is Procedure or function spExcelGridTestUpdateTable has too many arguments specified. Most folks getting this error seem to simply have a typo when it comes to one of the parameter names, but I've checked and everything seems to line up. If I execute the SP from SQLServer and provide the parameters (or pass NULL params), the SP runs fine.

UPDATE (10/4/2013 1:09PM): Adding this line before I start adding parameters prevents the error, but the table still doesn't get updated:
SqlDataSourceExcelGridTest.UpdateParameters.Clear()
Konstantin Dikov
Telerik team
 answered on 08 Oct 2013
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?