Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
59 views
Hi Folks! Hope someone can help me out. I'm fairly new to ajax and I'm having a hard time implementing it in my current web application.

My site has a master page with two content place holders. On the master page I have three link buttons that each load an aspx page.

One of the content place holders will be used for a menu that will have a number of link buttons.

The second content place holder will be used for content that will contain controls such as the radgrid and other various labels.

What is the best way to implement ajax for my web application?

Thanks!
Shawn

Pavlina
Telerik team
 answered on 31 Aug 2009
4 answers
489 views
I'm using the client side api for my rad ajax controls and as everyone know, you get a handle on the control from javascript like this:

var 

 

tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();

This works great when the javascript is inline with my html markup. However, in trying to be organized, I put my javascript in an external .js file and am then referencing the .js file from the html.  This way I don't have my html and javascript together but as seperate  files.

This is fine and of course standard practice, but, when my script is in a .js file, a call like this doesn't work:

var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();

Is this just a limitation or does someone know the trick for me to have a page's javascript in a .js file but at the same time be able to reference a radcontrol on the page.

 

 

 

 

 

Paul
Telerik team
 answered on 31 Aug 2009
3 answers
331 views
is there any property in RadCombobox..which i can set it takes the Max length of characters in the list....
I do nto want to set the widthin Pizels or percentage..
Kamen Bundev
Telerik team
 answered on 31 Aug 2009
3 answers
140 views
I have already posted this thread by my personal id.
then u ask the web user control and page.
This is as follows :

 

Web user control markup is this :

 

 

 

function Enquiry_Grid_RowDataBound(sender, args) {

 

 

 

 

var createCheckBox = "<input type='checkbox' id='chk_" + args.get_item()._itemIndexHierarchical + "'/>";

 

args.get_item()._element.cells[0].innerHTML = createCheckBox;

}

 

 

 

function Enquiry_Grid_RowDblClick(sender, args) {

 

 

 

try {var grid = sender;

 

 

 

var MasterTable = grid.get_masterTableView();

 

 

 

var rowIndex = args.get_itemIndexHierarchical();

 

 

 

var row = MasterTable.get_selectedItems()[0];
var crmTransactionId = MasterTable.getCellByColumnUniqueName(row, "int_crm_transaction_id").innerText;

 

}

 

 

 

<telerik:RadGrid ID="grdEnquires" BorderStyle="None" Height="150px" AllowMultiRowSelection="false"

 

 

 

runat="server" Skin="Office2007" Width="100%" AutoGenerateColumns="False" GridLines="None">

 

 

<%

--OnItemDataBound="grdEnquires_ItemDataBound">--%>

 

 

 

<ClientSettings>

 

 

 

<Scrolling AllowScroll="true" UseStaticHeaders="True" />

 

 

 

<Selecting AllowRowSelect="True" />

 

 

 

<ClientEvents OnRowDataBound="Enquiry_Grid_RowDataBound" OnRowDblClick="Enquiry_Grid_RowDblClick" />

 

 

 

</ClientSettings>

 

 

<%

--<HeaderStyle CssClass="gridHeader" />--%>

 

 

 

<MasterTableView CommandItemDisplay="None" TableLayout="Fixed" EditMode="EditForms"

 

 

 

AutoGenerateColumns="False" DataKeyNames="int_crm_transaction_id" runat="server"

 

 

 

ClientDataKeyNames="int_crm_transaction_id" NoDetailRecordsText="" NoMasterRecordsText="">

 

 

 

<Columns>

 

 

 

<telerik:GridTemplateColumn HeaderText="" HeaderStyle-Width="30px">

 

 

<%

-- <HeaderTemplate>

 

<input type="checkbox" onclick="SelectAll();" id="chkSelectAll" /></HeaderTemplate>--

 

 

%>

 

 

 

<ItemTemplate>

 

 

 

<input type="checkbox" id="chkSelect" runat="server" />

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridBoundColumn DataField="int_customer_id" HeaderText="Customer ID" SortExpression="int_customer_id"

 

 

 

UniqueName="int_customer_id" Display="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

 

</telerik:RadGrid>

 

 

Code Behind is This: 

 

 

 

public void BindInquiryRequest(DataRow[] dr)

 

{

 

grdEnquires.DataSource = dr;

 

grdEnquires.DataBind();

}

 

 

.ASPX page Markup is THIS:

 

 

<asp:ScriptManager ID="sm" runat="server" ScriptMode="Release" LoadScriptsBeforeUI="false">

 

 

 

<Services>

 

 

 

<asp:ServiceReference Path="~/Services/GetData.asmx" />

 

 

 

</Services>

 

 

 

</asp:ScriptManager>

 

 

 

 

 

 

 

 

<asp:UpdatePanel ID="up" runat="server">

 

 

 

<ContentTemplate>

 

 

 

<asp:Panel ID="Panel1" runat="server" Width="100%" CssClass="panelBar">

 

 

 

<asp:Label ID="Label1" runat="server" Text="Inquiry/Request"></asp:Label>

 

 

 

</asp:Panel>

 

 

 

<asp:Panel ID="Panel2" runat="server" CssClass="collapsePanel" BackColor="White"

 

 

 

Font-Size="8" ScrollBars="None" Width="100%">
<uc:InquiryRequestList ID="ucInquiryRequest" runat="server" Height="100" />

 

 

 

</asp:Panel>
</ContentTemplate>

 

 

 

</asp:UpdatePanel>

 

 

 

 

Code Behind is this :

 

 

 

DataRow[] dr = ((DataSet)wsGetData.GlobalSearch(searchIn, searchValue)).Tables[0].Select("int_crm_transaction_id not like 'CMP%'");

 

ucInquiryRequest.BindInquiryRequest(dr);

 

 

and except this one other problem is this : i have taken a input button not runat="server" and i export grid to excel it was doing postback, but i don't want post back.
button markup is this:

 

 

 

function Inquiry_ExportToExcel() {

 

 

 

 

var grid = $find("<%=grdEnquires.ClientID %>").get_masterTableView();

 

grid.exportToExcel();

return false;

 

}

 

<

 

 

input type="button" id="btnExport1" value="Export" style="width:50px;" causesvalidation="false" onclick="Inquiry_ExportToExcel();" />


Please solve my problem. I am awaiting of your kind response.

Vlad
Telerik team
 answered on 31 Aug 2009
3 answers
165 views
Hi,

from the online help,..
http://www.telerik.com/help/aspnet/editor/installusinghotfix.html

Point 10 of the help ...

10. [Optional. Follow this step only if you intend to use skins different from the default or if you plan to modify the JavaScript files
Exceptions: Because of the specific control features, you will always need to copy RadControls for Telerik RadChart, Telerik RadEditor, Telerik RadSpell and Telerik RadWindow products. ]
Copy the new RadControls folder to the root of your web-application.

(Well ....There is no RadControls Folder in the HotFix zip ..only individual folders for scripts and Skins, within each of these folders are subfolders per RadControl)
and the structures are quite different.

eg. Original (ex 2008.2)
Has

  • RadControls
    • Ajax
      • Skins
      • Scripts
    • Calendar ...
    • Chart
    • .....
    • Editor
      • Controls
      • Dialogs
      • Localization
      • Scripts
      • Skins
      • Xhtml

and the zip..has an entirely different folder structure....

  • RootFolder
    • Scripts
      • Editor
          • EditorDialogs

 

Are we supposed to then copy each one (script + skin individually) across to each matching folder (not all match either).

Or...Delete all that were in the RadControls folder of  the app, and then copy across the Scripts and The Skins folders as is, from the unzipped HotFix folders??

Also,

Wish the Download page part of the telerik YourAccount , to Downloads, to some  link at the bottom re inhouse builds (where you actually get the fix!!)  site  (Help on this is also outdated, bears no resemblance to Site structure, naming conventions anymore), could really warn the user there,  that Downloading the New version Installer.exe,  and doing the install WHEN the client already has an older version installed will lead to some serious GAC issues , so  rather then use the the Zip.  Can't they be Placed  together so one does'nt have to go searching elsewhere for the ZIp or Hotfix downloadables...with some indication as to which to download / use and why...Like warning , do this and lose 10 years of your life, or do it  this way, and save yourself pain.
 It's not obvious until you have done the new install, run into all sorts of GAc issues, and read the documentation, and more, and hours later,  having just  deleted the whole bloody lot out of the gac, and not replaced any either, found out you actullay needed the zip    and now have apps to fix and then decided to just live with the dll's in each App's bin folder. Upgrade the Web.Ui.Dll and each controls reference to it in the bin.
ps the help says copy the dll (singular) from the zips bin dir....there are 2 dll's and an xml file in that folder. so is it the Web.UI.DLL or the Web.Design dll ???  or both.??


Fustrated, pissed off and days behind on my dev schedule.

But the rest and controls....bar issues with Editor not working in Popup rad windows are still great...just wish I could get to use the new ones ..eg Grid Export to pdf,...New Editor dialogs etc.

please use the following "Developers" email addr when responding.
Thanks

 nrogers@iafrica.com

Paul
Telerik team
 answered on 31 Aug 2009
3 answers
210 views
Hi,

I am using a PanelBar to create a vertical menu for the left-hand side of a page. It works fine until I add an IFrame - the panels no longer expand. Please help!

ASPX as follows; the panelBar is populated when it loads on server - just a series of panels with a few icons in each. Commenting the IFrame makes the panelBar work again.

<table width="100%">

 <tr style="height:100%;">

 <td align="left">

<telerik:RadPanelBar ID="LHSMenu" Height="800px" runat="server" Skin="Outlook" BackColor="#4682B4" ExpandMode="FullExpandedItem" />

 </td>

 <td style="height:100%; vertical-align:top; width:90%;">

 <!--Main frame -->

 <iframe id="MainFrame" src="htmlpage.htm" height="800px" frameborder="0" width="100%" scrolling="no" />

 </td>

 </tr>

 </table>

 Thanks,

Simon

laolu olapegba
Top achievements
Rank 1
 answered on 31 Aug 2009
1 answer
83 views
Dear Telerik,

Thanks so much for making such a great product. My question is kind of puzzling. I have a number of combo boxes and other ui elements in a form. Based on the users selections, I enable or disable certain combo boxes. I do that by putting a div around a set of combo boxes so I don't have to disable each one.

The problem is that the text in the combo boxes gets skewed in IE 7. If I could upload a screenshot, I could show how it looks.

Have you heard of anything like this?

Eric
Yana
Telerik team
 answered on 31 Aug 2009
1 answer
113 views
I have 2 tabs in tabstrip:

1st pageview contains an ajax updatepanel (not telerik) covering a radgrid
2nd pageview contains an ajax updatepanel (not telerik) covering a form to insert new data.

On success insert in the 2nd pageview, i want to auto switch the tab to the first pageview, so that the user can see the newly inserted data in the grid.

My current approach does not work as the view stays on 2nd pageview even after success insert. Any workable solution is appreciated, i need separate updatepanel for each pageview to reduce loading time.

Thanks
Paul
Telerik team
 answered on 31 Aug 2009
1 answer
107 views
I make a linkbutton visible when appointment form is created:


protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e) 
        { 
LinkButton1.visible = true; 
} 

I want to hide the LinkButton1 when the insert or update is finished and RadScheduler1 returns to calendar view. is this possible? thanks in advance
Shinu
Top achievements
Rank 2
 answered on 31 Aug 2009
1 answer
125 views

Good afternoon!

I have a page that opens many pop-ups with different sizes from a RadWindow, but when I close the first one, the next opened pop-up gets the same size of the last one until it's completely loaded, you can see the code below:

Origin page code:

        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Office2007"
            ShowContentDuringLoad="false" VisibleStatusbar="false" ReloadOnShow="true" Behavior="None"
            Modal="True" Style="z-index: 90000;">
            <windows>
                <telerik:RadWindow runat="server" ID="RadWindow1" Width="10" Height="10" Modal="true"
                    OnClientClose="OnClientClose" Behavior="Move" />
            </windows>
        </telerik:RadWindowManager>

        function openWin(tela) {
                    var menu = $find('RadMenu1');
                    menu.close;
                    $find('Timer1')._stopTimer();
                    var oManager = GetRadWindowManager();
                    oManager.open(tela, "RadWindow1");
                }

Code to open up the RadWindow:

        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }
        function Entrar() {
            GetRadWindow().setSize(200, 200);
        }

Thanks in advance!

Georgi Tunev
Telerik team
 answered on 31 Aug 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?