Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
887 views
Hi!

Im using Q2 2012, I'm trying to set the width of my RadDatePickers, i have tried everything, including:

http://www.telerik.com/community/forums/aspnet-ajax/input/raddatepicker-calendar-width.aspx

http://www.telerik.com/community/forums/aspnet-ajax/calendar/raddatepicker-width-does-not-change-in-ie8.aspx


<telerik:RadDatePicker ID="dpTillDate" Runat="server" Culture="en-En" EnableTyping="False" Skin="Hay" Width="30px" CssClass="width100" EnableEmbeddedSkins="False">
<Calendar ID="Calendar1" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"  DayCellToolTipFormat="dddd,yyyy. MMMM dd." FirstDayOfWeek="Monday" Skin="Hay" TitleFormat="yyyy MMMM" runat="server" ShowRowHeaders="False" EnableEmbeddedSkins="False"></Calendar>
<DateInput ID="DateInput1" DisplayDateFormat="yyyy.MM.dd." DateFormat="yyyy.MM.dd." DisplayText="Till::" LabelWidth="10%" ReadOnly="True" runat="server" Width="30px"  EnableEmbeddedSkins="False"></DateInput>
<DatePopupButton  ToolTip="Naptár megnyitása"></DatePopupButton></telerik:RadDatePicker>

help please
Princy
Top achievements
Rank 2
 answered on 02 Aug 2012
1 answer
95 views
Hi I'm struggling to get my update / insert working correctly and hoping someone might be able to help..
I need to update the grid datasource based on some buttons on the page being selected or not.

when I try to insert a new record the entered values in teh edit form disappear but the edit form remians open and no changes are written back to the database.. I've been trying to follow some of the demo examples but I cannot find one which suits what I'm trying to do exactly..





Jake
Top achievements
Rank 1
 answered on 02 Aug 2012
3 answers
115 views
Hello,

I am trying to get the value of the column in RadGrid. Below is my code. It is working Perfectly fine.

 var satype = tableView.getCellByColumnUniqueName(objRows[nCurrentIndex], "ExpirationDate")
  var annual = satype.innerText;

My Issue is, when the cell value is nothing, it is getting me the next cell Value even though Next column uniquename is different from Expiration date. I want to disable the textbox, if there is no value in the column.

How an I get this ?
Shinu
Top achievements
Rank 2
 answered on 02 Aug 2012
3 answers
145 views
I am trying to disable ratator but I found when I make it enable=flase than also I was able to click on it!
Is there is any other property?

Thanks,
Shakti
Princy
Top achievements
Rank 2
 answered on 02 Aug 2012
0 answers
68 views
Hi Sir:

I use the same code:   http://www.telerik.com/community/code-library/aspnet-ajax/grid/manual-insert-update-delete-using-formtemplate-and-sql-backend.aspx
I add a new column call "Company Description", all the coding are same as "company name",  It's works very good normally.
But When client side put "<"  char in the textbox, both update or cancel botton will got error:
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500' when calling method: [nsIDOMEventListener::handleEvent]

Please help

Qiu
 
Michael
Top achievements
Rank 1
 asked on 02 Aug 2012
1 answer
87 views
How can we change image source in Readion Button Content Template at run time depending on specific condition?



<telerik:RadButton runat="server" ID="RadButton1" Width="90"
           Height="90" CssClass="tasks" Skin="Default">
           <ContentTemplate>
               <img alt="cog" src="Img/cog.png" />
               <span class="btnText">Tasks</span>
           </ContentTemplate>
       </telerik:RadButton>
Princy
Top achievements
Rank 2
 answered on 02 Aug 2012
3 answers
105 views
I have two types of users for the website, admin and non-admin. Both users can edit the data using the edit form, but only admin can edit the password textbox. I plan to make the text box visible only to the admin

During painting the edit form, the application should check whether the user is an admin (using a variable stored in Default.aspx.cs) and change the value for the Visible properties for the textbox accordingly.

<asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Password") %>' Visible='<%# if (loggedInUser == admin) {true;} else {false;} %>' ></asp:TextBox>


Can anyone tell me how to do this. The code above wouldn't compile and I'm a newbie in web programming.

Thanks.
Iris
Top achievements
Rank 1
 answered on 02 Aug 2012
0 answers
128 views
I receive this error while trying to perform an INSERT with EntityDataSource and the RadGrid. The odd thing is that the value is in fact inserted, but the error persists. Perhaps it has something to do w/ the EF or a problem with the reference value for the User object.

I need to manually set the value for UserID when creating a Scenario and when I try to set it in RadGridScenarios_InsertCommand event I get the error. If I do not manually set via code and manually set it in the UI there is no error (unless I reference a UserID which doesn't exist in Users table), but only when I try to set via code.

Before you ask... Yes UserID actual exists in the Users table and Scenarios.UserID references Users.UserID.

SQL Code:

CREATE TABLE Users
(
    UserID                    int                IDENTITY PRIMARY KEY            NOT NULL
    ,FirstName                varchar(30)                            NOT NULL
    ,LastName                varchar(30)                            NOT NULL
    ,WindowsLogin            varchar(30)                            NOT NULL
    ,EmailAddress            varchar(30)
    ,[Disabled]                bit                DEFAULT 0
    ,Administrator            bit                DEFAULT 0
)
GO

INSERT INTO Users(FirstName, LastName, WindowsLogin) VALUES('MyFirst', 'MyLast', 'MMyLast')

GO

CREATE TABLE Scenarios
(
    ScenarioID            int IDENTITY PRIMARY KEY NOT NULL
    ,Title                            varchar(30) NOT NULL
    ,Notes                            varchar(1000)
    ,UserID                            int REFERENCES Users(UserID) NOT NULL
    ,DateCreated                    datetime DEFAULT(GETDATE())
)


ASPX Code
<telerik:RadGrid 
            ID="RadGridScenarios"
            runat="server" 
            AutoGenerateColumns="False" 
            CellSpacing="0" 
            DataSourceID="EntityDataSourceScenarios" 
            GridLines="None" 
            AllowAutomaticDeletes="True" 
            AllowAutomaticInserts="True" 
            AllowAutomaticUpdates="True"
            OnInsertCommand="RadGridScenarios_InsertCommand">

            <MasterTableView 
                DataKeyNames="ScenarioID" 
                DataSourceID="EntityDataSourceScenarios"
                CommandItemDisplay="Top">
                <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

                <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>

                <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>

                <Columns>
                    <telerik:GridBoundColumn 
                        DataField="Title" 
                        FilterControlAltText="Filter Title column" 
                        HeaderText="Title" 
                        SortExpression="Title" 
                        UniqueName="Title">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn 
                        DataField="Notes" 
                        FilterControlAltText="Filter Notes column" 
                        HeaderText="Notes" 
                        SortExpression="Notes" 
                        UniqueName="Notes">
                    </telerik:GridBoundColumn>
                </Columns>

                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                </EditFormSettings>

            </MasterTableView>

            <FilterMenu EnableImageSprites="False"></FilterMenu>

        </telerik:RadGrid>

C# Code
protected void RadGridScenarios_InsertCommand(object sender, GridCommandEventArgs e)
        {
            GridEditableItem item = e.Item as GridEditableItem;
            Hashtable values = new Hashtable();
            item.ExtractValues(values);
            Scenario scenario = new Scenario();
            item.UpdateValues(scenario);
            scenario.UserID = 1 //this.Database.Users.Single(u => u.WindowsLogin == username).UserID;
      }

Thanks,

Steve
Steve
Top achievements
Rank 1
 asked on 01 Aug 2012
3 answers
74 views
Hi,

I am working on RadScheduler. My question is can we extend the start data and end date timings iin Advanced Edit form. Some of my clients are based in other countries and if I want to schedule a meeting after 6 pm or before 8 am. Right now I am not able to do that as my Advanced Edit form only shows timings from 8am to 5:30 pm. I did went through all the examples in the Radcontrols for ASP.NET AJAX Q2 2012 and all of them have the start and end timings 8:00am - 5:30 pm.

Please advice.

Thanks,
Rakesh
Rakesh
Top achievements
Rank 1
 answered on 01 Aug 2012
17 answers
400 views
Hi !

I have a little problem with the Radschulder DayView.

We use our own timeslot context menues, now when a a user selects some timeslots, and click on a context menue,
we call the (server side api)

TimeSlotContextMenuItemClicking(object sender, TimeSlotContextMenuItemClickingEventArgs e)


and wanted to get the selected timeslot begin/end time (let us say from 08:00am to 09:30am) with

e.TimeSlot.Start;
e.TimeSlot.End;


but all we get in these to values is, the timeslot where the user hit the context menue (always 30 minutes).

Is there a chance to get the complete selected timeslots, as it is used when adding an appointment client side ?

with best regards
Markus
Rakesh
Top achievements
Rank 1
 answered on 01 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?