Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
66 views
Hello,

We have a grid (Office 2007 theme) with many small columns. When one of these columns is sorted, IE increases the header height and shows the icon below the text. We want to force the header to always have the same height though.

overflow and text-overflow work for the text, but not for the image.
This happens only in IE. Firefox and Chrome correctly hide the overflowing image.

Any thoughts?

Thanks in advance.
Dimo
Telerik team
 answered on 31 Aug 2009
3 answers
240 views
I know RadAJAXManager uses updatepanels internally was wondering if there is an easier manner in which to set the ChildrenAsTriggers property other than programatically using the OnAjaxSettingCreated event?  Could there be property added to the AjaxUpdatedControl class?

Thanks
Matt
BaiH
Top achievements
Rank 1
 answered on 31 Aug 2009
6 answers
605 views
Hi,

I have a radGrid to which I am adding GridButtonColumn of type link at runtime. When I click on that link, it is calling  my code behind item command. I am able to retrive text and index from GridCommandEventArgs. I want to know how to get the header text that this link is clicked.

Please provide me some solution.

    protected void radGrid_ItemCommand(object source, GridCommandEventArgs e)
    {
        if (e.CommandSource.ToString() == "Telerik.Web.UI.GridLinkButton")
        {
            LinkButton lb = (LinkButton)e.CommandSource;
            string text = lb.Text;
            int index = e.Item.DataSetIndex;

        }
    }


Thanks,
Mahesh
Shinu
Top achievements
Rank 2
 answered on 31 Aug 2009
2 answers
90 views
I downloaded and installed the latest version of the ASP.NET AJAX RadControls (v. 2009.2 826) and now my SeparatedButtons hack on my toolbars isn't working correctly.  In IE everything looks great, but in Firefox 3 the toolbar has a minimum height (maybe 5px) and the buttons and displayed under the toolbar.  If I remove the SeparatedButtons class attribute from the Toolbar then it works fine in Firefox (except all buttons are now pushed to the left)

In IE 7 (and IE8): Toolbar in IE

In Firefox 3: Toolbar in Firefox

I'm going to see what I can track down in Firefox but I was just wondering if anyone else has run into this issue and already solved it.

FYI...
The SeparatedButtons hack I'm talking about can be found here:
http://www.telerik.com/community/forums/aspnet-ajax/toolbar/button-alignment-questions.aspx
Alex Gyoshev
Telerik team
 answered on 31 Aug 2009
1 answer
88 views
Hi ,
My team is working with telerik controls . We are having licence also.We came across a scenario that is kind of show stoper for us now.

The application contains a radtabstrip with 8 tabs , all declaratively assigned in main.aspx page. Each tab is binded with usercontrols.
We have used Radajax manager to avoid post back whenever we click on any tab ( kind of updatepanel ).

Problem - When ever the main start page(Page having radtabstrip)  is loaded it's hitting all the usercontrols pageload which are binded to the other tabs & it makes the page nonresponsive for a while . Requirement is to load the tab contents when we click on the tab only . If we click on tab 2 then only 2nd tab's page load should hit it should not hit other tab's pageload. Can you please help us regarding the same so that it will help us solving the performance issue.

Let me know in case more details required.
In advance thank you.

Regards
Chinmay
Paul
Telerik team
 answered on 31 Aug 2009
1 answer
50 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
479 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
318 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
132 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
156 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?