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

I try to show image which is located FTP Server.

So I set ImageEditor.ImageUrl = ftp://sckpcsd:Korea%4012@krpcsdapp01/LMK/Image/2015/11/10474/7L4Q.JPG

 

Then when image loading, error window was happened, it says debug web page using internet explorer inside script Debugger.

If I select Yes, debugger is open.

If I select No, the image is sucessfully loading.

 

I think that image is located other PC, so the error window is happend.

How can I make the error message isn't happen before image loading without download image from ftp server to web server.

Vessy
Telerik team
 answered on 19 Nov 2015
5 answers
306 views

Hi,

My first post here. I'm using the Telerik Editor that is build into the Sitecore interface, though I see from the demos that this problem applies to the default Telerik Editor also.

The problem is that the toolbar buttons don't insert the expected HTML code. For example, using the B (bold) button, inserts the HTML tag <strong> (for strong emphasis), instead of either the <b> (bold) HTML tag or better the style="font-weight:bold" attribute.

<strong> is *not* equal to displaying bold text. It is by default displayed as bold in *most* browsers, but any stylesheet can easily redefine <strong> to be displayed with other formatting, in which case the connect with the "bold" button is totally invalid.

The same goes for the I (italic) button, which doesn't insert code for italic text but an <em> for emphasized text.

Following this pattern, I would have expected the U (underline) button to insert an <a> tag, because anchors are underlined by default, but this is not the case. The U button actually inserts <span style="text-decoration: underline;">. However, in an unrelated complaint, the use of underlining in webpages is bad user experience, since many visitors will misinterpret underlined text as a hyperlink, and try to click it. An underline button should not be offered in a web editor. My suspicion is the only reason for that button being there, is because it is also available in Microsoft Word. A web page is *not* the same as a Word document, and the Telerik Editor should honor this difference, instead of trying to mimic something it is not.

Ianko
Telerik team
 answered on 19 Nov 2015
1 answer
214 views

Hi,

 

I have enabled the rad grid keyboard navigation. But Up and down keys are not working. Please suggest me what I am doing wrong here.

 

<ClientSettings AllowColumnsReorder="True" AllowKeyboardNavigation="true" Selecting-AllowRowSelect="true" EnablePostBackOnRowClick="true" ReorderColumnsOnClient="True" KeyboardNavigationSettings-AllowActiveRowCycle="true">
                <Selecting AllowRowSelect="True"  />

                <KeyboardNavigationSettings AllowActiveRowCycle="True" EnableKeyboardShortcuts="true"  > </KeyboardNavigationSettings>
            </ClientSettings>

Pavlina
Telerik team
 answered on 19 Nov 2015
1 answer
151 views

Hello.

I have multi selection combobox with checkboxes. Variable "options" has value: "Cat, Dog". Combobox has values: "Cat", "Dog", "Pig".  I want to check and select few values by using java script. I am not able to select few values at ones. This code only select "Dog".

function setValuesInCombobox(options) {
   var controler =$find(getClientIdById(cboBuildingControlName));   
   controler.set_value(options);
   controler.set_text(options);
   var allChoicesFromCbo = controler.get_items()._array; 
   var selectedOptions =  options.split(",");
 
   for(i = 0; i < selectedOptions.length; i++) {
     var building = selectedOptions[i].trim();
     for(j = 0; j < allChoicesFromCbo.length; j++) {       
       var nameOfBuildingInCbo = allChoicesFromCbo[j]._properties._data.value;
       if( nameOfBuildingInCbo == building) {
         allChoicesFromCbo[j]._setChecked(true);
         allChoicesFromCbo[j].select();
       }
     }
   }
 }

Eyup
Telerik team
 answered on 19 Nov 2015
1 answer
218 views

Hi everyone.
I've a problem with my TreeView controls. the problem is;

When I try to bind data from DB to RadTreeView, it gives this error : "This constraint cannot be enabled as not all values have corresponding parent values."

Default.aspx

<body>
    <form id="form1" runat="server">
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MedsConnectionString %>" SelectCommand="sp_MAIN_ACC_TREE" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:Parameter DefaultValue="1" Name="ACC_id_A" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        <br />
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>

        <telerik:RadTreeView ID="RadTreeView1" Runat="server" DataFieldID="ACC_ID_A" DataFieldParentID="ACC_PARENT_A" DataSourceID="SqlDataSource1" DataTextField="ACC_NAME_A" DataValueField="ACC_ID_A" Height="131px" OnNodeClick="RadTreeView1_NodeClick">
        </telerik:RadTreeView>

    </div>
    </form>
</body>

 DataTable : 

ACC_ID_A           ACC_NAME_A           ACC_PARENT_A

 

 1                            Accounting tree                  NULL

 2                            essential                               1

 3                            Cars                                      2

4                              Ambulance                          3

 

stored procedure : 

ALTER PROCEDURE [dbo].[sp_MAIN_ACC_TREE]
@ACC_id_A as int
AS
BEGIN
with subtree2(ACC_ID_A , ACC_NAME_A , ACC_PARENT_A)
as
(
select * from MAIN_ACC_A where ACC_PARENT_A = @ACC_id_A
union all
select e.ACC_ID_A, e.ACC_NAME_A ,e.ACC_PARENT_A from MAIN_ACC_A
as e inner join subtree2 on subtree2.ACC_ID_A=e.ACC_PARENT_A
)
select * from subtree2
order by ACC_PARENT_A
END

 

I need solve this problem necessary

thanks

Nencho
Telerik team
 answered on 19 Nov 2015
4 answers
131 views

Hi there,
 have set up a Provider for the Scheduler to enable multiple resources…
This part is working well – but am getting lots of error with my recurring appointments (normal ones are fine).  Have modelled my code from the example in the DbScheduleProvider in the Demo project.
If I try to delete a recurring (either series/individual) I get:

Cannot locate the parent of appointment with ID = '15'. Ensure that the parent appointment with ID = '' exists and is loaded.
[InvalidOperationException: Cannot locate the parent of appointment with ID = '15'. Ensure that the parent appointment with ID = '' exists and is loaded.]
  Telerik.Web.UI.Scheduling.AppointmentController.DeleteAppointment(ISchedulerInfo schedulerInfo, Appointment appointmentToDelete, Boolean deleteSeries) +1254
   Telerik.Web.UI.RadScheduler.DeleteAppointment(Appointment appointmentToDelete) +88
   Telerik.Web.UI.RadScheduler.ProcessPostBackCommand(SchedulerPostBackEvent postBack) +1440
   Telerik.Web.UI.RadScheduler.RaisePostBackEvent(String eventArgument) +62
   Telerik.Web.UI.RadScheduler.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +9672166
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724


If I move a recurring appointment I get:

Object reference not set to an instance of an object.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:



[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.Scheduling.AppointmentController.PrepareToEdit(Appointment appointmentToEdit, Boolean editSeries) +110
   Telerik.Web.UI.RadScheduler.Telerik.Web.UI.IScheduler.HandleMove(Appointment appointmentToMove, DateTime start, DateTime end, Boolean editSeries, ResourceUpdateInfo resourceUpdateInfo) +46
   Telerik.Web.UI.Scheduler.Views.Week.Model.HandleMove(Appointment appointment, ISchedulerTimeSlot sourceSlot, ISchedulerTimeSlot targetSlot, Boolean editSeries) +438
   Telerik.Web.UI.Scheduler.Views.SchedulerModel.ProcessPostBackCommand(SchedulerPostBackEvent postBack) +279
   Telerik.Web.UI.RadScheduler.ProcessPostBackCommand(SchedulerPostBackEvent postBack) +3412
   Telerik.Web.UI.RadScheduler.RaisePostBackEvent(String eventArgument) +62
   Telerik.Web.UI.RadScheduler.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +9672166
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724



Really appreciate any help I can get!

thanks, Andy



Bozhidar
Telerik team
 answered on 19 Nov 2015
8 answers
165 views

Team,

Please provide an example of gannt chart using RadHtmlChart.

 

Thanks,

Suresh.

 

Marin Bratanov
Telerik team
 answered on 19 Nov 2015
1 answer
192 views
<telerik:RadGrid ID="rgridUserList" runat="server" GridLines="None" OnNeedDataSource="rgridUserList_NeedDataSource"
                   AllowSorting="true" EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true"
                   AllowFilteringByColumn="true" EnableLinqExpressions="false" OnItemCommand="rgridUserList_ItemCommand"
                   Skin="Telerik" OnItemDataBound="rgridUserList_ItemDataBound">
                   <ClientSettings>
                       <Selecting AllowRowSelect="True"></Selecting>
                   </ClientSettings>
                   <GroupingSettings CaseSensitive="false"></GroupingSettings>
                   <MasterTableView DataKeyNames="UserID" CommandItemDisplay="Top" IsFilterItemExpanded="false"
                       EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true" AllowFilteringByColumn="true">
                       <Columns>
                           <telerik:GridTemplateColumn HeaderText="No." UniqueName="Number" ItemStyle-CssClass="NumberColomn">
                               <HeaderStyle Width="30px" HorizontalAlign="Center" />
                               <ItemStyle HorizontalAlign="Center" />
                               <ItemTemplate>
                                   <asp:Label ID="lblGridNumber" runat="server" Text='<%# (rgridUserList.PageSize*rgridUserList.CurrentPageIndex)+ Container.ItemIndex + 1 %>'></asp:Label>
                               </ItemTemplate>
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn HeaderText="User Name" UniqueName="UserName" SortExpression="UserName"
                               CurrentFilterFunction="Contains" DataField="UserName" >
                               <HeaderStyle HorizontalAlign="Center" />
                               <ItemStyle HorizontalAlign="Left" />
                               <ItemTemplate>
                                   <asp:HyperLink ID="hlUserName" Font-Underline="true" runat="server"><%# DataBinder.Eval(Container, "DataItem.UserName") %></asp:HyperLink>
                               </ItemTemplate>
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn HeaderText="Full Name" UniqueName="FullName" SortExpression="FullName"
                               CurrentFilterFunction="Contains" DataField="FullName">
                               <HeaderStyle HorizontalAlign="Center" />
                               <ItemStyle HorizontalAlign="Left" />
                               <ItemTemplate>
                                   <asp:Label ID="lblFullName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.FullName") %>'></asp:Label>
                               </ItemTemplate>
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn HeaderText="Email" UniqueName="Email" SortExpression="Email"
                               CurrentFilterFunction="Contains" DataField="Email">
                               <HeaderStyle HorizontalAlign="Center" />
                               <ItemStyle HorizontalAlign="Left" />
                               <ItemTemplate>
                                   <asp:Label ID="lblEmail" SkinID="EmailColor" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Email") %>'></asp:Label>
                               </ItemTemplate>
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn HeaderText="User Group" UniqueName="UserGroupItem" SortExpression="UserGroupItem"
                               DataField="UserGroupItem" CurrentFilterFunction="Contains" >
                               <HeaderStyle HorizontalAlign="Center" />
                               <ItemStyle HorizontalAlign="Left" />
                               <ItemTemplate>
                                   <asp:Label ID="lblUserGroup" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.UserGroupItem") %>'></asp:Label>
                               </ItemTemplate>
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn HeaderText="Is Active" UniqueName="IsActive" SortExpression="IsActive"
                               HeaderStyle-HorizontalAlign="Center" >
                               <ItemStyle HorizontalAlign="Center" />
                               <ItemTemplate>
                                   <asp:CheckBox ID="cbIsActive" runat="server" Enabled="false" Checked='<%# DataBinder.Eval(Container, "DataItem.IsActive") %>' />
                               </ItemTemplate>
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn HeaderText="Created By" UniqueName="CreatedBy" SortExpression="CreatedBy"
                                HeaderStyle-HorizontalAlign="Center" DataField="CreatedByName" CurrentFilterFunction="Contains">
                               <ItemStyle HorizontalAlign="Center" />
                               <ItemTemplate>
                                   <asp:Label ID="lblCreatedBy" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.CreatedByName") %>'></asp:Label>
                               </ItemTemplate>
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn HeaderText="Last Access" UniqueName="LastAccess" SortExpression="LastAccess"
                                HeaderStyle-HorizontalAlign="Center" DataField="LastAccess" CurrentFilterFunction="Contains">
                               <ItemStyle HorizontalAlign="Center" />
                               <ItemTemplate>
                                   <asp:Label ID="lblLastAccess" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.LastAccess","{0:dd-MM-yyyy hh:mm tt}") %>' />
                               </ItemTemplate>
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn HeaderText="Need Approval" Visible="false" UniqueName="IsNeedApproval"
                               HeaderStyle-HorizontalAlign="Center" SortExpression="IsNeedApproval">
                               <ItemStyle HorizontalAlign="Center" />
                               <ItemTemplate>
                                   <asp:CheckBox ID="cbIsNeedApproval" runat="server" Checked='<%# DataBinder.Eval(Container, "DataItem.IsNeedApproval") %>'>
                                   </asp:CheckBox>
                               </ItemTemplate>
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn HeaderText="Action" UniqueName="Action">
                               <HeaderStyle Width="100px" HorizontalAlign="Center" />
                               <ItemStyle HorizontalAlign="Center" />
                               <ItemTemplate>
                                   <asp:ImageButton ID="btnEdit" runat="server" SkinID="Edit" CommandName="Edit" Visible='<%# !(bool)DataBinder.Eval(Container, "DataItem.IsNeedApproval") %>' />
                                   <asp:ImageButton ID="btnDelete" runat="server" SkinID="Delete" CommandName="Delete"
                                       Visible='<%# !(bool)DataBinder.Eval(Container, "DataItem.IsNeedApproval") %>'
                                       OnClientClick="javascript:return confirm('Are you sure want to delete?')" />
                                   <asp:Label ID="lblNeedApproval" runat="server" Text='Need Approval' Visible='<%# DataBinder.Eval(Container, "DataItem.IsNeedApproval") %>'
                                       ForeColor="Red"></asp:Label>
                               </ItemTemplate>
                           </telerik:GridTemplateColumn>
                       </Columns>
                       <CommandItemTemplate>
                           <telerik:RadToolBar ID="RadTBUser" runat="server" SkinID="NewAndExport" />
                       </CommandItemTemplate>
                       <ExpandCollapseColumn Visible="False" Resizable="False">
                           <HeaderStyle Width="20px" />
                       </ExpandCollapseColumn>
                       <CommandItemSettings ExportToPdfText="Export to PDF" />
                       <RowIndicatorColumn Visible="False">
                           <HeaderStyle Width="20px" />
                       </RowIndicatorColumn>
                       <EditFormSettings>
                           <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                           </EditColumn>
                       </EditFormSettings>
                       <PagerStyle AlwaysVisible="True" Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                   </MasterTableView>
                   <HeaderStyle HorizontalAlign="Center" />
                   <FilterMenu EnableImageSprites="False">
                   </FilterMenu>
                   <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                   </HeaderContextMenu>
               </telerik:RadGrid>

 

 

That is my code..

Scenario:

-I have 12 records ( 0.12Records.JPG)

-I try to filter (1.Search.JPG) The filter is fine. 

-Then I click Search button to rebind grid's datasource (2.Search.JPG)

-The right click filter on header , the text is cleared. But, the records not showing all records. I try to type something, the filter is not working.

-After I click Search Button (again) the filter is fine again.

 

What inside button search is:

private void BindGrid()
   {
       try
       {
           sessUserCollection = null;
           rgridUserList.Rebind();
       }
       catch (Exception Ex)
       {
           throw Ex;
       }
   }

 

So, the problem is when I click once the search button (rebind grid) the filter is crippled.

I need to click it twice, so the database hitted twice.

 

 

 

Any ways to solve this problem?
Am I missing something?

 

 

chameleon
Top achievements
Rank 1
 answered on 19 Nov 2015
3 answers
184 views

Hello, thanks for looking at my question.  I have a popup ​Add Record window, one of the fields to select is a RadDropDownList that is populated by the Department ID column from the database.   The items in the list are not sorted and I would like them sorted in order for the user to find he needed ID faster.

The RadDropDownList is within an EditItemTemplate  that is within a  GridTemplateColumn.

 

<telerik:GridTemplateColumn HeaderText="DepartmentID" ItemStyle-Width="240px">
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem, "DepartmentID")%>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadDropDownList runat="server" ID="RadDropDownList1" DataTextField="DepartmentID"
DataValueField="DepartmentID" DataSourceID="SqlDataSource1" SelectedValue='<%#Bind("DepartmentID")%>'>
</telerik:RadDropDownList>
</EditItemTemplate>
</telerik:GridTemplateColumn>

 

I have tried AllowSorting, SortExpression on the RadDropDownList and they did not work.

What am I missing in my code?

 

Thank you, Dale

 

Dale
Top achievements
Rank 1
 answered on 18 Nov 2015
6 answers
405 views
I used the new Telerik control panel to update my ASP.NET Ajax, Reporting and JustCode. There were no error messages shown, but if I click on ASP.NET Ajax or Reporting, it shows a status of "Partially Installed". I tried to repair both installs, but still have the same message. What the heck does it mean and how do I fix it?
Yana
Telerik team
 answered on 18 Nov 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?