Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
Version 2010.3.1317.20 (it's a .NET 2.0 site)

Protected Sub grdMaintReceived_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles grdMaintReceived.ItemDataBound
    If TypeOf e.Item Is GridDataItem Then
        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
        Dim deactivated As Boolean = DirectCast(item("deactivated").FindControl("checkDeactivated"), CheckBox).Checked
        Dim contractBtn As LinkButton = DirectCast(item("service_provider_name").Controls(0), LinkButton)
        If deactivated Then
            contractBtn.Enabled = False
        End If
    End If
End Sub

This code removes the underline from the links but the user can mouse over the text, making the underline come back and click the button.  How can I stop this?
Princy
Top achievements
Rank 2
 answered on 07 Feb 2014
1 answer
159 views
I have a RadGrid which contains several GridBoundColumn. But no matter what I put in the filter template, It's just not showing!! I wonder how the filter template is triggered? AllowFilteringByColumn is already set as true for the whoke grid.

Please help me~~

        <telerik:GridBoundColumn UniqueName="topper" HeaderText="Global Client Company-test filter" DataField="topper" HeaderStyle-Width="300px">
        
        
        <FilterTemplate>
                            <asp:DropDownList ID="cbbDiscontinued" AutoPostBack="true" runat="server">
                    <asp:ListItem Text="All" Value="-1"></asp:ListItem>
                    <asp:ListItem Text="Active" Value="1"></asp:ListItem>
                    <asp:ListItem Text="Lock" Value="0"></asp:ListItem>
                </asp:DropDownList>
        </FilterTemplate>

        </telerik:GridBoundColumn>
Princy
Top achievements
Rank 2
 answered on 07 Feb 2014
4 answers
239 views
Hi,

I have a rad Grid in my page with "EnableHeaderContextMenu" set to true as well as "AllowColumnResize" set to true.
<Resizing ResizeGridOnColumnResize="false" AllowResizeToFit="true" AllowColumnResize="true"/>.
Prob:
When i remove some columns using headercontextmenu, the grid is getting resized an d i can see a white space at the end of grid, until a postback happens.
I tried setting "AllowColumnResize" to false, then it works fine. But i want both columns to be either resized or removed using header context menu. In both the cases grid should not be resized.
Farjana
Top achievements
Rank 1
 answered on 07 Feb 2014
1 answer
101 views
I'am using radMultipage. If I add the radpageviews at aspx like that
      

  

        <telerik:RadMultiPage ID="RadMultiPage1" Runat="server" OnPageViewCreated="RadMultiPage1_PageViewCreated">
                    <telerik:RadPageView ID="RadPageView1" runat="server" Height="159px" Width="163px">
                        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                        <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click"/>
                    </telerik:RadPageView>
        
                    <telerik:RadPageView
    
     ID="RadPageView2" runat="server" Height="159px" Width="163px">
                    <asp:Label ID="Label2" runat="server" Text="Label">
                    </asp:Label>
                    <asp:Button ID="Button2" runat="server" Text="Button" OnClick="Button2_Click" />
                </telerik:RadPageView>
            </telerik:RadMultiPage>

at code behind I use that 

    Label2.Text = "asdasdasas";


but it if I add the radpageviews at runtime like that

            Telerik.Web.UI.RadPageView dataSelectionPV = new Telerik.Web.UI.RadPageView();
            dataSelectionPV.ID = "dataSelectionPV";
            System.Web.UI.Control ctrl = Page.LoadControl("DevelopmentSample.ascx");
            dataSelectionPV.Controls.Add(ctrl);

            Telerik.Web.UI.RadPageView outOfTimeSamplePV = new Telerik.Web.UI.RadPageView();
            outOfTimeSamplePV.ID = "outOfTimeSamplePV";
            System.Web.UI.Control ctrl2 = Page.LoadControl("OutOfTimeSample.ascx");
            dataSelectionPV.Controls.Add(ctrl2);

I cant reach label2 at runtime at code behind. So ı cant write 

Label2.Text = "asdasdasas";


at runtime how can I reach items in pageview which adds to multipage dynamicly?
Shinu
Top achievements
Rank 2
 answered on 07 Feb 2014
7 answers
246 views

Hello All

When you select a column in RadGrid as "read only" it will be hidden in Edit and Insert mode, I have a requirement to show it, but I don’t know how to do this with Ajax RadGrid? If I put the EditMode="InPlace"  

It appear as label which is good but I wanted to use the EditMode="EditForms"

It I Use this it disappears, Can someone please update me how to resolve this issue. I don’t not want to use template column that will increase huge work on my end

Thanks in advance

Syed Qazafi

Princy
Top achievements
Rank 2
 answered on 07 Feb 2014
6 answers
531 views
Hi ,
I want to make RadGrid Responsive to screen  size.
For Eg:
If I am opening RadGrid in Resolution 1024*786
Then
PageSize=10 and height=360px


If I am opening RadGrid in Resolution 1920*1080
Then
PageSize=15 and height=500px

So that user using bigger resolution monitor can see more data in single page without scroll.

Obvious user can change the page size from the dropdown later from UI to see more records.


Kindly please suggest how to achieve this requirement
Jayesh Goyani
Top achievements
Rank 2
 answered on 07 Feb 2014
2 answers
99 views
I have 2 radcombobox in the GridTemplateColumn, is it possible that when I choose an item in combox #1, it will cause combox#2 to refresh with a new set of data?  I don't care if I accomplish this from serverside or clientside coding.

Thanks!
Princy
Top achievements
Rank 2
 answered on 07 Feb 2014
5 answers
189 views
Can we make in the The Rad File Explorer show small thumbs of the images in the file list?
Shinu
Top achievements
Rank 2
 answered on 07 Feb 2014
3 answers
225 views
Hi,

I have requirement where I have to build a tree view which has skills in it and they are categorized under different domains.
As the data tree has almost 8 levels of drilldown we went with Load on demand mode as the page will be responsive and lite.
But make it easier for the users we are providing them search option where they type in the skill and ajax suggestion come in showing the skills available with the name under different parent nodes.
But to make it even easier we are providing suggestions with radio buttons when user select them they tree will be expanded to that particular skill.

I'm using the following function to expand the tree 
        function findNodes(node, searchString) {
            var nodesarray = new Array();
            nodesarray = searchString.split(".");
            for (var i = nodesarray.length - 1; i >= 0; i--) {
                if ((node.get_value() == nodesarray[i]) && i!=0) {
                    node.set_expanded(true);
                    node.set_visible(true);
                    for (var j = 0; j < node.get_nodes().get_count(); j++) {
                        findNodes(node.get_nodes().getNode(j), searchString);
                    }
                } else if ((node.get_value() == nodesarray[i]) && i == 0) {
                node.set_checked(true);
                }

            }
This function works fine with tree view which is already preloaded but doesn't work with load on demand tree.
It fails at 

   for (var j = 0; j < node.get_nodes().get_count(); j++) {
                        findNodes(node.get_nodes().getNode(j), searchString);
                    }
to be specific node.get_nodes().getNode(j),
It can expand the first level but not able to get nodes after that ...
Any suggestions or workarounds ?

Regards,
Mohan
Princy
Top achievements
Rank 2
 answered on 07 Feb 2014
6 answers
174 views
Hi,

I have configured a scheduler in timeline view to start at 7am and have 39 20min slots, however when the page first loads the timeline view starts strange times (usually based loosely around the number of minutes ) and only corrects after reloading of the page.
I have attached the before and after screen shots.

Here is the aspx scheduler configuration.

<telerik:RadScheduler ID="rsAppointments" runat="server"
                DataEndField="AppointmentEndDate"
                DataKeyField="ID"
                DataStartField="AppointmentStartDate"
                DataSubjectField="AppointmentTypeID"
                DataDescriptionField="AppointmentTypeID"
                Height="600px"
                onnavigationcomplete="rsAppointments_NavigationComplete"
                OnClientAppointmentInserting="OnInsertAppointment"
                OnClientAppointmentEditing="OnEditAppointment"
                OnClientAppointmentContextMenuItemClicked="OnAppointmentMenuClicked"
                OnClientAppointmentContextMenu="OnAppointmentMenu"
                OnClientTimeSlotContextMenuItemClicked="OnTimeslotMenuClicked"
                GroupingDirection="Vertical" SelectedView="TimelineView"
                DayEndTime="20:00:00"
                DayStartTime="07:00:00"
                WorkDayEndTime="20:00:00"
                WorkDayStartTime="07:00:00"
                onappointmentcreated="rsAppointments_AppointmentCreated"
                onappointmentupdate="rsAppointments_AppointmentUpdate"
                onappointmentdelete="rsAppointments_AppointmentDelete">
                <WeekView UserSelectable="False" />
                <DayView UserSelectable="False" />
                <MonthView UserSelectable="False" />
                <TimelineView GroupBy="Resources" GroupingDirection="Vertical" UserSelectable="false"
                    NumberOfSlots="39" StartTime="07:00:00" ShowResourceHeaders="true" EnableExactTimeRendering="true"
                    ColumnHeaderDateFormat="HH:mm" SlotDuration="00:20:00" ShowInsertArea="false" />
                <ResourceTypes>
                    <telerik:ResourceType Name="Resources" KeyField="AppointmentResourceID" TextField="AppointmentResource" ForeignKeyField="AppointmentResourceID" />
                </ResourceTypes>
                <AppointmentTemplate>
                    <table border="0" cellpadding="3" cellspacing="0" width="100%">
                        <tr>
                            <td style="border: none;"><asp:Literal ID="litContent" runat="server"></asp:Literal></td>
                        </tr>
                    </table>
                </AppointmentTemplate>
                <AppointmentContextMenus>
                    <telerik:RadSchedulerContextMenu runat="server" ID="cmAppointment">
                        <Items>
                            <telerik:RadMenuItem Text="Open" Value="CommandEdit" />
                            <telerik:RadMenuItem IsSeparator="True" />
                            <telerik:RadMenuItem Text="Delete" Value="CommandDelete" />
                            <telerik:RadMenuItem IsSeparator="True" />
                            <telerik:RadMenuItem Text="Attended" Value="Attended" />
                            <telerik:RadMenuItem Text="Cancel" Value="Cancel" />
                            <telerik:RadMenuItem IsSeparator="True" />
                            <telerik:RadMenuItem Text="Go to Record Summary" Value="PatientRecord"></telerik:RadMenuItem>
                            <telerik:RadMenuItem Text="Go to Demographics" Value="Patient"></telerik:RadMenuItem>
                        </Items>
                    </telerik:RadSchedulerContextMenu>
                </AppointmentContextMenus>
                <TimelineView HeaderDateFormat="dddd, dd MMMM yyyy" />             
                <TimeSlotContextMenus>
                    <telerik:RadSchedulerContextMenu runat="server" ID="cmTimeSlot">
                        <Items>
                            <telerik:RadMenuItem Text="New Appointment" Value="CommandAddAppointment"></telerik:RadMenuItem>
                            <telerik:RadMenuItem IsSeparator="true" />
                            <telerik:RadMenuItem Text="Go to today" Value="CommandGoToToday" />
                        </Items>
                    </telerik:RadSchedulerContextMenu>
                </TimeSlotContextMenus>
                <TimeSlotContextMenuSettings />
            </telerik:RadScheduler>

We are using 2013 Q1 of the Telerik controls.

Thanks
Gavin.
Gavin
Top achievements
Rank 1
 answered on 07 Feb 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?