Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
204 views

Hi,
I have a problem with adding a toolbar in code in combination with the LoadToolsFile method of the RadEditor. When I use only one of them everything works fine. But when I use them both I only see the toolbar added from code. It doesn't change when I call the SetToolbar method after the creation of the dynamic toolbar.

I have the following code:

SetToolbar();

//add a new Toolbar dynamically

EditorToolGroup dynamicToolbar = new EditorToolGroup();

radTextEditor.Tools.Add(dynamicToolbar);

//add a custom dropdown and set its items and dimension attributes

EditorDropDown ddn = new EditorDropDown("DynamicDropdown");

ddn.Text =

"Dynamic dropdown";

//Set the popup width and height

ddn.Attributes[

"width"] = "110px";

ddn.Attributes[

"popupwidth"] = "240px";

ddn.Attributes[

"popupheight"] = "100px";

//Add items

ddn.Items.Add(

"Project Name", "{Project.Name}");

ddn.Items.Add(

"Person Firstname", "{Person.FirstName}");

ddn.Items.Add(

"Person Zipcode", "{Person.ZipCode}");

//Add tool to toolbar

dynamicToolbar.Tools.Add(ddn);

The method SetToolbar does the following:

private

void SetToolbar()

{

DAData dab = new DAData(ConfigurationManager.ConnectionStrings["configuration"].ConnectionString);

dab.CommandName =

"usp_RadEditorTools_Load";

dab.AddSqlParameter(

"projectId", long.Parse(ConfigurationManager.AppSettings["CNGRSProject"]));

dab.AddSqlParameter(

"resourceId", this.ResourceId);

string ret = (string)dab.GetReturnValue();

XmlDocument xmlDoc = new XmlDocument();

xmlDoc.LoadXml(ret);

radTextEditor.LoadToolsFile(xmlDoc);

radTextEditor.EnsureToolsFileLoaded();

}

I guess I'm forgetting something... but I just cannot see what that is.
Can anybody help me on this one?

Bye,

Aldert

Aldert
Top achievements
Rank 2
 answered on 03 Oct 2008
5 answers
364 views
I've seen a couple other posts mentioning problems with using the DatePicker in an edit template, but I think it's hard to replicate.  The problem I'm having is that the date window does not open, it just adds a "#" to the end of the url.

Here is the setup (there is alot of nesting, so this is the hierarchy):

MasterPage.aspx
    TestPage.aspx (refers to master page)
           GridView.ascx (user control on test page)
                EditTemplate.ascx (user control used for edit template)  
                    The date picker is on the edit template control

If I remove the radajaxmanager, i.e., un-ajaxifiy the grid, it works fine.  But it does not work w/the ajax.

Also, if I put the gridview straight on a page rather than putting it in a user control, it works fine, but I need to have it on it's own user control.

It this a case of too many nestings?  Hopefully someone will be able to recreate it.  Thanks!

-Angie

Pavel
Telerik team
 answered on 03 Oct 2008
3 answers
111 views

(I appologize if it is duplicate)

I'm trying to load a schedular in appointment mode, and get the appointment parameters like RecurrenceState and RecurrenceRule to save in my DB. How can I get AppointmentCreatedEventArgs params?

Peter
Telerik team
 answered on 03 Oct 2008
2 answers
122 views
Hi,

For some reasons, I can't see the insert button on the RadGrid.

Here is my aspx code

<telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" 
                AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True"
                DataSourceID="SqlDataSource1" GridLines="None" Skin="Hay"
                AllowAutomaticInserts="True"
                AllowAutomaticUpdates="True"
                AllowAutomaticDeletes="True"
                AllowMultiRowEdit="True"
                >
                <MasterTableView AutoGenerateColumns="False" DataKeyNames="ID_News"
                    DataSourceID="SqlDataSource1">
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px" />
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="ID_News" DataType="System.Int32"
                            HeaderText="ID_News" ReadOnly="True" SortExpression="ID_News"
                            UniqueName="ID_News">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Title" HeaderText="Title"
                            SortExpression="Title" UniqueName="Title">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Text" HeaderText="Text"
                            SortExpression="Text" UniqueName="Text">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Date" DataType="System.DateTime"
                            HeaderText="Date" SortExpression="Date" UniqueName="Date">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
                <FilterMenu EnableTheming="True" Skin="Vista">
                    <CollapseAnimation Duration="200" Type="OutQuint" />
                </FilterMenu>
            </telerik:RadGrid>
AllowAutomaticInserts="True" : this option is set up.

However, I can't see the Insert button inside the grid.

Update / Delete work fine though.

Any ideas ?
Max
Top achievements
Rank 1
 answered on 03 Oct 2008
3 answers
168 views
Hi,

have you noticed that the hover and clicked states in Firefox 3 aren't displayed unless you have the mouse cursor at the right end of the button?

You can for example see it in action here: http://www.telerik.com/DEMOS/ASPNET/Prometheus/FormDecorator/Examples/Skinning/DefaultCS.aspx

Just select a skin like Vista, that has different images for all states.

Regards,
-DJ-
Martin
Telerik team
 answered on 03 Oct 2008
1 answer
1.6K+ views
I am using Rad Controls for ASP.NET release 2008.2.804.20 and I am getting a strange behavior for Display=Dynamic, when I have tried it on several controls, when used with standard .NET validators.

For the .NET controls,
The RequiredFieldValidator checks to make sure the ControlToValidate has a value, any value. The Display property allows us to control the space taken by the control when there is no error  -- i.e Display=Dynamic collapses the space, while Display=Static reserves it.

However, when I use Display=Dynamic on a required field validitor for Rad Text Box, It displays the message all the time and it is not dynamic. Even when the entry is valid, the message is displayed.

          <telerik:RadTextBox ID="State" runat="server" TabIndex="5"
          SelectionOnFocus="CaretToBeginning" >
          <FocusedStyle BackColor="#F1F6FC" />
          </telerik:RadTextBox>
          <div class="valRequired">
      <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
       ControlToValidate="State" SetFocusOnError="True" Display="Dynamic">Required 
       </asp:RequiredFieldValidator>
       </div>

In contrast

             <asp:TextBox ID="City" runat="server" TabIndex="4" ></asp:TextBox>
           <div class="block valRequired">
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
        ControlToValidate="City" Display="Dynamic" SetFocusOnError="True">Required
        </asp:RequiredFieldValidator>
        </div>

works as expected.

How do I get your controls to work as expected with Display="Dynamic"?

Keith E.
Missing User
 answered on 03 Oct 2008
1 answer
235 views
Can RadScheduler be implemented so that each user has their own schedule... which is read/write but when others view it, the schedule is only read?

Thanks,
Jeff
Peter
Telerik team
 answered on 03 Oct 2008
2 answers
98 views
I am using a RadPanel. I click on a button inside an UpdatePanel and steadily performance degrades. After some testing it would appear that the RadPanelBar is adding an additional value to the expandedItems value.

<INPUT id=ctl15_ctl07_ctl02_ctl03_ctl02_9cfe62be-f27b-4b57-8329-46294c5e2cfe_RadPanelBar1_ClientState type=hidden value='{"expandedItems":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"],"logEntries":[],"selectedItems":[]}' name=ctl15_ctl07_ctl02_ctl03_ctl02_9cfe62be-f27b-4b57-8329-46294c5e2cfe_RadPanelBar1_ClientState autocomplete="off"> 

The html above was captured after a dozen or so ajax requests. If I was to do one more ajax request another element -> "0" <- would be added to the expandedItems value.

Is this a bug? or is it something I can do to stop this behaviour. I have taken the code behind my RadPanelBar out for now. Here is the markup I have got:

<telerik:RadPanelBar ID="RadPanelBar1" runat="server" Skin="Outlook" Width="100%" Height="100%" ExpandMode="SingleExpandedItem">  
    <Items> 
        <telerik:RadPanelItem Value="Locations" Text="Locations" Expanded="true" PreventCollapse="true" 
            ImageUrl="Images/office-building.png" CssClass="mainPanel">  
            <Items> 
                <%-- Current Location --%> 
                <telerik:RadPanelItem Value="CurrentLocation" Text="Current Location" Expanded="true" CssClass="subPanel" > 
                    <ItemTemplate> 
                        <div class="currentLocationDiv" id="LocationAddress"></div> 
                    </ItemTemplate> 
                </telerik:RadPanelItem> 
                  
                <%-- Sub Locations Tree --%> 
                <telerik:RadPanelItem Value="SubLocations" Text="Sub Locations" Expanded="true" CssClass="subPanel">  
                    <ItemTemplate> 
                        <asp:PlaceHolder runat="server" id="addTreeHere" /> 
                    </ItemTemplate> 
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelItem> 
    </Items> 
</telerik:RadPanelBar> 
 


Any help on this would be appreciated.

Thanks,
Martin
Martin
Top achievements
Rank 1
 answered on 03 Oct 2008
6 answers
527 views
I'v been beating my head with this the whole day and cant figure out why it doesn't work...

I'm trying to set the value of a RadTextBox with javascript and according to the documentation you should do that with the method set_value. However my browser keeps telling me that this method does not exist.

here is my code:

<%

@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="GateKeeper.Test" %>

<!

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<

html xmlns="http://www.w3.org/1999/xhtml" >

<

head runat="server">

<title></title>

<telerik:RadCodeBlock runat="server">

<script>

function Configuration() {

var oInput = $get('<%= TestTextBox.ClientID%>');

oInput.set_value(

'Test');

}

</script>

</telerik:RadCodeBlock>

</

head>

<

body onload="Configuration()">

<form runat="server" id="form1">

<telerik:RadScriptManager runat="server"></telerik:RadScriptManager>

<telerik:RadTextBox ID="TestTextBox" runat="server"></telerik:RadTextBox>

</form>

</

body>

</

html>

Please help!

Nicklas Johansson
Top achievements
Rank 1
 answered on 03 Oct 2008
3 answers
96 views
Hi

I noticed in the product roadmap:
    http://www.telerik.com/products/aspnet-ajax/roadmap.aspx

"Client-Side Features: We will continue to introduce unique client-side features in all controls and most importantly in RadGrid and RadScheduler."


To aid in our development planning does this mean that RadGrid will support client databind with hierarchy and client databind with grouping?



Kind regards

Mark Eaton
Nikolay Rusev
Telerik team
 answered on 03 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?