Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
258 views

Hi,

      this is Gupta. In my project we use maximum 7different telerik controls and if i use all those in a single page. something like i attached the screenshot..


For Disabling embedded resources , I made EnableembeddedScripts='false" to all the telerik controls and i added the custom script path to the script manager for all the controls required as written below. I added all the scripts in proper order. but its giving problems.

If i do this way , Some controls (radgrid,DatePicker etc.,)are not functioning correctly.

        <asp:ScriptManager ID="ScriptManager" runat="server">
            <Scripts>
For Menu

                <asp:ScriptReference Path="~/TelerikScripts/Common/Core.js" />
                <asp:ScriptReference Path="~/TelerikScripts/Common/jQuery.js" />
                <asp:ScriptReference Path="~/TelerikScripts/Common/jQueryPlugins.js" />
                <asp:ScriptReference Path="~/TelerikScripts/Common/Navigation/NavigationScripts.js" />
                <asp:ScriptReference Path="~/TelerikScripts/Menu/RadMenuScripts.js" />
            </Scripts>
            <Scripts>
For Multipage
                <asp:ScriptReference Path="~/TelerikScripts/TabStrip/MultiPage/RadMultiPageScripts.js" />
            </Scripts>
            <Scripts>
For TabStrip
                <asp:ScriptReference Path="~/TelerikScripts/Common/Scrolling/ScrollingScripts.js" />
                <asp:ScriptReference Path="~/TelerikScripts/Common/Navigation/NavigationScripts.js" />
                <asp:ScriptReference Path="~/TelerikScripts/TabStrip/RadTabStripScripts.js" />
            </Scripts>
            <Scripts>
For DatePicker              
                <asp:ScriptReference Path="~/TelerikScripts/Input/TextBox/RadInputScript.js" />
                <asp:ScriptReference Path="~/TelerikScripts/Input/DateInput/RadDateInputScript.js" />
                <asp:ScriptReference Path="~/TelerikScripts/Calendar/RadCalendarCommonScript.js" />
                <asp:ScriptReference Path="~/TelerikScripts/Calendar/RadCalendarScript.js" />
                <asp:ScriptReference Path="~/TelerikScripts/Calendar/RadDatePicker.js" />
            </Scripts>
            <Scripts>
 For Grid             
                <asp:ScriptReference Path="~/TelerikScripts/Grid/RadGridScripts.js" />
            </Scripts>
            <Scripts>
                <asp:ScriptReference Path="~/TelerikScripts/Common/PopUp/PopUpScripts.js" />
                <asp:ScriptReference Path="~/TelerikScripts/Common/jQuery.js" />
                <asp:ScriptReference Path="~/TelerikScripts/Common/jQueryPlugins.js" />
                <asp:ScriptReference Path="~/TelerikScripts/Common/Animation/AnimationScripts.js" />
                <asp:ScriptReference Path="~/TelerikScripts/Window/RadWindow.js" />
                <asp:ScriptReference Path="~/TelerikScripts/Window/RadWindowManager.js" />
            </Scripts>
            <Scripts>
                <asp:ScriptReference Path="~/TelerikScripts/Common/jQuery.js" />
                <asp:ScriptReference Path="~/TelerikScripts/Common/jQueryPlugins.js" />
                <asp:ScriptReference Path="~/TelerikScripts/Common/Animation/AnimationScripts.js" />
                <asp:ScriptReference Path="~/TelerikScripts/Common/PopUp/PopUpScripts.js" />
                <asp:ScriptReference Path="~/TelerikScripts/ToolTip/RadToolTip.js" />
                <asp:ScriptReference Path="~/TelerikScripts/ToolTip/RadToolTipManager.js" />
            </Scripts>
        </asp:ScriptManager>


CAn u please help me in this regard.
Peter
Telerik team
 answered on 15 Jun 2010
1 answer
109 views
Hi,

In the grid i have set the page styele mode as "NextPrevAndNumeric" if i filter and the result has more than one row (say 15 Rows) displayed then the message displays as "15 items of 2 Pages" is getting displayed. if the No. of row is one then it is displaying as "1 items of 1 Page " is getting displayed which needs to be changed as "1 item of 1 Page".

How do i fix this pls Help me to fix.

Jidesh
Dimo
Telerik team
 answered on 15 Jun 2010
2 answers
363 views
Perhaps you can shed light on a problem I can't seem to wrap my head around.

I have a page with a button and two panels.  On button click, I will run a merge process that will take a while to complete.  When the merge is completed, I'd like to update panel #1 with a complete messsage.  Then I'd like it to automatically fire another process which creates invididual files, and again will take a while to complete.  When that is finished, update panel #2 with a complete message.

I've tried tying the end of the first call to use AjaxManager's OnResponseEnd, but there's a slight problem.  Since the reponse is ending each time, it's getting fired over and over again.  Is there another way I can achive this functionality? 

My code so far:
        <telerik:RadCodeBlock runat="server" ID="RadCodeBlock1">  
            <script type="text/javascript">  
 
                function OnResponseEnd(sender, args) {  
 
                    var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");  
                    ajaxManager.ajaxRequest("individual");  
                }  
                  
            </script> 
        </telerik:RadCodeBlock> 
          
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelMerge" runat="server" Skin="Office2007" /> 
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelIndividual" runat="server" Skin="Office2007" /> 
          
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">  
            <ClientEvents OnResponseEnd="OnResponseEnd" /> 
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="btnRun">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="pnlMerge" LoadingPanelID="RadAjaxLoadingPanelMerge" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="pnlIndividual" LoadingPanelID="RadAjaxLoadingPanelIndividual" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager>          
          
        <asp:Button runat="server" ID="btnRun" OnClick="btnRun_Click" Text="Run" /> 
          
        <table> 
            <tr> 
                <td> 
                    <asp:Panel runat="server" ID="pnlMerge" Height="100px" Width="200px" BorderWidth="1">  
                        <asp:Label runat="server" ID="lblMerge" /> 
                    </asp:Panel>                  
                </td> 
                <td> 
                    <asp:Panel runat="server" ID="pnlIndividual" Height="100px" Width="200px" BorderWidth="1">  
                        <asp:Label runat="server" ID="lblIndividual" /> 
                    </asp:Panel>                  
                </td> 
            </tr> 
        </table> 

        protected void btnRun_Click(object sender, EventArgs e)  
        {  
            // run the merge
            System.Threading.Thread.Sleep(2000);  
            lblMerge.Text = "Merge Complete";  
              
        }  
 
        protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)  
        {  
            if (e.Argument == "individual")  
            {  
                // run the individual
                System.Threading.Thread.Sleep(2000);  
                lblIndividual.Text = "Individual Complete";  
            }  
        } 

Thanks so much!

-- Mike
Mike
Top achievements
Rank 2
 answered on 15 Jun 2010
4 answers
1.1K+ views

Hello,

I have one simple one but having hard time to find a way to do it.
I want to prevent users to select row on client side with row click  on any other cell click but  allow only GridClientSelectColumn to select and unselect the row.

 

AllowMultiRowSelection

 

 

="true" on the grid

 

 

 

I have these settings on the mastertableview

 

<

 

 

ClientSettings AllowColumnsReorder="True">

 

 

 

 

 

 

 

<Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" />

 

 

 

 

 

 

 

<Resizing AllowColumnResize="true" />

 

 

 

 

 

 

 

</ClientSettings>

Please guide me what should i do

 

Mac P
Top achievements
Rank 1
 answered on 15 Jun 2010
5 answers
193 views

In RadGrid, I'm using a FormTemplate. I need to use javascript on the FormTemplate controls when in edit mode. I couldn't find a way to tie events within the FormTemplate in the aspx page, so I'm assigning them in the grid's ItemCreated event, like so...

If (TypeOf e.Item Is GridEditFormItem) AndAlso (e.Item.IsInEditMode) Then 
    Dim item As GridEditFormItem = CType(e.Item, GridEditFormItem)  
    Dim chkName As CheckBox = CType(item.FindControl("chkName"), CheckBox)  
    Dim txtResult As RadTextBox = CType(item.FindControl("txtResult"), RadTextBox)  
    chkName.Attributes("onclick") = "NameChange('" & chkName.ClientID & "', '" & txtResult.ClientID & "');" 
End If 

Then in the client-side, the function looks something like the following...

function NameChange(chkNameClientID, txtResultClientID) {  
    var chkName = document.getElementById(chkNameClientID);  
    var txtResult = $find(txtResultClientID);  
    if (chkName.checked == false) {  
        txtResult.set_value('Joker');  
    } else {  
        txtResult.set_value('Batman');  
    }  
} 

It works, but it seems a bit goofy to assign all my javascript calls on the server-side, pass all relevant ClientIDs and assign them to vars before working with them. So I'm wondering if this is the best way to do it, or if you recommend a different method and I'm going about it the hard way. Thanks.
Dimo
Telerik team
 answered on 15 Jun 2010
5 answers
146 views
Hello again.I would like to ask the following
a) I have inserted an asp.net page(the editor) inside an iframe.The problem is in IE7,8.
When i load my page(which includes the editor) ,the whole page is scrolled down to the editor(something like focus).
This doesn't happen in firefox and chrome.This is an important problem for me.
b)Can i create snippets by using javascript?
c)I have created a few custom buttons.When i press one custom button and i call a js function which opens a new window then,the window is opened but it lost focus.
My main page is focused.
d)I'm using something like this
function OnClientLoad(editor, args) {

            var style = editor.get_contentArea().style;
            editor.get_contentArea().style.cssText = "font-family:Tahoma,Serif !important;font-size:18px !important;background-color:#ff0000";
....
My question is,why the font family is not selected in the editor's drop down?The font size works!
e)Is it possible to call whatever is called when the InsertImage button is pressed,from my own custom button?

Sorry for so much questions but i try to see if i can customise it ,as i wish,in order to buy the product.
Thank you.
ps:I have noticed the following.When i use firefox and i insert visually a table i can't escape from it.
Moreover in many cases i don't see the caret(in firefox again).Are you aware of these problems?
Rumen
Telerik team
 answered on 15 Jun 2010
5 answers
204 views
Hi Telerik team,
Is there any way to remove the Rad Grid Header images applied to it as  a style
please check the following image  if you do not understand my question
http://www.4shared.com/photo/cEuegqd9/_online.html

Tools
asp.net 3.5
rad controls for asp.ne ajax 2009 Q3
windows 7



Dimo
Telerik team
 answered on 15 Jun 2010
2 answers
195 views
Hi all,

I have been playing around with the possibility of enabling users to enter a new url into a radcombobox if it doesn't exist in list already. I have the following markup in my grid <FormTemplate> which pulls its data from a table named tblUrls:

<telerik:RadComboBox ID="UrlComboBox"  
                     runat="server"  
                     HighlightTemplatedItems="true" 
                     AllowCustomText="true"  
                     Skin="Windows7"  
                     Width="365px"  
                     Height="150px"  
                     DataSourceID="UrlDataSource"  
                     DataTextField="Url"  
                     DataValueField="Url" 
                     SelectedValue='<%# Bind("Url") %>'  
                     AppendDataBoundItems="true">

<Items> 
        <telerik:RadComboBoxItem Text="[Not Defined]" Value="" /> 
    </Items> 
    <FooterTemplate> 
        <telerik:RadTextBox ID="tbNewUrl" runat="server" Skin="Windows7" EmptyMessage="Add a new Url here..."/> 
        <br /> 
        <asp:Button ID="AddUrlBtn" runat="server" Text="Add Url" OnClick="AddUrlBtn_Click" /> 
    </FooterTemplate>

</
telerik:RadComboBox> 

I have tried getting access to the tbNewUrl radtextbox inside the RadComboBox in the c# code behind to no avail. I need the AddUrlBtn_Click to save whatever value is put in by the user to the database when the grid is in insert or edit mode. I have the database INSERT code already worked out but getting access to the RadComboBox and the newly inputted url data is proving to be a real pain. I am sure it is real simple, but patience has run out on this one and I am forced to try another way of doing this if I can;t get it resolved quickly.

I have tried:

protected void AddUrlBtn_Click(object sender, EventArgs e) 
{ 
    TextBox Urltxt = (TextBox)UrlComboBox.Footer.FindControl("tbNewUrl"); 

if ((!String.IsNullOrEmpty(Urltxt.Text))&&(UrlComboBox.FindItemByText(Urltxt.Text) == null)) 
    { 
        UrlComboBox.Items.Insert(0, new RadComboBoxItem(Urltxt.Text)); 
        UrlComboBox.SelectedIndex = 0; 
        Urltxt.Text = String.Empty; 
    }
}

I have also tried:

TextBox AddUrlText = (TextBox)this.Page.Master.FindControl("ContentPlaceHolder").FindControl("tbNewUrl"); 

inside the buttons click event - AddUrlBtn_Click but it can't find the control???

The grid is ajaxified too but when I click the AddUrlBtn in its current condition the page does a full postback as well whilst in insert/edit mode which is undesirable.

Any help with this would be greatly appreciated to I can move on with this project.

Thanks in advance for any help :)
Veronica
Telerik team
 answered on 15 Jun 2010
1 answer
208 views
Hello
As I can make a mega drop down, so dynamic that I find very good option to design menus, or at least similar as additional file where the image seems very complete and well designed.

Thanks
Shinu
Top achievements
Rank 2
 answered on 15 Jun 2010
1 answer
109 views
Is there a way to make files inside the FileExplorer show up in a separate browser window, rather than inside the Iframe window?
Dobromir
Telerik team
 answered on 15 Jun 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?