Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
163 views
Hello!!

I have the last version Q2 of the Telerik radcontrols for Asp. Net and i create a Rad Grid with the code bellow, but i want to disable or hide de Add Button control on the lest upper side..How can i do that?

 

 

<telerik:RadGrid id="RadGrid1" runat="server" gridlines="None" allowpaging="True"
            allowsorting="True" autogeneratecolumns="False" width="97%"            
            enableajax="True" CellSpacing="0" DataSourceID="SqlDataSource1" 
            AllowFilteringByColumn="True" onneeddatasource="RadGrid1_NeedDataSource" ShowFooter="True" 
            >  
            <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>  
                 
            <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                <Selecting AllowRowSelect="True"/>
            </ClientSettings>
                 
            <MasterTableView GridLines="None" Width="100%" 
                CommandItemDisplay ="Top" DataSourceID="SqlDataSource1" >  
                 
                <Columns>  
                    <telerik:GridBoundColumn DataField="SequencialNumber" 
                        HeaderText="SequencialNumber" UniqueName="SequencialNumber" 
                        SortExpression="SequencialNumber">   
                    </telerik:GridBoundColumn>
Shinu
Top achievements
Rank 2
 answered on 28 Jul 2011
2 answers
298 views
I want to bind Grid directly from the datasource.. how do i do that? my code is :


<asp:XmlDataSource ID="XmlDataSource1" runat="server" EnableCaching="False" DataFile="~/Bin/xml.xml"
                                TransformFile="~/Bin/xml.xsl"></asp:XmlDataSource>

<telerik:RadGrid ID="RadGrid1" runat="server">
                                <HeaderContextMenu DataTextField="id" DataValueField="id">
                                </HeaderContextMenu>
                                <HeaderContextMenu DataTextField="name" DataValueField="name">
                                </HeaderContextMenu>
                                <HeaderContextMenu DataTextField="color" DataValueField="color">
                                </HeaderContextMenu>
                            </telerik:RadGrid>
Shinu
Top achievements
Rank 2
 answered on 28 Jul 2011
1 answer
56 views
Hi everyone,

In my company since our intranet (under MOSS 2007) has been launched past year, the contributors are experiencing many problems with RadEditor and more precisely with RadHtmlField control on publishing pages.
I want to be sure that the problems we have are common to everyone and not a specific issue linked to our environment.

 - First problem: Creating a new line is a nightmare for contributors. Pressing enter is not what the users are expecting. With a normal behavior, by pressing enter a user expects to have a new paragraph completely independant from the line above. But by pressing enter only <br /> are added and if the user choose to apply a bulleted list on the last paragrah he created, the buletted list is applied on all the paragraphs above...

Here is the code I have just by pressing "Enter" to have new paragraphs and applying bulleted list on the last one:
<span style="font-family: trebuchet ms; color: #666666;">
<ul>
    <li><span style="font-family: trebuchet ms; color: #666666;">This is a test paragraph with Enter
    <li>This is a second test paragraph with Enter</li>
    <li>This is a third test paragraph with Enter</li>
    <li>This is a fourth test paragraph with 2X Enter to jump a blank line</li>
    <li>This is a fifth paragraph for bulleted list</li>
    </span></li>
    <li></li>
</ul>
</span>

As you can see the code is not really clear and is wrong on some parts... The span elements are not wanted (the font and the color are automatically chosen) and nested within li elements which generates bad XHTML code. I also saw on this forum that CTRL+ENTER will normally solve the problem of new lines. So I do my previous example again by pressing CTRL+ENTER:
This is a test paragraph with CTRL+ENTER
<p>This is a second test paragraph with CTRL+ENTER</p>
<p>This is a third test paragraph with CTRL+ENTER</p>
<p> </p>
<p> </p>
This is a fourth test paragraph with 2X CTRL+ENTER to jump a blank line
<p> </p>
<ul>
    <li>This is a fifth paragraph for bulleted list</li>
</ul>

Effectively, CTRL+ENTER is generating new paragraph, except that there is still some bugs. The 2X CTRL Jump is generating blank paragraph which are not visible to the user directly. He needs to click on HTML view and Design again to see the Jump line (when the user press CTRL+ENTER twice, the first end of line is generated but the second one is not displayed in design mode, the users need to go in html view and go back again in design view to see the blank line).
In addition the fourth test paragraph is not a paragraph apparently, just inline html text. The bulleted list is working since the user is selecting the entire line and then clicking on "bulleted list" button.

- Second problem: Creating an Heading 1 and then creating a new paragraph with CTRL+ENTER is not doing what the user is expecting. Indeed, the paragraph is generated into the <h1> tag and not below the element. For heading 1 it is necessary to type ENTER to be sure that the following text will be out of the <h1> tag. Not very easy to explain to the contributors regarding the first issue explained above...

- Other problem: The contributors also experienced many times problems with the copy past form word. Once the content has been correctly pasted into radhtml field, editing this content becomes a nightmare and every new line or style or bulleted list is breaking the design.

To conclude I'm just wondering if this is a problem with a particular version of RadEditor HTML field or if these are known problems. The version installed on our SharePoint farm is : 5.7.2.0. Don't know if the last version is fixing those problems but unfortunately I tried the 5.8.6.0 and it seems that the contributors experience is still confusing. If you can help me on this, I would appreciate.
Stanimir
Telerik team
 answered on 28 Jul 2011
5 answers
1.2K+ views
Hi,
I cannot make the DataFormatString to work. i tried to specify  with rounding without rounding with DecimalDigits with DataType="System.Decimal", NumericType="Number" 
and it seems like it just always shows 3dp what ever I do.

I need to make it 4dp.
i read some posts about the edit, but i care only about the display.

Thanks, Pini.

Vasil
Telerik team
 answered on 28 Jul 2011
1 answer
77 views
I want to customize the pager using my own controls. How can I access the controls that I use in the controls  in the RadDataPagerTemplatePageField PagerTemplate so I can show and hide the controls as I need.
Pavlina
Telerik team
 answered on 28 Jul 2011
1 answer
178 views
Dear Telerik Team,

How to disable the RAD Update prompt in Visual Studio? The one as in the attachment.
Sebastian
Telerik team
 answered on 28 Jul 2011
1 answer
125 views

How i take the image from saved path ,
I'm not saved in binary field ,
I'm saved in file path .
How to show


Thanks,
Mohamed.
Niko
Telerik team
 answered on 28 Jul 2011
2 answers
108 views
Hi everybody,

I have added a dock in the aspx page and I use Telerik skins. I add the skin stylesheet like this, in the OnInit method of the page

HtmlLink lrDock = new HtmlLink();
lrDock.Href = "~/style/-1/skins/MySkin/Dock.MySkin.css";
lrDock.Attributes.Add("type", "text/css");
lrDock.Attributes.Add("rel", "stylesheet");
Page.Header.Controls.Add(lrDock);



I have change a property of the css Dock.MySkin.css page  :

.RadDock_MySkin.rdTop .rdRight
{
width: 0px;
}

But when I load the page, that class is not used. If I put the keyword !important, the class is used. but I wanted to know if there was an other way to override a style which is define in the Dock.MySkin.css.

Moreover, when I check the <head> tag in the source of the page, we can see that the stylesheet is loaded before the telerik axd. 

<link href="../../../style/-1/skins/MySkin/Dock.MySkin.css" type="text/css" rel="stylesheet" />
 
<link href="/dev/WebResource.axd?d=aqedTiDwmUI4QsO_0Jw61omT-LA1rFwmbV4c1GVQqcU-wKQGCetoudaQtJPuF7ZedWlBts1MIvLkr3B3WKzZshepG7nqpwP86LZM20NTk7RGF4f4b9gBIvvmp8CBaa3_B9m7IQ2&t=634320685135340310" type="text/css" rel="stylesheet" class="Telerik_stylesheet" />


So I wanted to know if :

- It was possible to load the stylesheet after the webresource.axd
- I want the css to be the priority on the webresource.axd, without using the keyword "!important"

Thanks for replying
TANSERI
Top achievements
Rank 1
 answered on 28 Jul 2011
2 answers
83 views
Hi,

I'm trying to implement the following and need your advice/assistance in this task.
I have a grid binded to the list of objects, so each column is some property of the object.
I need something like the + sign as the first column, that will change the column DataField on the client-side.

For example, lets say I have the list of files.
So short version of row will look like this
+ | 1.4mb | somefile.txt

Pressing the + will change it to - and show something like this in this row:

- | 1.4mb | somefile.txt
                Last Modified Date: xxx
                Create date: xxx

All this stuff should be client-side and cause no postback.

Looking forward to hear from you.

Thanks,
Mykhaylo
Mykhaylo
Top achievements
Rank 1
 answered on 28 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?