Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
286 views
Hello, Telerik support team!

Could you describe me how to solve a problem I have please.
I have an RadSlider on the web page. When its ItemType property is set to "Item", I can't force the Drag handle to be placed directly on graduation marks. It's possible only if ItemType property is set to "Tick", but I can't use slider so.
How can I force Drag handle to be displayed only on graduation line(s) instead of between of them?

Take a look at the attached png file with some description please.

Thank you a lot.
Igor Soloydenko
Igor
Top achievements
Rank 1
 answered on 19 Oct 2009
7 answers
326 views
I need to access a value that is common to all rows when I run the insert command. How is the best way to accomplish this?
Mark Galbreath
Top achievements
Rank 2
 answered on 19 Oct 2009
1 answer
279 views
I create
 <CommandItemTemplate>
                                         <table width="100%">
                                          <tr>
                                            <td>
                                             <asp:LinkButton ID="btnAdd"
                                              Text="Add New Content of Course" CommandName="InitInsert" Runat="server"></asp:LinkButton>
                                            </td>
                                            <td>
                                              <asp:LinkButton ID="btnDelete"
                                              Text="Delete Content" CommandName="Delete" Runat="server"></asp:LinkButton>
                                            </td>
                                        <td>
                                         <asp:LinkButton ID="btnRefresh" Text="Refresh data"
                                          CommandName="Rebind" Runat="server"></asp:LinkButton>
                                        </td>
                                          </tr>
                                         </table>
</CommandItemTemplate>

and When I delete item i show error Unable to cast object of type Telerik.Web.UI.GridCommandItem to type 'Telerik.Web.UI.GridEditableItem . I dont know what happen. This is Code i delete item in event delete command

protected void rgTrCategory_DeleteCommand(object source, GridCommandEventArgs e)
    {
        bool result = false;
        try
        {
            if (e.CommandName == RadGrid.DeleteCommandName)
            {
                if ("TrContents".Equals(e.Item.OwnerTableView.Name))
                {
                    for (int i = 0; i < e.Item.OwnerTableView.Items.Count; i++)
                    {
                        GridDataItem row = e.Item.OwnerTableView.Items[i];
                        if (row.Selected == true)
                        {

                            Image _imgContent = (Image)row.FindControl("imgContent");
                            if (_imgContent != null)
                            {
                                if (File.Exists(Server.MapPath(_imgContent.ImageUrl.Trim())))
                                {
                                    File.Delete(Server.MapPath(_imgContent.ImageUrl.Trim()));
                                }
                                TrAccess.DeleteTrainingContent(row.GetDataKeyValue("f_ConCode").ToString());
                                result = true;
                            }
                        }
                    }
                    if (result == true)
                    {
                        ShowErrorFunction.ShowError(this.Page, "Delete Successul!");
                    }
                    else
                    {
                        ShowErrorFunction.ShowError(this.Page, "Please select row to delete");
                    }
                }
            }
        }
        catch
        {


        }

    }
Please help me to solve this problem as impossible as. Thanks alot.
Shinu
Top achievements
Rank 2
 answered on 19 Oct 2009
1 answer
142 views
I have a Grid using automatic inserts. My Primary Key database field "USER_Pin" is an integer.  I prompt for this key using a RadNumericTextBox. However, on my INSERT I get the following error: 
Cannot insert the value NULL into column 'USER_Pin', table 'RTS.dbo.tblUsers'; column does not allow nulls. INSERT fails.The statement has been terminated.

If I change this RadNumericTextBox to a RadTextBox, the INSERT works.

I have tried changing the SqlDataSource Parameters datatypes to string, int16, even removing the type, etc..  nothing seems to work for the RadNumericTextBox

<InsertParameters>
  <asp:Parameter Name="USER_Pin" Type="Int16" />
  <asp:Parameter Name="USER_Name" Type="String" />
  <asp:Parameter Name="USER_Email" Type="String" />
  <asp:Parameter Name="USER_Override_Email" Type="String" />
  <asp:Parameter Name="USER_Privilege" Type="String" />
  <asp:Parameter Name="USER_Status" Type="String" />                
</InsertParameters>

What am I missing??
Iana Tsolova
Telerik team
 answered on 19 Oct 2009
3 answers
92 views
Hi,
While I copy from word into the RAD Editor, I want the font types and sizes removed and keep other formats intact - like Bold / Italics etc. The following does not work for me.

 

 

 StripFormattingOptions="Span, MSWordRemoveAll,Css" StripFormattingOnPaste="Span,MSWordRemoveAll,Css"

I use the version 2009.1.527. I believe this is the latest version. Can you please help me with the problem.

Thanks.
Anandi

 

Rumen
Telerik team
 answered on 19 Oct 2009
2 answers
95 views
Hi

Think I have found an issue ion the Editor when using an imagemap and then dragging the image within the editor.  Reproducable every time :

  1. Open editor demo page
  2. Click the "RadEditor" logo then press the "Image Map Editor" button
  3. In the dialog which appears drag an image map shape over the logo (leaving all options at their defaults) then click the "Ok" button
  4. If you look at the source you should have something similar to the following :

    <img style="border-style: solid; border-width: 0px;" usemap="#rade_img_map_1255441215788" alt="product logo" src="../../Img/productLogoLight.gif" />is not simply an HTML Editor 


  1. Now go back to design mode and drag the image anywhere on the page
  2. At this point the image disappears from view and on inspecting the source only the following HTML source for the image remains :

<a href="http:///">http://</a> 

Steve

Steve
Top achievements
Rank 1
 answered on 19 Oct 2009
3 answers
105 views
Hello,

I am populating the Telerik RadDatePicker field with a Date value. Then I run a JavaScript Confirm() statement asking the user to choose "ok" or "Cancel". When the message box  pops up  asking for user confirmation, the RadDatePicker field gets cleared.  After the user chooses "ok" or "cancel", the RadDatePicker value is populated again.

How can I make sure that the Rad DatePicker field, is populated even when the Confirm() message box pops on the screen.

Thanks

Ramesh
Veli
Telerik team
 answered on 19 Oct 2009
2 answers
75 views
Hi,

Right now we have to click on the OK button of the Webpart property dialog to save the content of a "RAD Editor webpart".

Is it possible to add a save button in the toolbar to save the content ? So user would click on save within the same toolbar instead of having to switch to the webpart property pane.

I've attached a picture which illustrate what I want. If this is possible, could you provide some guidelines on how to achieve this?

thank you,
Jean
Jean
Top achievements
Rank 1
 answered on 19 Oct 2009
2 answers
706 views
Hi,

I am haveing a rad window whose url is set through function SetURL() from client side. Now the problem is The url from where I am calling the rad window is
"Page/Application/SomePage.aspx". Rad window url is "Page/Lease/Somepage.aspx". Now when i tried to set url like seturl(~/Page/Lease/Somepage.aspx") it appended the url and became Page/Application/SomePage.aspx/~/Page/Lease/Somepage.aspx. How should i get through this?

Thank you
Rakesh
Princy
Top achievements
Rank 2
 answered on 19 Oct 2009
3 answers
192 views

I am currently using Telerik version 2008.3.1105.35
I have set width and height for the radwindow manager but i was not reflecting when page render. the width and height automanically changed at the runtime. following code we used for radwindow.
"<
telerik:RadWindowManager ID="RadWinMgrQualification" runat="server" Left=""  NavigateUrl="" Title="" Top="" >  

 

<Windows>  

 

<telerik:RadWindow ID="Qualification" runat="server" Modal="True" Title="Qualification" Height="500px"  

 

Width="600px" Left="100px" Top="100px" ReloadOnShow="True" Behavior="None" />  

 

</Windows>  

 

</telerik:RadWindowManager>"

how to give fixed height and width for radwindow.

 

 

Georgi Tunev
Telerik team
 answered on 19 Oct 2009
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?