Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
I would like to use the iCal export capability in a situation where we are not actually using the Scheduler or Calendar components. We have events in a SQL Server table, for which we would just like to add a simple "Add to my calendar" button, in which case we download an ICS file. Most users are on Outlook.
Ivana
Telerik team
 answered on 29 Aug 2012
1 answer
533 views
I have used telerik product version 2009.3.1103.35.

QA found issue like cross side script vulnerability request attack on telerik Webresource.axd file.
how to resolve this issue without upgrading to new telerik version ?

and also provide the year/quarter of this version 2009.3.1103.35.

Thanks,
-Venkat
Kate
Telerik team
 answered on 29 Aug 2012
15 answers
211 views
Hi,

We are binding few appointments to the scheduler. By default, it will be in month view. But when we click Day View or Week View, an error is been thrown from Javascript and still the scheduler appears in Month View.

The error is as follows:

Error: Sys.WebForms.PageRequestManagerServerErrorException: Height must be non negative.
Parameter name: value

Any hint on solving this issue is appreciated.
Dev
Top achievements
Rank 1
 answered on 29 Aug 2012
1 answer
53 views
This behaviour happens with RadTextbox but not with a standard textbox so may be a bug:

I have a RadTextbox and a Div (Runat=Server) on a usercontrol
The Div has ContentEditable=true set.
When you type in the RadTextbox, the div text updates (Script)When you type in the Div, the RadTextbox text updates.

The problem is if you change the text in the div (RadTextbox text changes as it should), when you click in the RadTextbox, the text resets back to its proginal value.

Heres the basic script:


  function TitleChanged(ObjSource, objDestination) {
        try {
        document.getElementById('<%= DivTitle.ClientID %>').innerHTML = ObjSource.value;
                TitleText = ObjSource.value;
                MakeDirty();
            }
            catch (err) {
            }
        }
          
        function TitleDivChanged() {
            try {
                TitleText=document.getElementById('<%= DivTitle.ClientID %>').innerHTML;
                document.getElementById('<%= txtTitle_WorkingDeal.ClientID %>').value = TitleText;
                MakeDirty();
            }
            catch (err) {
            }
        }
 
 
 
 
 <telerik:RadTextBox ID="txtTitle_WorkingDeal" runat="server"  Width="350" EmptyMessage="Deal Title"
                                               MaxLength="100" Rows="1"
                                              SelectionOnFocus="SelectAll" Text="" ValidationGroup="WorkingDeal"
                                              Wrap="False"
OnKeyup="TitleChanged(this, 'divTitle')"></telerik:RadTextBox>
 

 

<div ID="divTitle" onkeyup="TitleDivChanged()" CONTENTEDITABLE="true" runat="server" class="Title" style="color: #000000">TITLE</div>

 
This Works:
      <asp:TextBox ID="txtTitle_WorkingDeal" runat="server"  Width="350"
                                        MaxLength="100" Rows="1"
                                           OnKeyup="TitleChanged(this, 'divTitle')"></asp:TextBox>
Vasil
Telerik team
 answered on 29 Aug 2012
3 answers
87 views
I need to reset a radcombox in the server side, I am using the ClearCheckedItems method but it is not working, after the callback the checkboxes continue checked.

Is there any way for resetting a radcombox in the server side?

Thanks in advance
Kalina
Telerik team
 answered on 29 Aug 2012
2 answers
141 views
Hello,

I am working with a Rad Grid which is bound to an sql datasource in asp.net. It is displaying data from user defined tables so I need to generate alot of the grid at runtime with c# and work with auto generated columns. My problem is that I can't get the edit form to show any controls what so ever. I'm new to telerik controls so there might be something obvious I'm missing. 

I'm gathering from the examples on this site that to setup an edit form control for each column I just create a GridTextBoxColumnEditor 
as below and then in c# set the columns 'ColumnEditorID' to the ID of the GridTextBoxColumnEditor. Firstly, am I correct in thinking this is the way to map a grid column to a control in the edit form? The relevant code is below along with the way I've setup my datasource and radgrid. What am I missing?


protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
    {
        if (e.Column is GridBoundColumn)
        {
            (e.Column as GridBoundColumn).ColumnEditorID = "GridTextBoxColumnEditor1";
        }
    } 

<asp:SqlDataSource
          id="SqlDataSource1"
          runat="server"
          DataSourceMode="DataReader"
          ConnectionString="Server=(local); Database=v7; uid=Vestri; pwd=v3str199!;"
          DeleteCommand='<%=SqlDeleteQuery %>'>
        </asp:SqlDataSource>
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="true" AllowAutomaticUpdates="true" OnItemDeleted="RadGrid1_ItemDeleted" 
        DataSourceID="SqlDataSource1" AutoGenerateColumns="true" OnColumnCreated="RadGrid1_ColumnCreated">
            <MasterTableView>
                <Columns>
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
                        <ItemStyle HorizontalAlign="Center" CssClass="editButton" />
                    </telerik:GridEditCommandColumn>
                    <telerik:GridButtonColumn ConfirmText="Delete this record?" ConfirmDialogType="RadWindow"
                            ConfirmTitle="Delete" CommandName="Delete" Text="Delete"
                            UniqueName="DeleteColumn" ButtonType="ImageButton">
                            <ItemStyle HorizontalAlign="Center" CssClass="deleteImage" />
                    </telerik:GridButtonColumn>                 
                </Columns>
                <EditFormSettings ColumnNumber="3" CaptionDataField="Town" CaptionFormatString="Edit properties of {0}"
                    InsertCaption="New Town">
                    <FormTableItemStyle Wrap="False"></FormTableItemStyle>
                    <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
                    <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White"
                    Width="100%" />
                    <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" />
                    <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
                    <EditColumn ButtonType="ImageButton" InsertText="Insert Order" UpdateText="Update record"
                    UniqueName="EditCommandColumn1" CancelText="Cancel edit">
                </EditColumn>
                <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
            </EditFormSettings>
            </MasterTableView>
        </telerik:RadGrid>
        <telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditor1" runat="server" TextBoxStyle-Width="200px" />
Andrey
Telerik team
 answered on 29 Aug 2012
5 answers
79 views

Hi,

  We are using Telerik RadScheduler to bind the events. We are using wcf service method to bind the data.
The data binding is done successfully and its showing the data correctly. 

Now we are using AdvancedInsertTemplate and AdvancedEditTemplate respectively to insert and edit the events. So in the template we have added two use controls and it contains form elements for insertion and deletion.

When clicking on an empty day,a popup is showing with insert form. Also when clicking on an event , the edit form is also coming.

Now i have got some questions:

  1. Up on editing how to bind the existing details in the edit form , we are using a user control as edit form. Also we want to do it using a wcf service methods, since we are doing the initial binding with wcf services. Now its showing an empty form.
  2. Similarly on insert also we want to do it from client side using wcf services.
  3. Also i want to know whether we can use methods from a wcf service hosted in some other machine. Now while checking we are using wcf services inside our website. But we want to know whether we can use methods from a wcf service hosted outside our website.


Thanks,
Mahesh
Cat Cheshire
Top achievements
Rank 1
 answered on 29 Aug 2012
3 answers
110 views
Where can I change the time range when creating a new appointmement, view the attached image.

Thanks
Kalina
Telerik team
 answered on 29 Aug 2012
1 answer
68 views
I have a RadMenu on the top 30 pixels of my Page.
Under that, filling the rest of the page is an IFRAME. (The Menu populates the IFRAME).

This works perfectly across all browsers except IE9 and IE10 standards mode where there is a little glitch.
The 1st time you Mouse-over the Root Menu, the sub Menu is hidden.
If you mouse over a menu item a second time, the sub menu appears as expected.

I've broken down the code on my page as simply as I can, I databind the Menu in the code behind.

<!DOCTYPE html>
<html style="height:100%">
<body style="height:100%">
<form id="form1" runat="server">
  <telerik:radscriptmanager id="RadScriptManager1" runat="server" />
  <div style="position:fixed;width:100%;height:100%;">
    <div style="width:100%;height:30px;">
      <telerik:RadMenu ID="radMenu" Runat="server" Flow="Horizontal" Skin="Black" EnableViewState="false" EnableEmbeddedSkins="true">
    </div>
    <iframe id="contentPane" name="contentPane" style="padding-top:30px;width:100%;height:100%;display: block;border:0;"></iframe>
  </div>
</form>
</body>
</html>

IE9 and IE10 standards has another minor issue that may be related... 
Once you mouse over the root item a second time so that a SubMenu appears.
If there is a third menu level, the menu will only expand about 2 pixels, so you never see sub-sub menus items.
This issue isn't as important, since I can probably fix it via css, but I thought I would include it since it only happens in IE9/IE10 standards mode and therefore possibly related to the topic issue.

Thanks for any help you can give!
Kate
Telerik team
 answered on 29 Aug 2012
1 answer
358 views
I have a grid  in that i have edit  button . 
When i click on edit am going back to the RadPageView where i have radcomboxbox and den fill the text in radcomboxbox
The problem is that whenever i use
(edit grid command)
 ddlconfemail.SelectedItem.Text = item["scoreconfirmeemail"].Text;

I get duplication values in my dropdown but if i use "selectedvalue"..it works properly (no duplication and no error in data ).
The problem is that i have 12 combo box  and all these values are cuming from 1 - table . Hence , I CANT BIND with the id, the only option is to bind  the combo box with Text 

Please Help me solve this problem !
Cat Cheshire
Top achievements
Rank 1
 answered on 29 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?