Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
101 views
Hi all:

I have a RadDateInput set up thus:

 <telerik:RadDateInput ID="dt1" runat="server" Culture="en-US"
      DisplayDateFormat="dd MMM yyyy" Font-Names="Verdana"
      Font-Size="12px" Height="22px" LabelCssClass=""
      Style="z-index: 116; left: 16px; position: absolute; top: 50px" TabIndex="189"
      Width="85px">
    </telerik:RadDateInput>

and when I enter a date, like 2011 1 1, it displays correctly as 01 Jan 2011, however if I then grab the value from the Input, I get: 2011-01-01-00-00-00.

Can anyone tell me how I can drop the extra values (which I assume are for time) and be left with 2011-01-01?

John.




Princy
Top achievements
Rank 2
 answered on 07 Jan 2011
1 answer
37 views
Hi, I have a RadListView in which it has a fieldset inside, and I need to do the following,I'm feeding some fields within this fieldset and I have a DIV, needed to check, after playing all the data inside the fieldset, it has certain value would be found if the DIV witha background color specified, anyone know how I do it?
Radoslav
Telerik team
 answered on 07 Jan 2011
2 answers
127 views
Hi ,

 I am using Radcalendar , while click on the particular date radwindow is opening, i need to display that particular date on the radwindow.
 tell me how to do?
Brown
Top achievements
Rank 1
 answered on 07 Jan 2011
4 answers
239 views
Hi Dear

When I use LayoutTemplate  in design time it`s work correctly but in runtime when i use "Page.LoadTemplate" method for loading template when DataBind() fired it thrown exception :

"

The RadListView control does not have an item placeholder specified.

"

RadListView1.PageSize = (int)contentList.PageSize;
RadListView1.DataSource = contents;
RadListView1.LayoutTemplate = Page.LoadTemplate(contentList.LayoutTemplate);
RadListView1.ItemTemplate = Page.LoadTemplate(contentList.ItemTemplate);
RadListView1.VirtualItemCount = totlaCount;
RadListView1.DataBind();

Best Regards.
temperory temperory
Top achievements
Rank 1
 answered on 07 Jan 2011
0 answers
85 views
Hi Telerik Team,

I need a little help on showing the item number in the footer template of the radcombobox. I have tried your demo in your website (see below) but the value of the Items.Count is not showing.. The way I bind my data is through looping to my collections and add the data by Items.Add method instead of DataBind() method. I did this approach for some reasons. Please help me.

    Protected Sub cboConsultant_ItemsRequested(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs) Handles cboConsultant.ItemsRequested
        For Each user As Usr In Usr.GetPeerUsersForJob
            Dim item As New RadComboBoxItem
            item.Text = user.ContactName
            item.Value = user.UserId
            item.Attributes.Add("ContactEmail", user.ContactEmail)
            cboConsultant.Items.Add(item)
            item.DataBind()            
        Next

    End Sub

.vb:
 Protected Sub RadComboBox1_DataBound(sender as Object, e as EventArgs)
            'set the initial footer label
            CType(RadComboBox1.Footer.FindControl("RadComboItemsCount"), Literal).Text = Convert.ToString(RadComboBox1.Items.Count)
        End Sub

.aspx:
 <FooterTemplate>
            A total of
            <asp:Literal runat="server" ID="RadComboItemsCount" />
            items
        </FooterTemplate>

Regards,
masterlopau
Juan Paulo
Top achievements
Rank 1
 asked on 07 Jan 2011
4 answers
141 views
I have a radgrid with 3 radiobutton in each row as a group. Either 1 will be selected and rest 2 will be not. My requirement is to show a count of radiobutton's selected for a particular page at the buttom of the grid(not footer). For eg. Not Mine:2, Remove:4, Keep: 4. The way that i thought of iterating through the MasterTable rows and get the radiobutton control but as it is in rad grid I cant get those. Please provide a solution.

Thanks in advance.

<telerik:RadGrid ID="grvReviewerView" runat="server" AutoGenerateColumns="False"
ShowFooter="true" GridLines="Both" EnableEmbeddedBaseStylesheet="true" EnableEmbeddedSkins="true"                                               AllowPaging="true" PageSize="10" AllowSorting="true" Skin="Office2007" OnDataBound="grvReviewerView_DataBound"                                                  OnNeedDataSource="grvReviewerView_NeedDataSource" AllowFilteringByColumn="true" ShowGroupPanel="True" EnableHeaderContextMenu="true" OnItemDataBound="grvReviewerView_ItemDataBound">                                                  <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true" ColumnsReorderMethod="Reorder">
<Scrolling AllowScroll="true" UseStaticHeaders="true" EnableVirtualScrollPaging="true"                                                          FrozenColumnsCount="3" />
<ClientEvents OnRowClick="UpdateCount"/>
<Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" AllowResizeToFit="true" />
<Animation AllowColumnReorderAnimation="true" AllowColumnRevertAnimation="true" />
<Selecting UseClientSelectColumnOnly="true" />
  </ClientSettings>
  <PagerStyle AlwaysVisible="true" />
 <MasterTableView TableLayout="Fixed" AutoGenerateColumns="False" AllowMultiColumnSorting="true" GroupLoadMode="Client">
<Columns>
<telerik:GridTemplateColumn HeaderText="Not Mine" UniqueName="NotMine" AllowFiltering="false" HeaderStyle-Width="50px">
<ItemTemplate>
<asp:RadioButton ID="rdbNotMine" runat="server" GroupName="ReviewStatus" Checked='<%# Convert.ToBoolean(Eval("NotMine")) %>'/>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderStyle-Width="50px" HeaderText="Remove Access" UniqueName="RemoveAccess"
AllowFiltering="false">
<ItemTemplate>
<asp:RadioButton ID="rdbRemoveAccess" runat="server" GroupName="ReviewStatus" Checked='<%# Convert.ToBoolean(Eval("RemoveAccess")) %>'/>
</ItemTemplate>
</telerik:GridTemplateColumn>
 <telerik:GridTemplateColumn HeaderText="Keep Access" UniqueName="KeepAccess" AllowFiltering="false" HeaderStyle-Width="50px">
<ItemTemplate>
<asp:RadioButton ID="rdbKeepAccess" runat="server" GroupName="ReviewStatus" Checked='<%# Convert.ToBoolean(Eval("KeepAccess")) %>' />
</ItemTemplate>
</telerik:GridTemplateColumn>
<custom:CustomFilterClass DataField="Legacy_ID" FilterControlWidth="163px" HeaderText="User Legacy ID"
SortExpression="Legacy_ID">
<HeaderStyle Width="160px" />
<ItemTemplate>
<asp:Label ID="lblUserLegacyID" Text='<%# Eval("Legacy_ID") %>' runat="server"></asp:Label>
</ItemTemplate>
</custom:CustomFilterClass>
<custom:CustomFilterClass DataField="NT_Login" FilterControlWidth="163px" HeaderText="NT Name"
SortExpression="NT_Login">
<HeaderStyle Width="160px" />
<ItemTemplate>
<asp:Label ID="lblNTLogin" Text='<%# Eval("NT_Login") %>' runat="server"></asp:Label>
</ItemTemplate>
</custom:CustomFilterClass>
</Columns>
<AlternatingItemStyle />
<ItemStyle />
<HeaderStyle Wrap="false" />
<FooterStyle />
<NoRecordsTemplate>
 No Data
</NoRecordsTemplate>
</MasterTableView>
</telerik:RadGrid>
Debojyoti
Top achievements
Rank 1
 answered on 07 Jan 2011
4 answers
146 views

I have been running Rad controls on my development machine with no problems at all, i tried to install the project at staging environement. unfortunately, whenever i try to run a certain page I get a javascript error in webresource.axd file.

the page that i'm trying to view has Radtabstrip, Muiltpage control, RadAjax & other Rad controls. I'm not sure what is causing this javascript error, but at some point while trying to debug it stops at a line where it points to TabStrip.

any one facing this issue?

Harshal
Top achievements
Rank 1
 answered on 07 Jan 2011
0 answers
50 views
Hi,
I am using RadTabStrip + RadMultiPage and it i am using Telerik 2008.2.826.20 version.
I coverted the classic RadTabStrip.Net2 to Telerik 2008.2.826.20. After that it started throwing javascript error "Children" is null or not an object.
The error occures in Telerik.Web.UI.WebResource.axd. (var _bd=_ba.children||_ba.childNodes;) where _ba is null.

Any help is appreciated.

Thanks,
Harshal.
Harshal
Top achievements
Rank 1
 asked on 07 Jan 2011
3 answers
91 views
Hi.

Our timeline view currently renders as shown in render.png. The appointments shown as "A" and "N" in the picture are supposed to be the same schedule, but due to differences the way our scheduling system works and the RadScheduler works, I have to create them as several separate appointments. The "A"s all share the same ScheduleID, same for the "N"s, if that helps. The way it renders is pretty useless, though. The "A"s don't all show up on the same line; same for the "N"s.

In desired-render.png I've created a mock-up of how I would like it to look. So my question is, given the parameters above (separate appointments that actually are supposed to be the same), can I get the RadScheduler to render it as in desired-render.png?
Peter
Telerik team
 answered on 07 Jan 2011
3 answers
126 views
Hi

I am trying to set the following scenario:
Set RadTabStrip with TabTemplate defined, tabs are generated by supplying DataSource. the property NavigateUrlField is set either on RadTabStrip tag or on RadDataBinding node.
At run time on Page_Init, or Page_Load - I supply DataSource and call DataBind(). After this call, on CodeBehind side (in debug mode), I can see tabs generated with NavigateUrl property correctly filled. However, when control is rendered on the page and I click on Tab, nothing happens. Also - nothing in NavigateUrl found, when setting OnClientSelecting method and checking value of NavigateUrl by calling 

var tab = eventArgs.get_tab();
var url = tab.get_navigateUrl();

here variable url gets value "null"

I also tried setting NavigateUrl on TabDataBind event, same story....


Interestingly - if I remove TabTemplate block and set DataTextField, I get tabs created and NavigateUrl is not lost and works right. However, Tab consists of multiple items and it is needed to have TabTemplate there.

Also it is strange that setting explicitly NavigateUrl on client side, on event OnClientSelecting,  from passed Attributes, does not help:
var tab = eventArgs.get_tab();
var
attr = tab.get_attributes();
var url = attr.getAttribute("url");
tab.set_navigateUrl(url);

I managed to get required behaviour only as following, on event OnClientSelecting
var tab = args.get_tab();
var attr = tab.get_attributes();
var url = tab.get_navigateUrl();
if (url == null)
{
    url = attr.getAttribute("url");
    document.URL = url;
}


I found on this forum a thread as of 2008
http://www.telerik.com/community/forums/aspnet-ajax/tabstrip/radtabstrip-templates-and-loading-in-iframe.aspx 
where person tried to do something similar and Tech Support person also had to use some similar hack by calling
window.open(url, target)

So I am curios, if over 2 years there was any fix for this behaiviour, or if am I doing something wrong?

Dmitry
Yana
Telerik team
 answered on 07 Jan 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?