Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
52 views
Dear Telerik Team,

Do you have an example or demo for getting image from RadImageEditor on RadWindow and put on image ?

Thanks
Vessy
Telerik team
 answered on 05 Mar 2014
4 answers
183 views
hi,
radcombobox doesn't display properly on ie10
Magdalena
Telerik team
 answered on 05 Mar 2014
1 answer
93 views
With so many options provided by Telerik and possible framework decommissioning (like occurred with MVC extensions), what would be your general recommendations for a new administrative website in terms of:
- what Telerik UI to choose
- what type of VS project to use (website or web application)
- what other Telerik frameworks to use if any

The administrative website requirements are pretty standard:
- C# NET 4.5
- Direct data access with EF
- a lot of data manipulation (view, sorting, filtering, update etc)
- content editing
- sometimes presenting data with charts
- mostly for desktop clients with IE10+/Chrome
Marin Bratanov
Telerik team
 answered on 05 Mar 2014
1 answer
200 views

When using the latest DLL, I see some strange error on ie 11. The error will go away if I switch to ie 11 compatibility mode. But the it start to work fine after I installed the .net framework 4.5 on the server. My question is, if anyone know the UI for ASP.NET AJAX required .NET Framework 4.5 to be installed on the server in order for the application to work correctly with ie11?

Unable to get property ‘PageRequestManager’ of undefined or null reference
webform_doPostBack is undefined JavaScript error 

Slav
Telerik team
 answered on 05 Mar 2014
2 answers
847 views
Hello together,

I wanted to ask, what are the limitations after 30 days of the ASP extensions?
I'm using at the moment a Version from 2011 for a small hobby website/project (non.commercial!), where after a few clicks a "Telerik.Web.UI 2011.1.315.35 trial version. Copyright telerik © 2002-2011. To remove this message, please purchase a developer version." appears.
This is absoltly a fine restriction from my side.

I'm planning to update the site so .NET4 from .NET2 and add some features.

Is it still done in this way in the new Versions?
So that everything is working, just with some "advertise"?

Thank you!
Michael
Michael
Top achievements
Rank 1
 answered on 05 Mar 2014
1 answer
440 views
Hi,

I am trying to bind gridcolumn to sqldatasource through wizrard it is showing only grid name but not column details to add to parameter.
Please find my code.
Here is my aspx Page.
SystemID is the columnname in the grid that i need to set in sqldatasource.
<tr>
    <td class="td" width="100%" align="center">
        <table width="100%" align="center">
            <tr>
                <td class="td" width="100%" align="center">
                    <telerik:RadGrid ID="rgMunicipality" runat="server" GridLines="None" AllowPaging="True"
                        AllowAutomaticUpdates="True" AllowAutomaticInserts="True" AllowSorting="True"
                        Width="750px" CellSpacing="0" AutoGenerateColumns="False">
                        <%-- OnItemCommand="rgMunicipality_ItemCommand">--%>
                        <%-- OnUpdateCommand="rgMunicipality_InsertCommand"
                OnInsertCommand="rgMunicipality_InsertCommand">--%>
                        <PagerStyle Mode="NextPrev" />
                        <MasterTableView DataKeyNames="SystemID" CommandItemDisplay="Top" GridLines="None"
                            AllowAutomaticDeletes="False">
                            <%-- EditMode="InPlace"--%>
                            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn Visible="False">
                                <HeaderStyle Width="19px" />
                            </ExpandCollapseColumn>
                            <%--<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                    </ExpandCollapseColumn>--%>
                            <Columns>
                                <telerik:GridEditCommandColumn>
                                </telerik:GridEditCommandColumn>
                                <telerik:GridBoundColumn DataField="SystemID" HeaderText="SystemID" SortExpression="PriorityID"
                                    UniqueName="SystemID" Visible="False" MaxLength="5" FilterControlAltText="Filter SystemID column">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="SystemName" HeaderText="Name" SortExpression="SystemName"
                                    UniqueName="SystemName" FilterControlAltText="Filter SystemName column">
                                </telerik:GridBoundColumn>
                                 <telerik:GridDropDownColumn DataField="Manager" HeaderText="Manager"  ListValueField="ManagerID" ListTextField="Manager"
                                      EmptyListItemText="--Choose an option--" EmptyListItemValue=""
                                    UniqueName="Manager" SortExpression="Manager" DataSourceID="SQLDataSource6">
                                </telerik:GridDropDownColumn>
                                <telerik:GridCheckBoxColumn DataField="Enabled" DataType="System.Boolean" FilterControlAltText="Filter Enabled column"
                                    HeaderText="Enabled" SortExpression="Enabled" UniqueName="Enabled">
                                </telerik:GridCheckBoxColumn>
                            </Columns>
                            <EditFormSettings EditFormType="Template">
                                <FormTemplate>
                                    <table id="tblSystemEdit" runat="server" cellpadding="0" cellspacing="0" style="width: 100%;
                                        height: 100%;" border="0">
                                        <tr>
                                            <td valign="middle" style="height: 26px; background-color: #DDE1E6;" align="left"
                                                colspan="2">
                                                  <asp:Label ID="lblSubHeading" runat="server" CssClass="clsFormTemplateHeader"
                                                    Text="Details"></asp:Label>
                                            </td>
                                            <td style="width: 5px; text-align: right; background-color: #DDE1E6; height: 26px;"
                                                align="right">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td valign="top" style="width: 30px; height: 22px;">
                                            </td>
                                            <td valign="top" align="left">
                                                <table style="width: 310px; height: 70px; margin-left: 260px;" class="clsTestTable">
                                                    <tr>
                                                        <td style="text-align: right; width: 150px; height: 18px;">
                                                            <asp:Label ID="lblName" runat="server">Name</asp:Label>
                                                        </td>
                                                        <td style="width: 200px; text-align: left; height: 18px;">
                                                            <div style="float: left; padding-right: 5px">
                                                                <asp:TextBox ID="txtName" runat="server" MaxLength="50" Width="145px" Text='<%# Bind( "SystemName") %>'
                                                                    Rows="2"></asp:TextBox></div>
                                                            <asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="txtName"
                                                                ErrorMessage="Name is required" ValidationGroup="PersonalInfo">*</asp:RequiredFieldValidator>
                                                            <asp:TextBox ID="txtSystemID" runat="server" MaxLength="50" Width="145px" Text='<%# Bind( "SystemID") %>'
                                                                Visible="false"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 150px; height: 18px; text-align: right">
                                                            <asp:Label ID="lblManager" runat="server">Manager</asp:Label>
                                                        </td>
                                                        <td style="width: 200px; height: 18px; text-align: left">
                                                            <div style="float: left; padding-right: 5px">
                                                                <telerik:RadComboBox ID="ddlManager" runat="server" Width="144px" Skin="Default"
                                                                    EnableEmbeddedSkins="true" DataSourceID="SQLDataSource6" DataTextField="Manager"
                                                                    DataValueField="ManagerID" SelectedValue='<%# DataBinder.Eval(Container.DataItem, "Manager")%>'>
                                                                </telerik:RadComboBox>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 150px; height: 18px; text-align: right">
                                                            <asp:Label ID="lblEnabled" runat="server">Enabled</asp:Label>
                                                        </td>
                                                        <td style="width: 200px; height: 18px; text-align: left">
                                                            <div style="float: left; padding-right: 5px">
                                                                <asp:CheckBox ID="chkEnabled" runat="server" Checked='<%# If(IsDBNull(Eval("Enabled")), False, Eval("Enabled"))  %>' /></div>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                            <td>
                                                  
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" style="height: 40px; background-color: #DDE1E6; text-align: center;">
                                                <div id="Zone1">
                                                    <asp:Button ID="btnUpdate" Text='<%# If(CBool(DataBinder.Eval(Container, "OwnerTableView.IsItemInserted")), "Insert", "Update") %>'
                                                        runat="server" CausesValidation="True" CommandName='<%# If(CBool(DataBinder.Eval(Container, "OwnerTableView.IsItemInserted")), "PerformInsert", "Update") %>'
                                                        Width="145px" ValidationGroup="PersonalInfo" /> 
                                                    <asp:Button ID="btnCancel" runat="server" CausesValidation="False" CommandName="Cancel"
                                                        Text="Cancel" Width="145px" /></div>
                                            </td>
                                            <td style="background-color: #DDE1E6;">
                                                  
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td style="text-align: left">
                                                <asp:ValidationSummary ID="ValidationSummary2" runat="server" ValidationGroup="PersonalInfo"
                                                    Width="250px" DisplayMode="BulletList" />
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                    </table>
                                </FormTemplate>
                                <FormCaptionStyle BorderStyle="Solid" />
                                <FormStyle BackColor="#F2F2F2" BorderColor="#BEBEBE" BorderStyle="Solid" BorderWidth="1px" />
                            </EditFormSettings>
                        </MasterTableView>
                        <FilterMenu EnableImageSprites="False">
                            <WebServiceSettings>
                                <ODataSettings InitialContainerName="">
                                </ODataSettings>
                            </WebServiceSettings>
                        </FilterMenu>
                        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                            <WebServiceSettings>
                                <ODataSettings InitialContainerName="">
                                </ODataSettings>
                            </WebServiceSettings>
                        </HeaderContextMenu>
                    </telerik:RadGrid>
                </td>
            </tr>
            <tr>
                <td class="td">
                    <input type="hidden" name="item_list" />
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:IssueManagerConnectionString %>"
                            SelectCommand="Users_getUsersByDepartment" SelectCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:Parameter DefaultValue="1" Name="SystemID" Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </center>
                </td>
            </tr>
            <tr>
                <td class="td" align="center">
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                        ShowSummary="False" DisplayMode="List"></asp:ValidationSummary>
                    <div style="text-align: center; width: 100%">
                    </div>
                </td>
            </tr>
        </table>
    </td>
</tr>

Here is the my stored procedure.
ALTER PROCEDURE [dbo].[Users_getUsersByDepartment]
    @SystemID INT
AS
BEGIN
    -- SET NOCOUNT ON added to prevent extra result sets from
    -- interfering with SELECT statements.
    SET NOCOUNT ON;
 
     SELECT FirstName + LastName AS Manager,
     UserID AS ManagerID
     FROM IM_System a INNER JOIN Users_UserDetail b ON  a.SystemID=b.SystemID
     WHERE b.SystemID=@SystemID
END
Viktor Tachev
Telerik team
 answered on 05 Mar 2014
1 answer
79 views
Hi,
this is my 2nd request.I need to add to hmtl next to RadTextBox something like small image with days of the week only(like RadCalendar) but it will contain only Days of The week and nothing else and choose multiple Days of the Week.
And then in C# I need to get these days of the week.

Please help me on this.

Thanks again. â€‹
Nencho
Telerik team
 answered on 05 Mar 2014
2 answers
122 views
Hello

I have an requirement to use dsn to connect with the sql server database. So can I use odbc instead of sqldatasource or I can use both sqldatasource and odbc parallel.

I building 5 level grid.
Thanks
swathi
Top achievements
Rank 1
 answered on 05 Mar 2014
1 answer
85 views
As can be seen from the attached screen shot I have an input grid with a editing pop up form which contains two editor fields.
The top one shows the statistics, but the other one says "undefined" rather than "words" and "characters". Please can you tell me how to fix this

Edit form code is

<EditFormSettings CaptionFormatString="Edit Plan: {0}" CaptionDataField="assessment_plan_reference"<br>                                    EditFormType="Template"><br>                                    <EditColumn UniqueName="EditCommandColumn1"><br>                                    </EditColumn><br>                                    <FormTemplate><br>                                        <table id="Table1" cellspacing="1" cellpadding="10" width="550px" border="1" style="border-collapse: collapse;<br>                                            border-width: 2px; background: white;"><br>                                            <tr><br>                                                <td><br>                                                </td><br>                                            </tr><br>                                            <tr><br>                                                <td><br>                                                    Week<br>                                                    <asp:Label ID="lblWeekno" runat="server" Text='<%#Bind("week_number")%>' /><br>                                                </td><br>                                            </tr><br>                                            <tr><br>                                                <td><br>                                                    Content<br>                                                    <br /><br>                                                    <telerik:RadEditor ID="RadEditor1" runat="server" Content='<%# Bind("content") %>'<br>                                                        ToolsFile="WebBlue/ToolsFile.xml" Height="300px" Width="500px" Skin="WebBlue" /><br>                                                        <br /><br>                                                    <br>                                                </td><br>                                            </tr><br>                                            <tr><br>                                                <td><br>                                                    Activity<br>                                                    <br /><br>                                                    <telerik:RadEditor ID="RadEditor2" runat="server" Content='<%# Bind("activity") %>'<br>                                                        ToolsFile="WebBlue/ToolsFile.xml" Height="300px" Width="500px" Skin="WebBlue"><br>                                                       <br>                                                      </telerik:RadEditor><br>                                                </td><br>                                            </tr><br>                                            <tr><br>                                                <tr><br>                                                    <td align="right" colspan="2"><br>                                                        <asp:Button ID="btnUpdate" Text='Update' runat="server" CommandName='Update'></asp:Button>&nbsp;<br>                                                        <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"<br>                                                            CommandName="Cancel"></asp:Button><br>                                                    </td><br>                                                </tr><br>                                        </table><br>                                    </FormTemplate><br>                                </EditFormSettings><br>

xml file extract is

<root>
<modules>
<module name="RadEditorStatistics" dockingZone="Bottom"/>
<module name="RadEditorDomInspector" />
<module name="RadEditorNodeInspector" />
<module name="RadEditorHtmlInspector" visible="false" />
</modules>
<tools name="MainToolbar">
<tool name="AjaxSpellCheck"/>
<tool name="ImageManager" shortcut="CTRL+G"/>
<tool name="AbsolutePosition" />
<tool separator="true"/>
<tool name="LinkManager" shortcut="CTRL+K"/>
<tool name="Unlink" shortcut="CTRL+SHIFT+K"/>
<tool separator="true"/>
<tool name="FindAndReplace" shortcut="CTRL+F"/>
<tool name="SelectAll" shortcut="CTRL+A"/>
<tool name="Cut" />
<tool name="Copy" shortcut="CTRL+C"/>
<tool name="Paste" shortcut="CTRL+V"/>
<tool name="PasteStrip"/>
<tool separator="true"/>
<tool name="Undo" shortcut="CTRL+Z"/>
<tool name="Redo" shortcut="CTRL+Y"/>
<tool separator="true"/>
<tool name="Bold" shortcut="CTRL+B"/>
<tool name="Italic" shortcut="CTRL+I"/>
<tool name="Underline" shortcut="CTRL+U"/>
</tools>



Shinu
Top achievements
Rank 2
 answered on 05 Mar 2014
5 answers
179 views
Hi All,

I have any interesting set of requirements that I have implemented.  However, if one User has multiple tabs/windows of the RadGrid open ViewState errors, such as the one below, can occur.  Is there any way to place them in a try-catch of sorts so that the entire page doesn't error out?

[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.Collections.ArrayList.get_Item(Int32 index) +10067188
   Telerik.Web.UI.GridColumnCollection.System.Web.UI.IStateManager.SaveViewState() +208
   Telerik.Web.UI.GridTableView.GetStructureState() +114
   Telerik.Web.UI.RadGrid.SaveTableViewStructure(ArrayList stateList, GridTableView tableView) +47
   Telerik.Web.UI.RadGrid.SaveViewState() +74
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +80
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +404
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3770

Thanks,
Mark
Kostadin
Telerik team
 answered on 05 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?