Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
142 views
So when you set CommandItemDisplay to true, it adds a table row for the command export buttons. well, it also throws in a "pipe" character |, before the buttons. How do I remove this pipe?
Paul J
Top achievements
Rank 1
 answered on 19 Apr 2010
2 answers
132 views
This is an excerpt from a post in aspnet forums:

On the other hand, if you use <asp:CheckBox inside <ItemTemplate> </ItemTemplate> and if you store the values of true/false or 1/0 as field of type bit in your database, then you can do that as follows:

  1. <ItemTemplate>  
  2.     <asp:CheckBox ID="chk" runat="server" Checked='<%#DataBinder.Eval(Container.DataItem, "itemType") %>' />  
  3. </ItemTemplate>


 

I'm using the Telerik GridTableView and have the following html:

<code>

<tr>
                                                        <td>
                                                            Item Type
                                                        </td>
                                                        <td>
                                                            <asp:RadioButtonList ID="rblItemType" RepeatDirection="Horizontal" runat="server" >
                                                                <asp:ListItem runat="server" Text="Visible System Wide" Value="1" />
                                                                <asp:ListItem runat="server" Text="Invisible System Wide" Value="0" />
                                                            </asp:RadioButtonList>
                                                        </td>
                                                    </tr>

</code> 

I would like to set the selectedvalue thru the html as you described above, but didn't work for me. No intellisense was available for the Checked item.

 

If it didn't work thru the html, I wanted to do it thru the code-behind. Here is the following, but can't seem to get it right.

<code>

RadioButtonList itmtype = e.Item.FindControl("rblItemType") as RadioButtonList; // this has 2 items in the list - 1 & 0
                                itmtype.SelectedValue = itmtype.Items.FindByValue("
the value coming back from the database").ToString();

</code>

I don't know what should be placed in the unbold faced itme above inside the findbyvalue.

I really need some help on this one.....

Martin
Telerik team
 answered on 19 Apr 2010
2 answers
480 views
Hi
 If i write one paragraph of text in the telerik editor and clicks on the return key it puts one p tag around the text and puts another empty p tag as well that we can see in the HTML mode.
 
If i remove the empty p tag in the HTML Mode and switch to design mode the P tag around the text disappears.
i tunred off the ContentFilters by using <ContentFilters>None</ContentFilters>. This fixed the problem i.e. the p tag does not disappear but the contents of the web page does nto display right, some of the <P> tags merged together.

If there are more than more <P> tags the editor works perfect.

Any help will be appreciated. We are using version 5.3.1 MOSS RadEditor with sharepoint.

Kind regards

Sohail

Sohail Sarwar
Top achievements
Rank 1
 answered on 19 Apr 2010
7 answers
343 views
Hello,

I'm trying to use the RadMenu with multiple columns.  When I set RepeatColumns in the DefaultGroupSettings to 2 I get one column and a second column of white space.  When I set repeatColumns to3, I get two columns with one column of whitespace.  I also can't figure out how to cause a break from column one to column two - it is breaking between items 4 and 5 out of a list of 10.  Goofy.

Attached is a .jpg of what the display looks like and the code is below.  Any ideas what is going on?  Thanks.

Dan

Code:
<telerik:RadMenu ID="Testing" runat="server" CollapseDelay="60000"  > 
    <DefaultGroupSettings RepeatColumns="3" RepeatDirection="Vertical" /> 
    <Items> 
        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem1">  
            <Items> 
                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1" /> 
                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2" /> 
                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 3" /> 
                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 4" /> 
                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 5" /> 
                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 6" /> 
                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 7" /> 
                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 8" /> 
                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 9" /> 
                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 10" /> 
            </Items> 
        </telerik:RadMenuItem> 
    </Items> 
</telerik:RadMenu> 
 
CE Development
Top achievements
Rank 1
 answered on 19 Apr 2010
1 answer
168 views
I have a radgrid with 2 GridTableViews in the detailtable. The mastertableview is bound to a dataview at runtime on a button click event, I also setup the OnNeedDataSource event to make sure the datasource of the grid is always present. At runtime everything works fine and i can expand all records no problem. However once I set HierarchyDefaultExpanded = true and click on the button again I receive an error:

Line: 4723
Error: Sys.WebForms.PageRequestManagerServerErrorException: There was a problem extracting DataKeyValues from the DataSource. Please ensure that DataKeyNames are specified correctly and all fields specified exist in the DataSource.

so if a radgrid has a detailtable which contains multiple GridTableViews the HierarchyDefaultExpanded will not work, am I right?
Iana Tsolova
Telerik team
 answered on 19 Apr 2010
2 answers
131 views
hi, i don't speak in english but i going to try. well, i'm looking for a default web.config, i use rad controls version 1.5.0.0, asp.net 2.0 and iis 7.0


Thanks
Ernesto Castelo
Top achievements
Rank 1
 answered on 19 Apr 2010
1 answer
78 views
Ok so I have the code to send a param over to eh grids webservice

//Send the parameters 
            function OnDataBinding(sender, args) { 
                var methodArguments = args.get_methodArguments(); 
 
                var myMethodArguments = methodArguments; 
                myMethodArguments.someParameter = "test"; 
 
                args.set_methodArguments(myMethodArguments); 
            } 

How though, do I consume this on the webservice?
(here's my definition)
    [WebMethod(EnableSession = true)] 
    [ScriptMethod] 
    public Dictionary<string, object> GetOutstandingApprovalsData(int startRowIndex, int maximumRows, List<GridSortExpression> sortExpression, List<GridFilterExpression> filterExpression) { 
        Dictionary<string, object> data = new Dictionary<string, object>(); 




Nikolay Rusev
Telerik team
 answered on 19 Apr 2010
1 answer
243 views
Can anyone tell me a setting to use that will cause the information in a grid column to word wrap when it is exported to PDF?
Right now when we export a grid of data and a colum is extra long it over lays the ajacent column.

One more thing.  How do you get a hyperlink to export when 

ExportSettings.ExportOnlyData = True

I have to set 

 

ExportSettings.ExportOnlyData =

False
to get the hyperlink data to show up on the reports.

Thanks

 

Daniel
Telerik team
 answered on 19 Apr 2010
1 answer
99 views
Hi,

I was testing my web application for cross-site scripting. To simplify things, I have a web form using a RadAjaxPanel, textbox, regular expression validator checking for a valid e-mail address, submit and a cancel button. When I placed the <script> tags on the textbox, the regular expression validator flags it and I can't proceed with the submit, however, I see a javascript error on the page. When I hit cancel, which I set to causesvalidation to false, I also get a 'Error on page' on my browser and doesn't redirect me to the home page until I clear the <script> tags on the textbox. Most of my web forms do use the ajaxpanel but the errors are misleading from the browser, since the validator controls would have prevented the cross-site scripting. Is there a way around this? Thanks.
Iana Tsolova
Telerik team
 answered on 19 Apr 2010
4 answers
91 views
I am working on implementing a custom filter for my editor. Has the GetPreviewContent call been removed? When I'm moving to Preview, it seems to be calling my GetDesignContent filter.

If it has been removed, is there a workaround so I can tell the difference between Design and Preview?

Thanks in advance,

Trent
Rumen
Telerik team
 answered on 19 Apr 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?