Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
152 views

I have a problem with setting the width of an RadDatePicker contro and set the SelectedDate property via the codebehind.
Her is my sample code APSX:

<telerik:RadDatePicker ID="DatePicker1" runat="server" Width="30px" AutoPostBack="true">
<Calendar CultureInfo="en-US" FirstDayOfWeek="Monday" ID="Calendar1" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x" runat="server"/>
<DateInput ID="DateInputFrom" DateFormat="dd.MM.yyyy" DisplayDateFormat="dd.MM.yyyy" runat="server"/>
</telerik:RadDatePicker>

And here the Codebhind:

protected void Page_Load(object sender, EventArgs e)
{
DatePicker1.SelectedDate = DateTime.Now;
}

Is there any workaround to set the correct Width?

 

Richard
Top achievements
Rank 1
 answered on 12 Mar 2012
1 answer
149 views
Hi all,
I am using In place edit mode. I want to add filtering option in this. How is it possible?
Richard
Top achievements
Rank 1
 answered on 12 Mar 2012
8 answers
155 views

Dear Supporter and All,

I'm customizing pager control and it works almost fine for the functionality except that the look of the NumericPages text style I cannot do it.
Please code behind for the Grid for ItemCreated event

protected void RadGridSummaryView_ItemCreated(object sender, GridItemEventArgs e)
{
if (e.Item is GridPagerItem)
{
GridPagerItem gridPager = e.Item as GridPagerItem;
Control numericPagerControl = gridPager.GetNumericPager();
Control placeHolder = gridPager.FindControl("NumericPagerPlaceHolderSummaryView");
placeHolder.Controls.Add(numericPagerControl);
placeHolder.Controls.Add(new LiteralControl("&nbsp;"));
}
}

Please the Grid definition for Pager Control as below

<NoRecordsTemplate>
    <span style="padding-left: 10px;">There are no items to show in this view.</span></NoRecordsTemplate>
<PagerTemplate>
    <table width="100%" cellpadding="0" cellspacing="0">
        <tr class="">
            <td width="46%" class="itemPagingBg">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="25%">
                            Showing                                                    
                            <telerik:RadComboBox ID="RadCombo_PageSize_GridView" DataSource="<%# new object[]{20, 25, 30, 35, 40} %>"
                                Width="40px" SelectedValue='<%# DataBinder.Eval(Container, "Paging.PageSize") %>' Skin="Windows7"
                                runat="server">
                            </telerik:RadComboBox>
                             results per page
                        </td>
                    </tr>
                </table>
            </td>
            <td class="itemPagingBg" width="54%" style="padding-top: 10px;" align="right">
                <asp:Panel runat="server" ID="NumericPagerPlaceHolderGridView" />
            </td>
        </tr>
    </table>
</PagerTemplate>
<PagerStyle mode="NumericPages" alwaysvisible="True" />


Please see the attached image file result I got. Just below it I have included the desired look and feel of the NumericPage just below the image and this is exactly the same as customized NumericPage of Telerik Forum. Please advise how I can achieve this by extending my code.

Thank you in advance for all your inputs.
Regards,
Phyrom

phyrom
Top achievements
Rank 1
 answered on 12 Mar 2012
2 answers
106 views
Hello:

Two quick questions.  Do the DataFieldID and DataFieldParentID have to be numeric (like an integer data type)?  It doesn't seem to work if I have those fields as strings.  I'm trying to generate an org chart, using a string-based employee ID, but it comes up blank.

Second, to make it work, I converted the ID to an integer for the two fields.  It then works fine, but I noticed that I have to set the "root" item to have a "0" for the parent field.  Is this expected?  As an example, I want to generate an Org with me at the top.  In the dataset, the row that represents me has a parent employee ID, but that employee ID is not present in the data since I don't want my supervisor displayed.  In order to get the chart to render, I have to look through the records and ensure that my record as "0" for the parent.

Perhaps this second issue is related to the first.  If a string is in fact supported, does the top level item need to have the parent field set to a particular value?  Perhaps an empty string?

Thanks,
Chris
Christopher
Top achievements
Rank 1
 answered on 12 Mar 2012
1 answer
67 views
Hi,

I'm sure how to use this function clearSelection().  I'm trying the to put a menu item "Clear Selection" on the context menu.

Thanks

Vinh Vu
Rumen
Telerik team
 answered on 12 Mar 2012
3 answers
112 views
i had to upgrade my telerik controls to the latest version..
but this hasnt worked, and now i cant build my project due to lots of build errors.

on running the upgrade wizard i get this error popping up

Error executing cutom action
Telerik.web.ui.vsx.actions.multiprojectupdatereferencesaction: could not find file 'C:\Users\Documents\Visual Studio 2010\Projects\MyProject\Source Code\MyProject\bin\Telerik.web.design.dll'

any idea how i resolve this?
Chavdar Dimitrov
Telerik team
 answered on 12 Mar 2012
3 answers
63 views
Hello again, I have a problem with my timeslots. It works fine when I am using the dayview, but when I am in weekview my timeslots are not displaying. 

I have to timeslots in my weekview and it looks like this, and it's not working. It only shows one big gray field. 

EIDT: I fixed it now, thanks.

if (e.TimeSlot.Start <= new DateTime(2011, 8, 31, 10, 15, 00) || e.TimeSlot.Start >= new DateTime(2011, 8, 31, 15, 00, 00))
            {
                 
                Debug.WriteLine(e.TimeSlot.Start);
                //Debug.WriteLine(e.TimeSlot.Start);
                e.TimeSlot.CssClass = "Disabled";
            }
 
if (e.TimeSlot.Start <= new DateTime(2011, 8, 29, 10, 15, 00) || e.TimeSlot.Start >= new DateTime(2011, 8, 29, 15, 00, 00))
            {
                 
                Debug.WriteLine(e.TimeSlot.Start);
                //Debug.WriteLine(e.TimeSlot.Start);
                e.TimeSlot.CssClass = "Disabled";
            }
Sander
Top achievements
Rank 1
 answered on 12 Mar 2012
2 answers
120 views
I am using a Rad Menu on master page. Take for example, the structure of Rad Menu to be: Root-1: Sub-1,Sub-2,Sub-3 and Root-2:Sub-4, Sub-5.
Now my Sub-2 menu's url is rewritten to point to Root-1 url. If I go to Sub-2 and than if I click on Sub-4 menu, it will show 404 error as the URL is the wrong.

How to fix this?

FYI: Also, I am using UrlRewriter to rewrite rules in web.config.
Naupad
Top achievements
Rank 1
 answered on 12 Mar 2012
3 answers
95 views
I have a problem with selecting a color in the HSB selection mode when opening the HSB panel while the color #ffffff or #000000 is selected. I can reproduce this issue on the telerik demo pages (http://demos.telerik.com/aspnet-ajax/colorpicker/examples/default/defaultcs.aspx).

Select #ffffff or #000000 on the webpalette and open the HSB panel. Now notice that the RGB values are not updated when clicking in the color spectrum. This only happens when first #ffffff or #000000 is selected, any other color works fine.   
Slav
Telerik team
 answered on 12 Mar 2012
8 answers
327 views
I have a panel bar which i use to navigate around my application once the user has logged in.  The problem i have is when the user logs out and then comes back into the application i want ot lose the fact that they clicked on the log out item which is still highlighted and any item that has children remain expanded if they were at the time of log out.  So basically just want to clear the cookie that is holding the fact that the items are selected etc...

If I turn the PersistStateinCookie  to false then this gives me the reaction i want at logout but i want to keep this as true for when the user is in the App so it remembers the state of the panel bar when they are not loggin out.

This is what i have got and have tried:

<

 

telerik:RadPanelBar id="panelbar" Runat="server" ExpandMode="SingleExpandedItem" AllowCollapseAllItems="true" OnClientItemClicked="PanelBarItemClicked" CookieName="TelerikRadPanelBarCookie" PersistStateInCookie="True" EnableEmbeddedSkins="False" Skin="CommuniGatorSkin">

 

 

</telerik:RadPanelBar>

 

 
Tried with no avail on log out.

Session(

"TelerikRadPanelBarCookie") = Nothing

 

Response.Cookies(

"TelerikRadPanelBarCookie").Expires = EmarketingDateTime.Now.AddYears(-30)

 


Also tried to set the items as selected as false in the Xml which i am generating dynamically but this too does not work.
Any ideas?

Thanks Aaron  
Dimitar Terziev
Telerik team
 answered on 12 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?