Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
170 views
I would like to add an InsertFormElement button programmatically.

I have used the following code from http://www.telerik.com/help/aspnet-ajax/addingstandardbuttons.html

Imports Telerik.Web.UI
...
Dim tool As New EditorTool("InsertFormElement")
tool.Type = EditorToolType.Button
RadEditor1.Tools(0).Tools.Add(tool)

tool does not appear to have a Type.  I tried omitting the line:

tool.Type = EditorToolType.Button

and the code still appears to work.  Why is this?

Secondly, RadEditor1.Tools(x).Tools.Add(tool) places the button at the end of tool group x.

Is it possible to position the button in a specific place within the group?

Your help would be much appreciated.

Thanking you in anticipation.

Roger

Rumen
Telerik team
 answered on 01 Jul 2010
1 answer
119 views
I have created my own advanced form "AdvancedForm.ascx"

At the top of my .aspx file i have put:

<%@ Register TagPrefix="scheduler" TagName="AdvancedForm" Src="~/admin/Scheduler/AdvancedForm.ascx" %>

Then further down in the scheduler i have put the following:

    <telerik:RadScheduler ID="RadScheduler1" runat="server" Width="100%" Height="100%"
        DataKeyField="ScheduleID" DataSubjectField="Subject" DataStartField="TimeStart"
        DataEndField="TimeEnd" Skin="WebBlue" ShowFooter="False" StartInsertingInAdvancedForm="True"
        OnClientFormCreated="schedulerFormCreated" OnAppointmentInsert="RadScheduler1_AppointmentInsert"
        OnAppointmentDelete="RadScheduler1_AppointmentDelete" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate"
        SelectedView="MonthView">
        <AdvancedForm Modal="true" enablecustomattributeediting="True" />
        <TimelineView UserSelectable="false" />
        <TimeSlotContextMenuSettings EnableDefault="true" />
        <AppointmentContextMenuSettings EnableDefault="true" />
        <AdvancedInsertTemplate>
            <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm" Mode="Insert" />
        </AdvancedInsertTemplate>
        <AdvancedEditTemplate>
            <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm" Mode="Edit" />
        </AdvancedEditTemplate>
    </telerik:RadScheduler>

Is anyone able to tell me whey when i double click on the scheduler in run-time i.e. add appointment, nothing happens? That is the advanced form control is not popping up.









Veronica
Telerik team
 answered on 01 Jul 2010
1 answer
138 views
Hello,

is it possible to add a context menu on an empty tree view, i.e. a tree view without any nodes?

Thanks,
Roland
Nikolay Tsenkov
Telerik team
 answered on 01 Jul 2010
1 answer
73 views
Hello,
I am novice telerik radControl user. I used telerik radPannelbar . and Its work properly.I used this:
http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/slidingpanelbar/defaultcs.aspx

I want to hide the menu div (Pannel bar) when I click anywhere on page.
How can I hide the "sliding pannel bar" when I click on the page ?


Nikolay Tsenkov
Telerik team
 answered on 01 Jul 2010
3 answers
45 views
Working on a grid display of Scheduler Appointments and thought the MultiDayView.NumberOfDays was how one would limit the number of days shown. Seems no matter what I get every appt in the database.
Dimitar Milushev
Telerik team
 answered on 01 Jul 2010
1 answer
100 views
The CSS classes of the four navigation buttons are rcFastPrev, rcPrev, rcNext and rcFastNext.
We can remove the navigation buttons by using

 

    function calendarLoad(sender, args) {

 

    $telerik.$(

".rcPrev").removeClass("rcPrev");

 

    $telerik.$(

".rcNext").removeClass("rcNext");

 

    $telerik.$(

".rcFastPrev").removeClass("rcFastPrev");

 

    $telerik.$(

".rcFastNext").removeClass("rcFastNext");

 

    }

Then if we set the

 

NavigationPrevText

 

="&lt; Prev" NavigationNextText="Next &gt;", we can navigate using <Prev and Next>. But then how can we munipulate the cell containing "<Prev" and "Next>"? I mean the font, background color, fore color, etc.

Thanks for help!

Joseph Hua

 

Dimo
Telerik team
 answered on 01 Jul 2010
2 answers
90 views
Hi everybody,

I have some simple problem during my data insertion. I use one item grid as int32 and the data is mandatory by the grid. How to allow my user to no insert anythink if no need ? Actually is returning one error if no data added in this cell.

Thanks for your tip.
Pierre
Top achievements
Rank 1
 answered on 01 Jul 2010
2 answers
108 views
Hi,

I have a Radgrid showing some data.
The grid has a Refresh link as default.

In the same page, I have a RadWindow which opens a ASPX page in itself.
To fire this RadWindow, I have a Button click server side method as below:

protected void BtnAddAction_Click(object sender, EventArgs e)
{
        Window1.VisibleOnPageLoad = true;
        Window1.Width = 575;
        Window1.Height = 625;
}

However when I click the Refresh or Edit command button in the grid, the RadWindow shows up.

Please help.

Thanks,
Debashis
Debashis Pyne
Top achievements
Rank 1
 answered on 01 Jul 2010
1 answer
353 views
Hello Telerik Team,

I have developed my application similar to this.
I have two tabs with UserControls loaded inside them (Multipageview_created) and I would like to implement the logic where, If I click on a link on  tab2, it should load a new tab with different tab name (like tab2_abc) that would restore the pagestate in Tab2.
I am able to get the pagestate (which gives me for both tabs) and if I follow the Addtab(...) method to dynamically create a new tab, I get the
error: Obj ref not set to instance of obj.... near RadTabStrip1.tabs.add(...)
So, the issue is new tab cannot be added dynamically to load a new radpageview into it on Postback.
Yana
Telerik team
 answered on 01 Jul 2010
3 answers
160 views
How can I hide a column in a detail table (code behind). I already tried the "ComumnCreated" event, but UniqueName is always "ExpandColumn"...

ASPX:

<

 

 

telerik:GridTemplateColumn HeaderText="Ansvarligt kontor" UniqueName="AnsvarligtKontor" >

VB:

 

 

 

Private

 

 

Sub rgStrategiskPrioritering_ColumnCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles rgStrategiskPrioritering.ColumnCreated

 

 

 

   Response.Write(

 

"ColumnName: " & e.Column.UniqueName)

 

 

 

End Sub

 

 

 

 

 

 

 

Martin
Telerik team
 answered on 01 Jul 2010
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?