Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
131 views
Dear all,

i have a question about timeslot.controls.enabled. I use the following code to set the CssStyle for a timeslot.

The apparence part is working as it should be, but also when a timeslot.control.enabeld = false it is still possible to insert new appoinments in this place.

As far as i understood, this parameter should control/Stop edit/insert on the timeslot.

What is wrong in my case.




 
    Protected Sub rsAll_TimeSlotCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.TimeSlotCreatedEventArgs) Handles rsAll.TimeSlotCreated  
 
        ' die Sichtbarkeit und den Zugriff in Anhängigkeit der Resource zu steuern  
        ' 1 - None, 2 - View, 3 - Edit  
 
        If e.TimeSlot.Start < Now Then  
            e.TimeSlot.Control.Enabled = False 
        ElseIf e.TimeSlot.Resource.Text = "DRX-600" And Session("myDRX600") = 3 Then  
            e.TimeSlot.Control.Enabled = True 
        ElseIf e.TimeSlot.Resource.Text = "DRX-600" And Session("myDRX600") = 2 Then  
            e.TimeSlot.Control.Enabled = False 
        ElseIf e.TimeSlot.Resource.Text = "DRX-400" And Session("myDRX400") = 3 Then  
            e.TimeSlot.Control.Enabled = True 
        ElseIf e.TimeSlot.Resource.Text = "DRX-400" And Session("myDRX400") = 2 Then  
            e.TimeSlot.Control.Enabled = False 
        ElseIf e.TimeSlot.Resource.Text = "DSX-400" And Session("myDSX400") = 3 Then  
            e.TimeSlot.Control.Enabled = True 
        ElseIf e.TimeSlot.Resource.Text = "DSX-400" And Session("myDSX400") = 2 Then  
            e.TimeSlot.Control.Enabled = False 
        ElseIf e.TimeSlot.Resource.Text = "DPX-250" And Session("myDPX250") = 3 Then  
            e.TimeSlot.Control.Enabled = True 
        ElseIf e.TimeSlot.Resource.Text = "DPX-250" And Session("myDPX250") = 2 Then  
            e.TimeSlot.Control.Enabled = False 
        ElseIf e.TimeSlot.Resource.Text = "DPX-200" And Session("myDPX200") = 3 Then  
            e.TimeSlot.Control.Enabled = True 
        ElseIf e.TimeSlot.Resource.Text = "DPX-200" And Session("myDPX200") = 2 Then  
            e.TimeSlot.Control.Enabled = False 
        Else  
            e.TimeSlot.Control.Enabled = False 
        End If  
 
        If e.TimeSlot.Control.Enabled = True Then  
            e.TimeSlot.CssClass = "Enabled" 
        ElseIf e.TimeSlot.Control.Enabled = False Then  
            e.TimeSlot.CssClass = "Disabled" 
        End If  
 
 
    End Sub 


Peter
Telerik team
 answered on 17 Dec 2008
1 answer
97 views
Currently in week view, and showing all day area only, the all day area height will increase as you add additional all day events.  Is it possible to force this area to start at a particular height?

Can you also explain why schedulertoptable is private?  So much useful info., but not easily available...
Peter
Telerik team
 answered on 17 Dec 2008
1 answer
240 views
Greetings for everybody

I have had problems trying to export data to excel format from a grid with 34 columns, the data volume is 30,000 records aprox, when the query exceds 20,000 records, I get the next error:

Se produjo una excepción de tipo 'System.OutOfMemoryException'.   en System.Collections.Specialized.HybridDictionary.Add(Object key, Object value)
   en System.Web.UI.StateBag.Add(String key, Object value)
   en System.Web.UI.WebControls.TableCell.set_Text(String value)
   en Telerik.Web.UI.GridTableCell..ctor(Boolean useNbsp)
   en Telerik.Web.UI.GridItem.CreateCellObject()
   en Telerik.Web.UI.GridItem.Initialize(GridColumn[] columns)
   en Telerik.Web.UI.GridItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows)
   en Telerik.Web.UI.GridItemBuilder.InitializeItem(Int32 dataSourceIndex, String& nextItemHierarchicalIndex, Boolean& itemIsInEditMode)
   en Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group)
   en Telerik.Web.UI.GridTableView.CreateItems(IEnumerator enumerator, GridColumn[] columns, ControlCollection controls)
   en Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource)
   en Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)
   en System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
   en System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
   en System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
   en System.Web.UI.WebControls.DataBoundControl.PerformSelect()
   en Telerik.Web.UI.GridTableView.PerformSelect()
   en System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
   en Telerik.Web.UI.GridTableView.DataBind()
   en Telerik.Web.UI.RadGrid.DataBind()
   en Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason)
   en Telerik.Web.UI.RadGrid.RebindForExport()
   en Telerik.Web.UI.Grid.Export.TableViewExporter.PrepareForExport()
   en Telerik.Web.UI.Grid.Export.TableViewExporter.page_PreRender(Object sender, EventArgs e)
   en System.EventHandler.Invoke(Object sender, EventArgs e)
   en System.Web.UI.Control.OnPreRender(EventArgs e)
   en System.Web.UI.Control.PreRenderRecursiveInternal()
   en System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Here are the exporting options:

                        Grid1.ExportSettings.ExportOnlyData = true;
                        Grid1.ExportSettings.IgnorePaging = true;
                        Grid1.ExportSettings.OpenInNewWindow = true;
                        Grid1.MasterTableView.ExportToExcel();

 could someone help me with some ideas?

Thanks

Princy
Top achievements
Rank 2
 answered on 17 Dec 2008
3 answers
115 views
I have just started using your RAD ajax tools. I am following the manual "regarding integrating RadControls with DNN" and I am working with radmenu.

In your manual it states:

When the installation is complete, the Telerik.SkinObjectsfolder will be added in [MyDnnWebSite]/DesktopModules. It willcontain the DNN wrappers for the Telerik controls listed in this topic. If you need to use anyof the available SkinObjects, please make sure that you register the file withthe path to its location. For example:

<%@Register TagPrefix="dnn" TagName="RADMENU" Src="~/DesktopModules/Telerik.SkinObjects/RadMenu.ascx" %>

Into which file should the registration be inserted

Thank you

Gerry
Peter
Telerik team
 answered on 17 Dec 2008
1 answer
102 views
My radScheduler render right in Firefox, but in IE7 render only the headers. I use a TimeLineView.
The code below represent my scheduler.

<telerik:RadScheduler ID="schMensal" runat="server" Width="608px" EnableEmbeddedSkins="False"  
            AllowDelete="False" AllowEdit="False" AllowInsert="False" Culture="Portuguese (Brazil)"  
            DisplayDeleteConfirmation="False" SelectedView="TimelineView" Skin="CMNet" DataKeyField="IDUSUARIO"  
            DataStartField="DATAINIPREV" DataEndField="DATAFINPREV" DataSubjectField="DESCRICAO"  
            EnableResourceEditing="False" ShowViewTabs="False" OnNavigationCommand="schMensal_NavigationCommand"  
            StartEditingInAdvancedForm="False" OnAppointmentDataBound="schMensal_AppointmentDataBound"  
            ShowHeader="False" ShowNavigationPane="False" Height="550px">  
            <TimelineView HeaderDateFormat="dd" NumberOfSlots="31" UserSelectable="false" />  
            <Localization AdvancedAllDayEvent="" AdvancedDay="Dia" AdvancedDays="dia(s)" AdvancedMaskDay="dia"  
                AllDay="" HeaderToday="hoje" AdvancedDaily="Di&#225;rio" AdvancedDescription="Descri&#231;&#227;o:"  
                AdvancedEveryWeekday="Semanal" AdvancedMonthly="Mensal" AdvancedOf="de" AdvancedOfEvery="de todo"  
                AdvancedRecurEvery="Recorr&#234;ncia todo" AdvancedRecurrence="Recorr&#234;ncia:"  
                AdvancedSecond="segundo" AdvancedThe="O" AdvancedThird="terceiro" AdvancedWeekly="Semanal"  
                AdvancedWeeks="semanas(s)" AdvancedYearly="Anual" Cancel="Cancelar" ConfirmCancel="Cancelar"  
                HeaderDay="Dia" HeaderMonth="M&#234;s" HeaderNextDay="pr&#243;ximo dia" HeaderPrevDay="dia anterior"  
                HeaderWeek="Semana" Insert="Inserir" Show24Hours="Exibir 24 horas" ShowAdvancedForm="mais"  
                ShowBusinessHours="Exibir hor&#225;rio comercial..." ShowMore="Exibir mais..."  
                Update="Atualizar" AdvancedEndAfter="Terminar depois de:" AdvancedEndByThisDate="Terminar nesta data:"  
                AdvancedEvery="Todo(a)" AdvancedFirst="primeiro" AdvancedFourth="quarto" AdvancedFrom="De:"  
                AdvancedHourly="Hora" AdvancedHours="hora(s)" AdvancedLast="&#250;ltimo(a)" AdvancedMaskWeekday="semana"  
                AdvancedMaskWeekendDay="fim de semana" AdvancedMonths="m&#234;s(es)" AdvancedMoreDetails="Mais detalhes:"  
                AdvancedNoEndDate="Sem data para t&#233;rmino" AdvancedOccurrences="ocorr&#234;ncias"  
                AdvancedRange="Faixa de recorr&#234;ncia:" AdvancedRecurringAppointment="Recorr&#234;ncia de compromisso"  
                AdvancedReset="Limpar exce&#231;&#245;es existentes" AdvancedTo="Para:" AdvancedCalendarCancel="Cancelar"  
                AdvancedCalendarToday="Hoje" HeaderTimeline="Linha de Tempo" />  
        </telerik:RadScheduler>  

Peter
Telerik team
 answered on 17 Dec 2008
4 answers
280 views
Hi,

I have a radgrid (inside the combobox) which is groupped with one of the columns and I want to have the groups also to be selectable when clicked. Is this possible somehow just like onrowselect?

Thanks & regards,
Pete
Pete
Top achievements
Rank 1
 answered on 17 Dec 2008
2 answers
118 views
Hi guys,

can you please check http://www.telerik.com/help/ ?

Currently the website is down and, as you may imagine, is our bible.
Enrico Foschi
Top achievements
Rank 2
 answered on 17 Dec 2008
1 answer
85 views
Dear All,

i have a scheduler grouped by a resource.

Is is possible to find the resource value for the current timeslot, for example in radscheduer1_TimeSlotCreated.

Reason: I want to set right's on enable/disable the timeslot based on the current user.

Kind regards

Martin Gartmann
Martin Gartmann
Top achievements
Rank 2
 answered on 17 Dec 2008
1 answer
121 views

Hi,

In one of my screen I am using Rad Grid and assigning the data source runtime. My data source is changing as per the different scenario. Hence i am not adding any columns at design time in the radgrid. Rather I have written a function which defines the columns and add it to the RadGrid column collection runtime only. I am calling this function (to add the columns) just before the assigning the data source Property to the RadGrid.

All these show my data in the grid perfectly fine.

But if I sort, or group, it doesn't call the event mapped (wired) and the columns headers are disappeared but the data in the grid perstists.

Kindly help me to get the solution if anyone of you has come across this sort of problem.

Thanks in advance.

Regards,
Mehul

 

Yavor
Telerik team
 answered on 17 Dec 2008
1 answer
121 views
i have a raddatepicker  inside radgrid , how can i make datepicker should popup on top of textbox  when user in add or edit mode

<telerik:GridTemplateColumn HeaderText="Target Date" > <EditItemTemplate>
<telerik:RadDatePicker id="RadDatePicker1" Runat="server" Width="100px" />
</EditItemTemplate>
</telerik:GridTemplateColumn>

Thanks in advance
Shinu
Top achievements
Rank 2
 answered on 17 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?