Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
131 views
How can i hide the control of detailview grid in hierarchical radgrid during the edit mode.
I have used the below cdoe to hide the control in itemdatabound event of grid:
  RadNumericTextBox t1 = (RadNumericTextBox)editItem["StartAge"].Controls[0];
                    t1.NumberFormat.DecimalDigits = 0;
                    t1.NumberFormat.GroupSeparator = "";
                    t1.NumberFormat.AllowRounding = false;
                    editItem["StartAge"].Visible = false;

it is hiding the control but how to hide the header: See below screenshot:

i.e. how to hide the Start Age caption.
Jayesh Goyani
Top achievements
Rank 2
 answered on 21 May 2012
3 answers
468 views
Hello,
I have a grid on Form A. I have data in the session variable which is set as the datasource in the grid's needdatasource

RadGridItems.DataSource = Session[cKIWebHelper.SelectListSessionVariables.const_Session_GridData];

Now, i display a popup form B

window.showModalDialog


then when I am finished doing what I have to do in the popup form I update data into the Session[cKIWebHelper.SelectListSessionVariables.const_Session_GridData]; (add records, remove records etc)

immediatlyl after I close the popup I would like to refresh the grid in Form A. How do I do FormA.RadGridItems.Databind() ?

Richard
Top achievements
Rank 1
 answered on 21 May 2012
1 answer
203 views
Hi 
   I have used Rad Grid where all the Column are set in ASPX page and the data for the grid is set from DataSource from the Server Side .After setting the data source i need to re arrange the column at different position which will be distinct compare to sequence which is set in the ASPX page .

ASPX page sequence is the default one but some time the sequence of the Column should be changed Programmatically after setting the DataSource 



Thanks in advance ,
Chethan Rajashekaraiah
Eyup
Telerik team
 answered on 21 May 2012
5 answers
145 views
hey guys, i noticed that on the RadFilter (not Grid Radfilter) - that when there's a drop down list and something is selected - it stays highlighted - i assume this is by design until of course you click the "Apply" button. in my scenario - i'd like to attach an Enter Key event to the page - which i've done & it works fine. However, when using the DropDown List - this isn't the case. it holds the focus until you say "tab" or do another action.
is there some client code that will give the control back to the page when something is selected??
thanks again for any suggestions on this.
rik
Tsvetina
Telerik team
 answered on 21 May 2012
1 answer
135 views
I need a timeline view just as your examples. categories type on rows, date on columns.
I want to bind their datasources to my businness object, I'm missing something cause nothing happens on the rows
I did this:

getAllTimeLineType and getAllAppointments return collections having IDCategory in common. I guess this is not what needed.

<telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="TimelineView"
            OverflowBehavior="Expand"            
            Localization-HeaderMultiDay="Work Week"
            OnNavigationComplete="RadScheduler1_NavigationComplete"
            OnAppointmentInsert="RadScheduler1_AppointmentInsert"
            OnAppointmentUpdate="RadScheduler1_AppointmentUpdate"
            OnAppointmentDelete="RadScheduler1_AppointmentDelete"
            DataKeyField="ID"
            DataSubjectField="Subject"
            DataStartField="StartDate"
            DataEndField="EndDate"
            DataRecurrenceField="RecurrenceRule"
            DataRecurrenceParentKeyField="RecurrenceParentId"
            DataReminderField="Reminder"
            >
 
 
            <ResourceTypes>
                <telerik:ResourceType AllowMultipleValues="true" KeyField="IDCategory" Name="IDCategory" TextField="IDCategory" ForeignKeyField="IDCategory" />
            </ResourceTypes>
            
 
            <AdvancedForm Modal="true" />
             
              <Localization HeaderMultiDay="Work Week" />
 
            <TimelineView UserSelectable="true"
                        GroupBy="IDCategory"
                        GroupingDirection="Vertical" />
            <MultiDayView UserSelectable="true" />
            <DayView UserSelectable="false" />
            <WeekView UserSelectable="false" />
            <MonthView UserSelectable="false" />
              <Reminders Enabled="false" />
        </telerik:RadScheduler>
 
 
 
 
  Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
        Try
 
                Dim myBusinessResObj = New ADEPT.CScheduleResource(myConn)
                Dim resType1 As New ResourceType("IDCategory")               
                resType1.DataSource = myBusinessResObj.getAllTimelineType()
                resType1.KeyField = "IDCategory"
                resType1.TextField = "IDCategory"
                resType1.ForeignKeyField = "IDCategory"
                RadScheduler1.ResourceTypes.Add(resType1)
                RadScheduler1.GroupBy = "IDCategory"
 
 
 
                myBusinessObj = New ADEPT.CScheduler(myConn)
                RadScheduler1.DataSource = myBusinessObj.getAllAppointments
                myBusinessObj = Nothing
 
        Catch ex As Exception
             
        End Try
    End Sub
Ivana
Telerik team
 answered on 21 May 2012
1 answer
75 views

My RadGrid's used to display Page and Item counts in the bottom right of each Grid.  I recently upgraded Telerik from v2011.3.1305 to v2012.1.411.

The markup is as follows:

<telerik:RadGrid ID="AssetGrid" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
    AllowSorting="True" GridLines="None" GroupingSettings-CaseSensitive="false" Skin="Web20"
    AutoGenerateColumns="False" OnPageIndexChanged="AssetGrid_PageIndexChanged" OnItemCreated="AssetGrid_ItemCreated"
    OnItemDataBound="AssetGrid_ItemDataBound"
    OnPreRender="AssetGrid_PreRender" OnSortCommand="AssetGrid_SortCommand" OnNeedDataSource="AssetGrid_NeedDataSource"
    EnableLinqExpressions="false">
    <ClientSettings EnableRowHoverStyle="true">
        <Selecting AllowRowSelect="true" />
        <ClientEvents OnRowDblClick="RowAssetSelected" />
    </ClientSettings>
    <MasterTableView EditMode="InPlace" AllowFilteringByColumn="true" ShowFooter="false"
        EnableColumnsViewState="true" AutoGenerateColumns="false" CellSpacing="-1" DataKeyNames="AsId"
        Font-Size="90%" AllowCustomSorting="true" AllowCustomPaging="true" Width="100%">
        <PagerStyle Mode="NextPrevAndNumeric" Visible="true" AlwaysVisible="true" />
        <!-- RowIndicatorColumn, ExpandCollapseColumn, Columns, etc -->
    </MasterTableView>
</telerik:RadGrid>
                

    The NeedDataSource event is as follows:

protected void AssetGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
    var collection = getAssets()
    AssetGrid.VirtualItemCount = collection.Count;
    AssetGrid.DataSource = collection.Skip(AssetGrid.PageSize *
        AssetGrid.CurrentPageIndex).Take(AssetGrid.PageSize);
}

Sorry if I've missed anything important.

The grid however, is displaying the pager row like this:

PageCountMissing

Is there a setting I've missed to enable the page/item counts in the bottom right?

Tsvetina
Telerik team
 answered on 21 May 2012
3 answers
150 views

Having problems with labels showing up in the right place or at all. I have multiple charts on one page and one chart has 4 series in it and I am using this code to set the lables positions but some of them dont show up at all.

Series2_3.Items[0].Label.Appearance.LabelLocation = Telerik.Charting.Styles.

 

StyleSeriesItemLabel.ItemLabelLocation.Outside;

 

Series2_3.Items[0].Label.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.

 

AlignedPositions.Left;

also I am setting the label text  color to black but that doesn't work either

 

Series2_1.AddItem(itm2.AdministrativeServices,

 

"Administrative Services", Color.Black);


any suggestions?
Thanks!

 

Evgenia
Telerik team
 answered on 21 May 2012
7 answers
927 views
Hi,
I have a custom control, let's say MyControl1.ascx
Inside this control I have the following code:

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script type="text/javascript">
        function ClearRadCombo(sender, eventArgs)
        {
            var mycombo = $find("<%= RadComboBox1.ClientID %>");
            mycombo.clearItems();
            mycombo.clearSelection();
        }
    </script>
</telerik:RadScriptBlock>

This works just well.

Now I want to put all of the js code in a separate file, so I've changed the above code like this:

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script type="text/javascript" src="../script/myscript.js">
    </script>
</telerik:RadScriptBlock>

I've registered the js file in the RadScriptManager on my MasterPage in this way:

<asp:ScriptReference Path="~/script/myscript.js" />

but it doesn't work anymore. I get a "object is null" error when the script calls the "clearItems" method, and "mycombo" is null, indeed.
So, it's possible to use RadScriptBlock with an external js file? If yes, what's wrong with my code, please?

Any help will be really appreciated.
Thank you.
ALEX
Top achievements
Rank 1
 answered on 21 May 2012
6 answers
192 views
Hi,

I have a requirement of using user control for tooltip. I am using RadScheduler, RadAjaxManager and the RadToolTipManager together. I followed all the steps as discussed in this but still there is a problem hitting OnAjaxUpdate event. I absolutely have no idea why OnAjaxUpdate event is not firing on Mouse hover of scheduler's appointment. Can someone please help me in this regard.

Thanks in Advance.

Note: I found that in view source code "loadOndemand"=false. can someone please tell me how to make this to true.
Marin Bratanov
Telerik team
 answered on 21 May 2012
1 answer
218 views
By default, toolbars take up the available space before starting on a new line. Is it possible to incluence this behaviour?

I have attached two screenshots. On the first one (it's called before.png in case the order isn't preserved), the toolbar that starts with the text and background color tools is on the first line. The toolbar that starts with the bold-tool is on the second line.

I would like to move the toolbar that starts with the color tools to the second line, as illustrated on the second screenshots (after.png).

Is this possible?
Rumen
Telerik team
 answered on 21 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?