Telerik Forums
UI for ASP.NET AJAX Forum
23 answers
450 views
I have an issue with my Radgrid having misaligned columns when I set the properties for UseStaticHeaders = True and AllowScroll = True.  I think this has been an known issue for quite sometime, because I notice a lot of forum posts back in early 2012 with people addressing this problem.  I was wondering if there was a new up to date fix I need to implement in my code to resolve this issue.  I have already tried many solutions posted in previous forums, but I am still persisting to have problems.  I am using IE6, IE7, and IE8 and they are all displaying the same issue.  If I run it in firefox, I have no issues, but its important that I get it to work in Internet Explorer.
Nikolaus
Top achievements
Rank 1
 answered on 06 Sep 2017
10 answers
1.0K+ views
I have defined a custom CommandItemTemplate which contains a LinkButton

<CommandItemTemplate>
  <div style="padding: 5px 5px;">
    <asp:LinkButton ID="linkBtnAddReport" runat="server" CommandName="InitInsert">
      <img style="border:0px;vertical-align:middle;" alt="" src="../../CSS/images/add.gif" /> Add New Report
    </asp:LinkButton>
  </div>
</CommandItemTemplate>

I need to change the Enabled property but I need to change it outside of the GridItemCommand event.

How can I find the LinkButton outside of the GridItemCommand event?

Thanks.
Eyup
Telerik team
 answered on 06 Sep 2017
0 answers
63 views

I'm attempting to add an Editor to an existing .NET 4.5 project. All of the other Telerik controls in the project seem fine so far - and RadEditor works at first, but is unable to change to either HTML or Preview mode.

When we click on either HTML or Preview, a File Not Found error is thrown. I've followed a few other threads related to RadEditor issues and have tried some proposed solutions, such as renaming the DialogHandler from .aspx to .axd, but nothing so far has worked. Right now, it appears everything in our web.config, references, etc. match what is in the Telerik Live Examples project.

Has anyone else encountered this problem, or any other ideas of what could be wrong?

Nora
Top achievements
Rank 1
 asked on 05 Sep 2017
1 answer
215 views

Hello

How can I set a RadScheduler modal window to 'movable' by the user like a RadWindow?

My users are confused that the can move other RadWindow modal windows but not the one from the scheduler.

Thanks

Ruggero De Pellegrini

Peter Milchev
Telerik team
 answered on 05 Sep 2017
3 answers
94 views

I've recently upgraded to the latest version of Telerik, and it seems like the "ItemsPerRow" property is no longer working for the Custom Drop Down.

Example here:  http://demos.telerik.com/aspnet-ajax/editor/examples/customdropdowns/defaultvb.aspx

I've tried to format the list items accordingly, however the <li> styling affects ALL drop downs in the editor. 

Is there either a way to get the ItemsPerRow to work properly, or is there a way to specifically refer to just the custom drop down via CSS styling?

Thank you.

Rumen
Telerik team
 answered on 05 Sep 2017
1 answer
100 views

Dear All

Is there a way to add Highlights and or Holidays to the Gantt control?

What is planned in the Roadmap for Gantt?

 

Best regards

 

Vessy
Telerik team
 answered on 05 Sep 2017
6 answers
216 views

Is there anyway to change the timing (speed) of the needle sweep?

I want to slow down the speed of the needle after its been given a value.

I don't see a exposed value, but I am guessing that some JavaScript "timer" function is used to control the speed of the needle when it moves to a given value.

Is some value existing in the control? I willing to set this value server or client side. eg:

eg:

var gao6 = $find("<%=gaPartsDiscount.ClientID%>"); //the standard script control object
var gao6g = gao6.get_kendoWidget(); //the Kendo widget
var gao6v;
-----> set "speed" of sweep??????
gao6g.value(50);

Regards,

Albert D. Kallal

 

Peter Milchev
Telerik team
 answered on 05 Sep 2017
0 answers
97 views

Hi for some reason my select row code does not work

My grid definition is below

 

<telerik:radgrid runat="server" id="RadGridAppointmentList" showfooter="false" width="100%" enableajax="true" showstatusbar="true" allowautomaticinserts="false"
onitemcommand="RadGridAppointmentList_ItemCommand" onitemcreated="RadGridAppointmentList_ItemCreated" AllowMultiRowSelection="false"
allowaddingrecords="false" autogeneratecolumns="false" allowsorting="false" allowpagesizeselection="False" onitemdatabound="OnItemDataBoundHandler" allowautomaticupdates="false"
allowpaging="True" skin="Bootstrap" pagesize="25" onneeddatasource="RadGridAppointmentList_NeedDataSource" onprerender="RadGridAppointmentList_PreRender" cssclass="table table-striped">
<MasterTableView AutoGenerateColumns="false" DataKeyNames="ref" TableLayout="Auto" EditMode="EditForms" CommandItemDisplay="None" >
<Columns>
<telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn" AllowFiltering="false" HeaderText="Select" ItemStyle-Width="45" HeaderStyle-Width="45" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true">
<ItemTemplate>
<asp:CheckBox ID="CheckBox1" OnCheckedChanged="CheckUncheckItem" AutoPostBack="True"
runat="server"></asp:CheckBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridButtonColumn CommandName="Edit" UniqueName="EditColumn" Text="Edit" ItemStyle-Width="45px" HeaderText="Edit" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true">
</telerik:GridButtonColumn>
<telerik:GridBoundColumn DataField="ref" runat="server" Display="false" ItemStyle-Width="1" ItemStyle-ForeColor="White" UniqueName="ref">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="studentname" DataField="" HeaderText="Name" runat="server" ItemStyle-Wrap="true" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true"
ItemStyle-Width="100" ReadOnly="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="Id_No" DataField="id_no" HeaderText="Student" runat="server" ItemStyle-Width="30px"
Display="false" ReadOnly="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="bookeddate" DataField="bookeddate" HeaderText="Date" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" runat="server"
ItemStyle-Width="100" Display="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="selectedtime" HeaderText="Time" runat="server" ItemStyle-Width="80" Display ="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="appointmentdate" HeaderText="Date and Time" runat="server" ItemStyle-Width="110px" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="staff_id" HeaderText="Name" runat="server" ItemStyle-Width="100px" Display="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="staff_name" DataField="" HeaderText="Staff Name" runat="server" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" ItemStyle-Width="100" Display="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="status" HeaderText="Status" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" UniqueName="status"
runat="server" ItemStyle-Width="130px">
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings EditFormType="Template">
<EditColumn UniqueName="EditColumn">
</EditColumn>
<FormTemplate>
<table style="width: 100%" border="0" >
<tr style="border:solid">
<td colspan="2"><b>Edit Appointment</b><br /></td>
</tr>
<tr>
<td colspan="2">
<br />
Select Status<br />
<telerik:RadComboBox ID="RadComboBoxStatus" runat="server" EmptyMessage="Select Status" CausesValidation="False"
HighlightTemplatedItems="true" Height="100px" Width="450px" DropDownWidth="450px" EnableAutomaticLoadOnDemand="False" AutoPostBack="true"
AppendDataBoundItems="true" Visible="true" CssClass="ComboBox" OnSelectedIndexChanged="RadComboBoxStatus_SelectedIndexChanged">
<Items>
<telerik:RadComboBoxItem value="absent" text="absent" />
<telerik:RadComboBoxItem value="present" text="present" />
<telerik:RadComboBoxItem value="session_cancelled" text="session_cancelled" />
</Items>
</telerik:RadComboBox>
</td>
</tr>
<tr>
<td colspan="2">
<asp:Button ID="btnSave" CausesValidation="False" Text="Save"
runat="server" AutoPostBack="True" CommandName="Update"></asp:Button>&nbsp;
</td>
</tr>
</FormTemplate>
</EditFormSettings>
</MasterTableView>
<ClientSettings EnablePostBackOnRowClick="True">
<Selecting AllowRowSelect="true"></Selecting>
</ClientSettings>
<SelectedItemStyle BackColor="Gray" BorderColor="Blue" BorderStyle="Dashed" BorderWidth="1px" />
</telerik:radgrid>

 

This is my select code

Protected Sub CheckUncheckItem(sender As Object, e As EventArgs)
Dim selectedItems As ArrayList
TryCast(TryCast(sender, CheckBox).NamingContainer, GridItem).Selected = TryCast(sender, CheckBox).Checked
Dim CheckBox1 As CheckBox = DirectCast(sender, CheckBox)
Dim item As GridDataItem = DirectCast(CheckBox1.NamingContainer, GridDataItem)
If CheckBox1.Checked Then
Dim refno As String = item.GetDataKeyValue("ref").ToString()
selectedItems.Add(refno)
Session("selectedItems") = selectedItems
Else
Dim refno As String = item.GetDataKeyValue("ref").ToString()
selectedItems.Remove(refno)
Session("selectedItems") = selectedItems
End If

End Sub

The line selectedItems.Add(refno) is failing

Error is Error Message: Object reference not set to an instance of an object.

Does the ref column need to be visible to make it work?

 

 

 

Suzan
Top achievements
Rank 1
 asked on 05 Sep 2017
2 answers
117 views

I am using a TreeList with advanced binding with NeedDataSource event handling.

My data does not have any nodes with null / zero to define the root level nodes.

I have seen reference in other threads to settings a 'DefaultValue' to define root nodes but cannot see how to do this in documentation.

 

How do I display data when I do not have 0 / null root level Id's?

Eg. My root level node may be '1'. How do I configure the TreeList to recognize this?

 

Thanks

Jason

Jason
Top achievements
Rank 1
 answered on 05 Sep 2017
1 answer
114 views

I have RadGrid that is bound in code-behind using a stored procedure.

I have enable excel-like filtering to the grid and it is all working fine except for any values that contains the word 'AND'.

 

On another page I have a RadGrid that is bound using the SqlDataSource. The filters work even when containing the word 'AND'.

Any ideas on how to handle this problem?

 

Regards,

Jas

Eyup
Telerik team
 answered on 05 Sep 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?