Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
69 views
hi,
how can we make parent nodes checkable false?we are using ef query while binding..
Princy
Top achievements
Rank 2
 answered on 09 Nov 2011
1 answer
72 views
Hello,

When i use raddatepicker.selecteddate, this includes date as well as time.
I want only the date part from the datepicker.
How can i get it?


Thanks
Shinu
Top achievements
Rank 2
 answered on 09 Nov 2011
1 answer
87 views
Hi, I am new to using telerik controls. I have been trying to write some javascript to add items to an existing radcombobox. Using examples in the demos I did something like this, to first of all get the existing combobox:

var combo = $find ("<%=RadComboBox1.ClientID%>");

however when I check combo, it is always null.

Any ideas what to do? Pl let me know if you need more info about my code.

Thanks in advance!
Princy
Top achievements
Rank 2
 answered on 09 Nov 2011
3 answers
98 views
How can i place a radgrid in treelist?
Shinu
Top achievements
Rank 2
 answered on 09 Nov 2011
2 answers
81 views
Hi,
  I have a grid in which I wanted to have a tooltip with some text and a picture shown to the bottom of the row when the row is clicked. I tried to get the row element from client side javascript as follows:
            function rowClicked(sender, args) {
                var plu = args.getDataKeyValue("PLUCODE")
                var pline = args.getDataKeyValue("PLINE")
                var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
                var id = args.get_gridDataItem().get_element().id;
                masterTable.fireCommand("ShowDetail", plu + "|" + pline+"|"+id);
}
this row element id was something like"RadGrid1_ctl00__1" and was passed to the server side and then the tooltip TargetControlID got set as following:
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
    if (e.CommandName == "ShowDetail")
    {
        string[] s = e.CommandArgument.ToString().Split('|');
        CurrentItemCode = s[0];
        this.ilvRadToolTip.TargetControlID = s[2];   // "RadGrid1_ctl00__1";
        this.ilvRadToolTip.Show();
        LoadUserControl(PlaceHolder, CurrentControl, s[0], s[1]);
    }
}
the tooltip was shown at the right position but the picture inside tooltip was missing. I tried to setTargetControlID = RadGrid1.CientID and the tooltip was shown correctly and of course the position was according to the whole grid.
Is there any manipulation inside that caused this to happen ? Would there be any solution as to meet my requirement?
I would appreciate it very much if you could provide some advice. Thank you.
TIGER
Top achievements
Rank 1
 answered on 09 Nov 2011
1 answer
131 views
I'm trying to do something similar to what is demonstrated here and am really stuck on a problem I am currently having and hoping someone can help.  Basically, in the ObjectDataSource1_Selecting method I am checking the FilterExpression (with linq expressions set to false) and the expression is missing the UniqueName of the column that I am passing to the javascript filter() function.  It looks like: "([] = 'Critical')". when I select "Critical" from the radcombo.

I've looked over it a bunch and am having trouble finding something configured wrong, here is the relevant code:

<telerik:GridTemplateColumn  DataType="System.String"
                    FilterControlAltText="Filter Urgency column" HeaderText="Urgency"  AllowFiltering="true"
                    SortExpression="Urgency" UniqueName="Urgency" Visible="true">
                    <FilterTemplate>
                            <telerik:RadComboBox ID="comboUrgencyFilter" DataSourceID="UrgencyTypeDataSource" DataTextField="Name"
                                DataValueField="Name" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("Urgency").CurrentFilterValue %>'
                                runat="server" OnClientSelectedIndexChanged="UrgencyIndexChanged" Width="90px">
                                <Items>
                                    <telerik:RadComboBoxItem Text="All" />
                                </Items>
                            </telerik:RadComboBox>
                            <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
 
                                <script type="text/javascript">
                                    function UrgencyIndexChanged(sender, args) {
                                        var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                        tableView.filter("Urgency", args.get_item().get_value(), 5);
                                    }
                                </script>
 
                            </telerik:RadScriptBlock>
                        </FilterTemplate>
                    <ItemTemplate>
                            <%# Eval( "UrgencyType.Name") %>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>

Thanks for any help
Brian
Top achievements
Rank 1
 answered on 08 Nov 2011
0 answers
62 views
Hello all!  

I have scanned the  Telerik forums and 'Net for an answer to this question, but have been so for unable.  So, please forgive me if this question has already been addressed.  :)

Our client is currently using an older version of the Telerik controls  (Telerik.Web.UI.dll : Runtime Version: 2.0.50727

Version: 2010.1.309.35).  

I am trying to do two things:

1) Configure the timeline in Day View so that there are more labels than just hourly.  Right now our timeline is showing 12am, 1am, 2am, etc - but we wish to, for instance, have labels every 15 minutes OR have tick-marks (if such a thing is possible) between labels.

2) Configure the Day View so Appointment do not snap to the nearest half-hour.  We are tracking events that occur pretty much anytime of day  - not just at the nearest half hour - and they have a need to have that level of granularity show.

So, once again, sorry if this is a repeat.  Any help would be great.  We certainly do enjoy using these controls and Telerik does a marvelous job of packing functionality into them - just not sure where to find this particular functionality.

Thanks!

-Greg D - Yahara Software, Ltd, Madison, WI

Gregory
Top achievements
Rank 1
 asked on 08 Nov 2011
4 answers
92 views
Hello-
We are implementing a media gallery and are using 2 Rad Rotators on the page, one of 4 images, small thumbnails, and one below of just 1 large image, which will show the details when the user clicks on the image on the top.

We are using the load on demand web service for both rotators, as some of the albums have 100's of images. Everything works fine on the top rotator, clicking next loads the next 10 images from the webservice, etc.

The problem is when the user pages through the small rotator to items 11-20, and clicks on one of the images. The large rotator at this point only has 10 items in it, so using javascript to call set_itemIndex does nothing. Is there a way we can programatically (through javascript ideally) call the webservice to load the next set of items in the bottom rotator?

Thanks

Eric
Eric
Top achievements
Rank 1
 answered on 08 Nov 2011
8 answers
152 views
Hi,

when we try to let a link in an image map open in a new window, this setting won't save. Links in image maps always open in the same window (RadE 4.5.3.0).

Is this a known bug? Any fix for that?

Regards,

Robert
Sebastien
Top achievements
Rank 1
 answered on 08 Nov 2011
1 answer
74 views
using:

<HeaderStyle VerticalAlign="Bottom" Wrap="True" BackColor="Blue" />

the back color will not change.

 

<telerik:RadGrid AutoGenerateColumns="false" ID="grdPendingClaims" AllowSorting="True"
    GridLines="Both" OnSortCommand="grdPendingClaims_SortCommand" OnNeedDataSource="grdPendingClaims_NeedDataSource"
    Height="200px" Width="9in" runat="server" CellSpacing="0">
    <HeaderStyle VerticalAlign="Bottom" Wrap="True" BackColor="Blue" />
     <ClientSettings>
        <Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="True" >
        </Scrolling>
    </ClientSettings>
    <ItemStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="25px" />
    <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true" />
    <MasterTableView TableLayout="Auto" Width="100%" AllowNaturalSort="false" GridLines="Both" >
        <Columns>
            <telerik:GridBoundColumn HeaderText="Status" DataField="CurrentStatus" UniqueName="CurrentStatus"
                SortExpression="CurrentStatus"
                ShowSortIcon="False" ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">     
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="ClaimID" DataField="ClaimID" UniqueName="ClaimID"
                SortExpression="ClaimID" Visible="False" ShowSortIcon="False"
                ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Claim Number" DataField="ClaimNumber" UniqueName="ClaimNumber"
                SortExpression="ClaimNumber"
                ShowSortIcon="False" ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="MemberID" DataField="MemberID" UniqueName="MemberID"
                SortExpression="MemberID" Visible="False"
                ShowSortIcon="False" ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Member Name" DataField="Member Name" UniqueName="Member Name"
                SortExpression="Member Name" ItemStyle-Wrap="False"
                ShowSortIcon="False" ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">
                <ItemStyle Wrap="False" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Start Date" DataField="BeginDate" UniqueName="BeginDate"
                SortExpression="BeginDate" DataType="System.DateTime"
                ItemStyle-Wrap="False" DataFormatString="{0:MM/dd/yyyy}" ShowSortIcon="False"
                ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">
                <ItemStyle Wrap="False" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="End Date" DataField="EndDate" UniqueName="EndDate"
                SortExpression="EndDate" DataType="System.DateTime"
                ItemStyle-Wrap="False" DataFormatString="{0:MM/dd/yyyy}" ShowSortIcon="False"
                ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">
                <ItemStyle Wrap="False" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Units" DataField="Units" UniqueName="Units"
                SortExpression="Units"
                DataType="System.Int32" DataFormatString="{0:###,##0}"
                ShowSortIcon="False" ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">
                <ItemStyle HorizontalAlign="Right" Wrap="False" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Division" DataField="Division" UniqueName="Division"
                SortExpression="Division"
                ShowSortIcon="False" ShowFilterIcon="False" ReadOnly="True" AllowFiltering="False">
                <ItemStyle HorizontalAlign="Center" Wrap="False" />
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

Pavlina
Telerik team
 answered on 08 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?