Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
84 views
I am using radscheduler to show TV programs schedule. The problem I am facing is, I have created 15 minutes slots in the scheduler control i.e. complete 24 hours of a day would have 4 x 24 = 96 Slots, drawn as boxes against 7 days. The scheduler looks like as follows:

Days   | 00:00 - 00:15 | 00:16 - 00:30 | 00:31 - 00:45 | 00:46 - 01:00 | 01:01 - 01:15 |.....    
--------  ------------------ ------------------  ------------------  ------------------  ------------------
Mon    |                       |                        |                       |                       |                       |               
--------  ------------------ ------------------  ------------------  ------------------  ------------------
Tue    |                       |                        |                       |                       |                       |               
--------  ------------------ ------------------  ------------------  ------------------  ------------------
Wed    |                       |                        |                       |                       |                       |               
--------  ------------------ ------------------  ------------------  ------------------  ------------------
Thu    |                       |                        |                       |                       |                       |               
--------  ------------------ ------------------  ------------------  ------------------  ------------------
Fri      |                       |                        |                       |                       |                       |               
--------  ------------------ ------------------  ------------------  ------------------  ------------------

Now if a program is starting at 00:25 and ending at 00:40 (on Monday) it should be displayed as follows:
Days   | 00:00 - 00:15 | 00:16 - 00:30 | 00:31 - 00:45 | 00:46 - 01:00 | 01:01 - 01:15 |.....    
--------  ------------------ ------------------  ------------------  ------------------  ------------------
Mon    |                       |                 ||<   Program A >||   |                       |                       |               
--------  ------------------ ------------------  ------------------  ------------------  ------------------

But it is getting displayed as follows:

Days   | 00:00 - 00:15 | 00:16 - 00:30 | 00:31 - 00:45 | 00:46 - 01:00 | 01:01 - 01:15 |.....    
--------  ------------------ ------------------  ------------------  ------------------  ------------------
Mon    |                       ||<               Program A           >||                       |                       |               
--------  ------------------ ------------------  ------------------  ------------------  ------------------
i.e. it is taking whole of the two slots where any portion of it lies. Which is incorrect because now the start and end time it is showing is wrong. I couldn't figure out if there is any property in Rad Scheduler which could resolve the issue. I just want to know if there is some way to accomplish this.

regards 

Mohammad Kamran.
Peter
Telerik team
 answered on 25 Aug 2009
9 answers
551 views

Hi,

I am using the RadGrid (Q1 2007) for a project.

Is there a way I can stop the cells expanding to display all the content?

one of the fields contains a large amount of text data, that makes the grid look ridiculous. Can I limit it in some way to a max of two lines & then clip the rest?

I imagine this should be fairly simple to do, but im struggling to see how!

Thanks

Stephen.
Dimo
Telerik team
 answered on 25 Aug 2009
1 answer
103 views
Hi I have several range sliders. in IE8 only the selection end (MAX Value) handle can be dragged. the selection start (MIN VALUE) cannot.

when I have two sliders horizonatlly next to each other only the handle on the right slider can be dragged, is there any changes i need to make to get this to work?

i copied an example slider from your demo's and it had the same problem.

below is a very rough example of it not working

<div style="float:left">  
    <div style="width:220px;float:left">  
          
        <telerik:RadSlider runat="server" Width="200px" ID="RadSlider1" IsSelectionRangeEnabled="true" 
                        MinimumValue="0" MaximumValue="300" SmallChange="1" SelectionStart="0" SelectionEnd="300" 
                         AutoPostBack="false" 
                        ShowDecreaseHandle="false" ShowIncreaseHandle="false" > 
        </telerik:RadSlider></div>  
        <div style="width:220px;float:left">  
        <telerik:RadSlider runat="server" Width="200px" ID="RadSlider2" IsSelectionRangeEnabled="true" 
                        MinimumValue="0" MaximumValue="300" SmallChange="1" SelectionStart="0" SelectionEnd="300" 
                         AutoPostBack="false" 
                        ShowDecreaseHandle="false" ShowIncreaseHandle="false" ></telerik:RadSlider> 
</div> 
    </div> 

any help you can provide is appreciated.

Paddy
Tsvetie
Telerik team
 answered on 25 Aug 2009
2 answers
100 views
Hi,

is there a simple way to get the old (and the new values) of GridBoundColumns inside the update/insert command?

I have bound my data manually to the grid. (By setting the DataSource to a DataTable)
Three fields are relevant. (UID, DCId, MRDR_NR). I only showup some of these in the Editmode.
<mastertableview editmode="EditForms"   
                         enableheadercontextmenu="True"   
                         insertitempageindexaction="ShowItemOnFirstPage"   
                         ShowGroupFooter="True" InsertItemDisplay="Bottom" 
                         DataKeyNames="UID" CommandItemDisplay="Bottom">  
            <Columns> 
                <telerik:GridBoundColumn   
                    DataField="UID" ReadOnly="True"   
                    HeaderText="UID" UniqueName="UID" Visible="false">  
                </telerik:GridBoundColumn>      
                <telerik:GridBoundColumn DataField="DCId"   
                        HeaderText="DCId" UniqueName="DCId">  
                    <ItemStyle Width="100" /> 
                </telerik:GridBoundColumn>              
                <telerik:GridBoundColumn DataField="MRDR_NR" HeaderText="MRDR_NR" UniqueName="MRDR_NR">  
                    <ItemStyle Width="100" /> 
                </telerik:GridBoundColumn> 
            </Columns>                                                          
</mastertableview>  

Now i just want to update a value in my DataTable. Like (update xy set MRDR_Nr=NEW where UID=OLD).
How can i get the OLD and NEW Values inside the UpdateCommand?
I found an example to find out the OLD Values of my data. But not the NEW Values. And not by FieldNames.

protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e)  
    {  
        GridEditableItem editedItem = e.Item as GridEditableItem;  
        GridEditManager editMan = editedItem.EditManager;  
        foreach (GridColumn column in e.Item.OwnerTableView.RenderColumns)  
        {  
            if (column is IGridEditableColumn)  
            {  
                IGridEditableColumn editableCol = (column as IGridEditableColumn);  
                if (editableCol.IsEditable)  
                {  
                    IGridColumnEditor editor = editMan.GetColumnEditor(editableCol);  
                    string editorText = "unknown";  
                    object editorValue = null;  
                    if (editor is GridTextColumnEditor)  
                    {  
                        editorText = (editor as GridTextColumnEditor).Text;  
                        editorValue = (editor as GridTextColumnEditor).Text;  
                    } 

Is there a way to get the data of my columns?
Like "item["DCId"].value" (old and new)?
Lars
Top achievements
Rank 1
 answered on 25 Aug 2009
75 answers
2.0K+ views
Hello,

I just installed new Q1, there are a lot of great thinks but new Skins are making me crazy.

Is it possible to use previous skins version ?
If you want details : new skins are too big, text is strange (too small or too bold), problems with layout.

Please help !
Ivo
Telerik team
 answered on 25 Aug 2009
4 answers
173 views
i have color picker
it shows pallet at first time
after that if i click any button on the page
it is not working
Tsvetie
Telerik team
 answered on 25 Aug 2009
0 answers
161 views
I have put a RadScheduler on a UserControl which resides on an Form. In this UserControl i have a Button which makes postbacks.
Also the entire content of the UserControl is put into a RadAjaxPanel.
When the form is loaded from a link it works everything as expected, but when I do a postback by clicking on the button, the RadScheduler it is beeing reloaded, but the links in the header of the Scheduler are not working anymore.
The form is in the root of the webproject, and the usercontrol is in a subfolder under the project structure.
The RadControls product version is 2008 Q2.

I will appreciate any help.

Thanks.
Istvan Kurta
Top achievements
Rank 1
 asked on 25 Aug 2009
2 answers
181 views
Hi,

I have a RadGrid to which I am adding GridTemplateColumns at runtime. I am have label,link and checkbox ITemplate's which I am giving to GridTemplateColumns. I am able to generate links on the RadGrid successfully. But, I want to perform postback operation when I click on these links. I added runat server attribute to the linkbuttton which is causing a postback. I am able to understand that it is a postback from my generate link button using __EVENTARGET property.

My issue is I am not able to find the text of the link button to which this postback is happend. I checked __EVENTARGUMENT property but of no use.

Is there anyway to find this???


Thanks,
Mahesh
Mahesh Babu
Top achievements
Rank 1
 answered on 25 Aug 2009
7 answers
93 views
Hi!

I have radformdecorator which styles my buttons with the Office2007 skin. I want to add a focus style which is the same as the Office2007 mouseover style. How can is do this?

Regards,
Marlou

Marlou
Top achievements
Rank 1
 answered on 25 Aug 2009
1 answer
102 views
for some reasom my RadUploadprogress indicator no longer works !  I have this in my page

<

 

telerik:RadProgressManager ID="RadProgressManager1" runat="server"

 

 

EnableEmbeddedBaseStylesheet="False" EnableEmbeddedSkins="False"

 

 

UniquePageIdentifier="b8e63757-fb25-4e29-87d5-8fce8d62bcfc" Skin="Vista" />

 


 

<telerik:RadProgressArea id="progressArea1" runat="server" skin="Vista"

 

 

Culture="English (United Kingdom)" DisplayCancelButton="True" BorderStyle="None">

 

 

<Localization Uploaded="Uploaded"></Localization>

 

 

</telerik:RadProgressArea>

 



<

 

telerik:RadUpload

 

 

ID="RadUpload1" runat="server"

 

 

Skin="Vista"

 

 

MaxFileInputsCount="1"

 

 

TargetFolder="~/Uploads"

 

 

OverwriteExistingFiles="true"

 

 

AllowedFileExtensions=".jpg,.jpeg,.gif"

 

 

ControlObjectsVisibility="ClearButtons" MaxFileSize="10000000"

 

 

Culture="English (United Kingdom)" >

 

 

</telerik:RadUpload>

 




and this in my web.config

<

 

add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" verb="*" validate="false"/>

 




Its been working in the past, why not anymore ?  The only changes was an update to a newer version (the lates)
Veselin Vasilev
Telerik team
 answered on 25 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?