Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
120 views
I'm trying to change the RadGrid column header tooltip with the following code snipet:

 

protected void grdDetail_PreRender(object sender, EventArgs e)

 

{

 

GridHeaderItem header = (GridHeaderItem)grdDetail.MasterTableView.GetItems(GridItemType.Header)[0];

 

header[

"CatHMO"].ToolTip = "Custom Tooltip";

 

}


When I hover over the column header it still says "Click here to sort". What am I doing wrong.

Thanks
Richard
Top achievements
Rank 1
 answered on 06 Jul 2010
1 answer
104 views
Hi,

We have been using the RadEditor for a while now and several of our clients have reported quite a few issues with the way that the editor works. We have recently upgraded to the latest version, hoping that these issues would have been resolved. However, there are still several issues that we have found:
  • I pasted some text into the editor, part of which was in a bulleted list and had bold text. I tried to remove the bullet point and remove the bold formatting but neither of these worked. So there was no way to remove the bullet point and I was stuck with bold text where it wasn't wanted. I decided to leave the bullet in so I saved the page that I was editing and this took me back to a different page. When I went back onto that page, all formatting was gone (the text was no longer bold and there was no bullet point). I tried again to put the bullet point in and save the content but once again, when I went back to the page, the formatting was gone.
  • I have also tried other formatting such as underlining text but this formatting is also lost.
  • After pasting text, backspace does not work unless the 'Enter' key is pressed first.

I hope someone can offer some help on this as, so far, we are a bit disappointed with the new editor.
Rumen
Telerik team
 answered on 06 Jul 2010
1 answer
159 views
Hi,
    in my application, i have used url rewriting(Seo friendly url) ,
in one my aspx page i am using radgrid with EnableSeoPaging true. when i set EnableSEOPaging false then paging is working fine.
when i set EnableSEOpaging true then radgrid paging does not work while in url querystring appned with page no.
like this
http://localhost:53500/alabama/alabaster?ctl00_MainContent_BusinessList1_RadGridListingChangePage=2

but page index of radgrid does not change only 1st page of data show in radgrid.
I also want url shoul look like,
http://localhost:53500/alabama/alabaster/2
how to handle these things
i did not analyze why paging does not work when i set EnableSEOPaging true.

 

<telerik:RadGrid ID="RadGridListing" runat="server" AutoGenerateColumns="false" ShowHeader="false"

 

 

BorderWidth="0" AlternatingItemStyle-BackColor="White" ItemStyle-BackColor="White"

 

 

OnNeedDataSource="RadGridListing_NeedDataSource" GridLines="None" ItemStyle-BorderStyle="None"

 

 

AlternatingItemStyle-BorderStyle="None" Skin="Vista" AllowPaging="true" PageSize="5"

 

 

PagerStyle-Mode="NextPrevAndNumeric" PagerStyle-BackColor="#F3F4F3"

 

OnItemCreated

 

="RadGridListing_ItemCreated">

 

 

 

 

 

 

 

<PagerStyle EnableSEOPaging="true"/>

 

 

<MasterTableView DataKeyNames="UserId" AllowPaging="true">

 

 

<Columns>

 

 

<telerik:GridTemplateColumn>

 

 

<ItemTemplate>

 

 

<div style="vertical-align: top">

 

 

<asp:HyperLink ID="HypPracticeName" runat="server" Text='<%#bind("PracticeName")%>'

 

 

ForeColor="#0A0A0A" Font-Bold="true" Font-Size="12px">

 

 

</asp:HyperLink>

 

 

</div>

 

 

<div>

 

 

<asp:Label ID="LblAddress" runat="server" Text='<%#Bind("StreetName") %>' Font-Size="12px"></asp:Label></div>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 


in aspx.cs page

 

protected void RadGridListing_NeedDataSource(object source, GridNeedDataSourceEventArgs e)

 

{

 

 

 

TList<BusinessUsers> objUsers = DataRepository.BusinessUsersProvider.GetByCityId(this.CityId);

 

objUsers.Sort(

"UserId asc");

 

 

if (objUsers.Count > 0)

 

RadGridListing.DataSource = objUsers;

}

 

 

 

 

 

protected void RadGridListing_ItemCreated(object sender, GridItemEventArgs e)

 

{

 

if (e.Item is GridDataItem)

 

{

 

long UserId = long.Parse(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["UserId"].ToString());

 

 

TList<BusinessPerCity> objPerCity = DataRepository.BusinessPerCityProvider.GetByCityId(this.CityId);

 

objPerCity.Filter =

"IsFeatured = True";

 

objPerCity.ApplyFilter();

objPerCity.Sort(

"UserId asc");
//here is my business logic

 

}

}






Veli
Telerik team
 answered on 06 Jul 2010
2 answers
93 views
Hello Telerik people,

I had a question about if its possible to fire the browse event of the radupload with a dedicated button.

<asp:ScriptManager ID="ScriptManager" runat="server" /> 
 
<telerik:RadUpload ID="CVUpload" runat="server" MaxFileInputsCount="1" ControlObjectsVisibility="None" /> 
 
<script type="text/javascript">  
    var a = getRadUpload("<%= CVUpload.ClientID %>");   // this is null  
    var b = $find("<%= CVUpload.ClientID %>");   // this is null  
</script> 

Found a bit code on this site but here it only returns null.

Greetings,
Jeroen Speldekamp
Suneco
Top achievements
Rank 2
 answered on 06 Jul 2010
1 answer
100 views
Could you please attend to my problem and give me a solution:
I am trying to write dhivehi language (dv-MV).

I am using a javascript to configure the fonts of divehi language to work it proper:
http://www.jawish.org/blog/uploads/jtk-4.2.1.js

Reference to the script (how it works):
http://www.jawish.org/blog/archives/322-Javascript-Thaana-Keyboard-version-4.0.html

Fonts used:
http://www.miadhu.com/dv/wp-content/themes/miadhu_dhivehi/images/miadhu_fonts.zip




HTML HEAD:
<head runat="server"
    <title></title
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" /> 
        <script src="../Scripts/jtk-4.2.1.pack.js" type="text/javascript"></script> 
    <script type="text/javascript"
        thaanaKeyboard.defaultKeyboard = 'phonetic'
    </script> 
</head> 

CSS:
.thaanaKeyboardInput  
    font-family: faruma, 'mv iyyu nala''mv elaaf normal'
    directionrtl


Applied to RadTextbox:
 <telerik:RadTextBox ID="RadTextBox1" CssClass="thaanaKeyboardInput" Runat="server" Width="740px"  
        MaxLength="200" Rows="1" Skin="Hay" > 
        <HoveredStyle BorderColor="#A78080" /> 
        <EnabledStyle BorderColor="#D3C0C0" /> 
    </telerik:RadTextBox> 

While this method successfully works with RadTextbox (see the attached RadTextbox.jpg), this couldn't work with RadEditor(editor.jpg).

I think it is because I can't directly apply the css to the textbox inside the editor.

Could you please try to understand my problem and help me?
Rumen
Telerik team
 answered on 06 Jul 2010
10 answers
268 views

Please lookinto my code below

<MasterTableView CommandItemStyle-Font-Names="tahoma" CommandItemStyle-Font-Size="10pt" 
                            HeaderStyle-BackColor="#1C5E55" ItemStyle-BackColor="LightGray" BorderColor="Gray" 
                            BorderWidth="1px" AllowSorting="true" AutoGenerateColumns="False">  
                            <RowIndicatorColumn> 
                                <HeaderStyle Width="20px" /> 
                            </RowIndicatorColumn> 
                            <ExpandCollapseColumn> 
                                <HeaderStyle Width="20px" /> 
                            </ExpandCollapseColumn> 
                            <ItemStyle BackColor="LightGray" /> 
                            <HeaderStyle BackColor="#1C5E55" /> 
                            <CommandItemStyle Font-Names="tahoma" Font-Size="10pt" /> 
                            <Columns> 
                                  
                                <telerik:GridBoundColumn UniqueName="WorkflowType" SortExpression="WorkflowType" 
                                    HeaderText="Workflow Type" DataField="WorkflowType">  
                                </telerik:GridBoundColumn> 
                                  
                            </Columns> 
                        </MasterTableView> 

This is my code. The sort is not ascending or descending correctly for workflow column. But records are ordered in some random manner. Can any one please guide.

BV
Top achievements
Rank 1
 answered on 06 Jul 2010
2 answers
105 views
i'm getting a stack overflow on node1.select below.
tvAddr is a radtreeview. the node1/find and select java at the bottom reiterates - causing a stack overflow...any ideas or work-arounds? thanks.  i'm using 2010.1.519.35 version.  thanks.

 

function isInvoiceAddrSelectedValid(s, e) {

 

       var invaddr;

 

 

       invaddr = window.document.getElementById(

"cbInvTo").value;

 

       if (isAddrComplete(invaddr)) 

              {

       e.IsValid =

true;

 

 

              }

 

 

       else {

 

              var tree = $find("<%= tvAddr.ClientID %>");

 

              var addrvalue = window.document.getElementById("txtAddrTypeID").value;

 

              debugger;

 

              if (addrvalue != '') {

 

                     var node1 = tree.findNodeByValue(addrvalue);

                     node1.select();

                     e.IsValid =

false;

 

 

              }

              e.IsValid =

false;

 

 

}

}

 

 

MVeranis
Top achievements
Rank 1
 answered on 06 Jul 2010
2 answers
118 views
Hi all
I have a grid with some rows selected.When i change page or make a sort the grid lose all rows selected. There is a way to let the grid mantain the rows selected wheni make a sort or change a page?
Thanks in advice
incrysis incrysis
Top achievements
Rank 1
 answered on 06 Jul 2010
1 answer
70 views
Hey,

I've got a question. For a new project I've started with a basic YUI3 reset (http://developer.yahoo.com/yui/3/). I use the reset, base and font css files so everything works like a charm across browsers. And while it seemed to work perfectly, the RadEditor doesn't seem to like it very much.

In the attached screendump (I've erased text and labels, so don't worry it's not THAT messed up) on it you'll see 4 browser windows.
Internet Explorer totally lost it, Firefox somehow stretches it almost screen high, same with Safari but Chrome seems to do just fine.

I'm not a front end engineer, so I'm doing nothing fancy, this is just the mock-up before the sauce.
There are 4 stylesheets referenced: YUI3 reset, YUI3 base, YUI3 fonts and 960grid.css and while this combination seems to work perfectly for RadMenu, formDecorator and some of the basic UI elements, the editor really really doesn't seem to like it.

Anyone got a good idea how to fix this?

Thanks in advance,
Jochem.
Bozhidar
Telerik team
 answered on 06 Jul 2010
1 answer
116 views
Hi,
       I have binded a Radcombo-box items with some attributes at Client-side , After a new item was added on the Combo-box
 The item text only displayed, but the attribute columns are blank, they were not visible. Pls help to solve this problem.

    var items = combo.get_items();
    combo.trackChanges();
    var comboItem = new Telerik.Web.UI.RadComboBoxItem();
    comboItem.set_text("New");
    comboItem.set_value("Value");
    comboItem.get_attributes().setAttribute("Pieces", "2");
    comboItem.get_attributes().setAttribute("GrWt", "2.00");
    items.add(comboItem);
    combo.commitChanges();

Simon
Telerik team
 answered on 06 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?