Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
132 views
hi

I have layout my 3 buttons in a single table row.

But when i apply Ajaxmanager on them, they just seems to align themselve on top of each other. How do I solve this? Thanks
Dimo
Telerik team
 answered on 16 Jul 2010
1 answer
116 views
Hi
  I have added a custom css file in editor like this

 

<CssFiles>

 

 

<telerik:EditorCssFile Value="StyleSheet/user_override.css" />

 

 

</CssFiles>

 


css file contains this
h1
{color: Red;}

now in format block dropdown "Heading 1" is still displaying black color but on selection in design it displays red color.

How can I simulate the custom css class to reflect in FormatBlock Dropdown ?


any suggestions would be highly appreciated.

Thanks
Rizwan Bashir


Rumen
Telerik team
 answered on 16 Jul 2010
3 answers
109 views
Hi,

I have written some code that will parse a string and render any ASP.NET controls within it (using Page.ParseControl). This is working nicely and I am able to use RadEditor in source mode to edit the strings such as this:

Hello World, here is a button: <asp:button id="btnTest" runat="server"></asp:button>

When I switch to design or preview mode though, I don't see anything. This is as expected but I would like to customise RadEditor so that a snippet of HTML is displayed to let the user know it is still there. Is this possible? I was thinking about a filter but as far as I understand it these permanently clean up the source, whereas I want to change what is shown depending on the view whilst preserving the source.

I would also ideally like to do is add ASP.NET control declarations via the UI. I think the right way to do this is probably to use a custom dialog, is that a good starting point?

Thanks in advance for any help and advice,

Richard.
Rumen
Telerik team
 answered on 16 Jul 2010
4 answers
134 views
Hello,

I was looking at using a dropdownlist inside of one of the columns in a radgrid to launch commands from, such as  edit row - View details - Delete - Options...etc

I've successfully added the dropdownlist to my columns and I've been able to find the dropdownlist in my radgrid's ItemCreated event (and while attempting to make it work, the ItemDataBound event) , i've even  been able to attach my dropdownlists .selectedindexchanged event to a method that i have created.  

But no matter what i do it just won't fire the event.  Is there something blocking my event?  Or should this method work and I am just implementing it wrong? 

Thanks,
Steve
Mira
Telerik team
 answered on 16 Jul 2010
1 answer
88 views
Hi,

i have a page to insert, edit, update my user in the database.
Therefore i use a radgrid with an inform usercontrol for the editform and to insert a new user.
It already worked editing, but it wont work now...

I get an out of range exception, which gets created because of following code:

to get to the editform i call the codebehind via a click event with a "context" radmenu working fine.

radGridUser.Items[pIndex].Edit = true;

the index is correct, but when i watch the radGridUser for the Items the count is always one below the pIndex (the selected griditemindex).

after enabling Item.Edit i just do: radGridUser.Rebind()

which also works fine in all other grids of my websolution.

are there any ideas or known issues?
How is the grid able to loose its items?

Also i watched the RadGridUser_NeedDatasource eventmethod, which gets called correctly befor the grid sets the Items.Edit property.

thx Mario
Mario
Top achievements
Rank 2
 answered on 16 Jul 2010
11 answers
259 views

Hi

I am new to Telerik Scheduler. I am trying to create My Calendar web page by using  my own AdvancedFormTemplate and  use Telerik Scheduler  DataSource for data binding , since I need to handle  my own insert, update and delete.   I need to have  several  custom properties such as Location,  appointment Type and IsSuggestedEvent and recourses such as list of other participation appointments for the same event.   In my AdvancedFormTemplate, I need to allow  user to add  other participators  for an  event, which will create the list of other participation appointments.

Should these custom properties and list of participation appointments are all handled as resource?  Do you have any example using own business objects?

 

Thanks in advance

 

 

Peter
Telerik team
 answered on 16 Jul 2010
2 answers
128 views
Hi,

Is it possible to hide the previous next buttons but keep the calendar date selector?

Cheers
Jon
Jonathan Levy
Top achievements
Rank 1
 answered on 16 Jul 2010
6 answers
151 views
Hello Friends -

I am having two problems with Telerik Rad-Windows, please help me where I am going wrong:-

1. Tile Window Property is not working in correct way. I had used the below script -

<asp:ImageButton ID="ImgBtnTile" runat="server" AlternateText="Tile" OnClientClick="GetRadWindowManager().tile();return false;" ImageUrl="~/images/icons/tile.gif"/>

Above code is placed in Master Page and in Content Page I am having the Rad-Windows, but the windows are not properly tiled.
I guessed it should be working exactly same as Tile Windows Vertically/Horizontally property of Windows OS. Please let me know how I can get the functionality correctly done.

2. I am dragging Rad-Windows from a tree-view and dropping it in a div, what I want to do I need to stop overlapping i.e when I dragged one window say RadWindow1 which is showing me http://www.rediffmail.com and I dragged another window say RadWindow2 which is showing me http://www.google.com and when I dropped the second window in div and placed it over the first window then the first or second window will automatically adjust and two windows won't be overlapped. can I have this functionality working?

Please suggest me a possible way to get the above functionality done!

Thanks
Arindam R

Georgi Tunev
Telerik team
 answered on 16 Jul 2010
1 answer
134 views
I have a page with a RadGrid, and a refresh button that calls a rebind method on the server. The grid gets its data through the needDataSource events.

Thw page gets stuck and slows down if the refresh button is repeatedly clicked, is there a way to cancel the current ajax request and initiate a new one, or disable the button until the current ajax is completed.

Andy
Princy
Top achievements
Rank 2
 answered on 16 Jul 2010
1 answer
139 views
Hi,

I have an application that has a master page, from which I open a radwindow (radwindowmanager on master page) 
with more information. Once the client is happy and save the info, a 2nd radwindow (radwindowmanager on 1st radwindow page) opens in the 1st radwindow to confirm the date. When the client selected the date, the 2nd window pass the selected date back to the the 1st radwindow and close the 2nd window.

This all works wonderfull in Opera, IE8 & Chrome, however in Firefox the radwindows open as it should, but once the date is selected, it does not pass the data back to the 1st radwindow, and it does not close either. Also in FireFox the scrollbar for the 1st radwindow is still active where in the other 3 browsers its disabled as the radwindow is modal.

Code in 1st radwindow:
function GetRadWindow() {
    var oWindow = null;
    if (top.radWindow) oWindow = top.radWindow; //Will work in Moz in all cases, including clasic dialog
    else if (top.frameElement.radWindow) oWindow = top.frameElement.radWindow; //IE (and Moz az well)
    return oWindow;
}
function CloseOnReload() {
    GetRadWindow().Close();
}

aspx in 2nd radwindow:
    <script language="javascript" type="text/javascript">
        //<![CDATA[
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well)
            return oWindow;
        }
 
        function CloseOnReload() {
            GetRadWindow().Close();
        }
        //]]>
    </script>
 
<body style="background:#bbdbb4;">
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server" />
        <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" DecoratedControls="Buttons" />
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" />
        <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Forest" />
 
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">
            <div style="position:absolute; left:0px; top:0px;">
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                    <tr><td colspan="2"><asp:Label ID="InjectScript" runat="server" Text="" /></td></tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="Date :" Width="100%"></asp:Label>
                        </td>
                        <td>
                            <telerik:RadCalendar ID="RadCalendar1" Runat="server"
                                CultureInfo="English (South Africa)" EnableMultiSelect="False" SelectedDate="" 
                                ViewSelectorText="x" AutoPostBack="True">
                                <SpecialDays>
                                    <telerik:RadCalendarDay Date="2010-05-25" IsSelectable="False" IsDisabled="true">
                                    </telerik:RadCalendarDay>
                                </SpecialDays>
                            </telerik:RadCalendar>
                        </td>
                    </tr>
                </table>
            </div>
        </telerik:RadAjaxPanel>
 
        <div>
            <table width="100%" cellpadding="0" cellspacing="0" border="0" >
                <tr><td colspan="2"> </td></tr>
                <tr>
                    <td ><asp:Label ID="label2" runat="server" Text="Amount :" Width="100%" /></td>
                    <td><asp:TextBox ID="txtAmount" runat="server" /></td>
                </tr>
                <tr>
                    <td> </td>
                    <td> </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <center>
                            <asp:Button ID="cmdSave" runat="server" Text="Save" />
                            <asp:Button ID="cmdCancel" runat="server" Text="Cancel" />
                        </center>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html

code behind in aspx.vb (2nd radwindow):
Protected Sub cmdSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdSave.Click
    Dim javaInjection As String = ""
    javaInjection = "<" + "script language='javascript' type='text/javascript'>"
    javaInjection = javaInjection + "window.parent.form1.txtDate.value='" + Me.RadCalendar1.SelectedDate + "';"
    javaInjection = javaInjection + "window.parent.form1.txtAmount.value='" + Me.txtAmount.Text + "';"
    javaInjection = javaInjection + "CloseOnReload();"
    javaInjection = javaInjection + "window.parent.form1.submit();"
    javaInjection = javaInjection + "</" + "script>"
 
    Me.InjectScript.Text = javaInjection
End Sub
 
Protected Sub cmdCancel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdCancel.Click
    Dim javaInjection As String = ""
    javaInjection = "<" + "script language='javascript' type='text/javascript'>"
    javaInjection = javaInjection + "window.parent.form1.txtDate.value='';"
    javaInjection = javaInjection + "window.parent.form1.txtAmount.value='';"
    javaInjection = javaInjection + "Window.parent.form1.frmTask.value='';"
    javaInjection = javaInjection + "CloseOnReload();"
    javaInjection = javaInjection + "</" + "script>"
 
    InjectScript.Text = javaInjection
End Sub

Thanks
Georgi Tunev
Telerik team
 answered on 16 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?