Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
422 views
RadEditor into an application. For the moment RadEditor can be in us-Us, fr-FR and de-DE. But the application can be also in spanish(es-ES), ...
For the moment I coded this :

protected void Page_Load(object sender, EventArgs e){if (!this.IsPostBack){

RadEditor1.Language = Request.Cookies[CIndex.UICulture].Value;

}


But if  (Request.Cookies[CIndex.UICulture].Value == "es-ES") , RadEditor cannot translate in Spanish. I would like to use English as default language. I don't know how to check if RadEditor can translate. I am looking something like that :

if(!Radeditor.Languages.Contains(Request.Cookies[CIndex.UICulture].Value))
{
    RadEditor1.Language = "us-US";
}
else
{
    RadEditor1.Language = Request.Cookies[CIndex.UICulture].Value;
}

But my list Radeditor.Languages is empty. I don't know why. I don't use SpellCheking.

Thank you in advance,

Marcelo
Top achievements
Rank 1
 answered on 15 Jan 2014
4 answers
383 views
I would like to set the grid PagerStyle mode in code behind in order to display different pagers depending on various criteria (namely the available width expected on the particular screen the grid displays on). The criteria I will base this decision on are all available in code behind, but I can't seem to get the setting of the grid PagerStyler.Mode property to work. It seems to ignore anything I set in code behind and go with what is specified in the grid declaration. I have tried setting this in page load prior to the grid being bound and also in the item created event. Can you let me know how I can set the PagerStyle mode in code behind?

Thanks.
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 15 Jan 2014
5 answers
321 views
Hello
i added asp image and image buttons in rad list view read from DB source
my problem i cant get selected picture form rad button to so image
  <asp:Image ID="Image1" runat="server" Width="300px" />
                    <br />
                    <telerik:RadListView ID="RadListView3" runat="server" AllowPaging="True"
                    onselectedindexchanged="RadListView3_SelectedIndexChanged"
                      OnItemDataBound="RadListView3_ItemDataBound" PageSize="4"
                      AllowCustomPaging="True" Skin="Vista">
                        <LayoutTemplate>
                            <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
                        </LayoutTemplate>
                        <ItemTemplate>
                            <asp:ImageButton ID="ImageButton2" runat="server" Height="80px"
                                ImageUrl='<%# Eval("Pic_Path") %>' onclick="ImageButton2_Click" Width="60px" />
                        </ItemTemplate>
                    </telerik:RadListView>

can you help me ??
Maria Ilieva
Telerik team
 answered on 15 Jan 2014
7 answers
238 views
Using this Demo, with a listview nested within another listview, I am attempting to ajaxify the controls with a tabstrip above (Clicking tab buttons refreshes the listview with different data). I've tried and tried, but i cannot get the settings right for ajaxing with an ajax manager. If I place the tapstrip and listviews in an ajax panel, it works perfectly, but I'd prefer not to use an ajax panel (it can reduce performance, correct?).

What is the proper way to ajaxify the tapstrip and listviews with ajax manager?
Maria Ilieva
Telerik team
 answered on 15 Jan 2014
2 answers
103 views
I have problem to hierarchy table  in 4 layer not showing
--
   table1
             table2
                       table3
                                 table4(not showing)

Thank you
Viktor Tachev
Telerik team
 answered on 15 Jan 2014
1 answer
105 views
Hello. I am tring to get a grid to filter based on a drop down selection. I have this working fine, except when the page is loaded from a history point.
Below is one of the columns in the my grid. Note the Java script within the RadScriptBlock5.

 

<telerik:GridTemplateColumn DataField="Sale Price" HeaderText="Price" SortExpression="Sale Price" UniqueName="SalePrice">
   <FilterTemplate>
      <telerik:RadComboBox ID="RadComboBoxSalePrice" runat="server" AppendDataBoundItems="true"
       EnableScreenBoundaryDetection="false" ExpandDirection="Down" DataSourceID="SalePriceDataSource" DataTextField="Sale Price"
       DataValueField="Sale Price Numeric" Height="220px" MarkFirstMatch="true" NoWrap="True"
       OnClientDropDownOpening="OnClientItemsRequestedHandler" OnClientItemsRequested="OnClientItemsRequestedHandler"
       OnClientSelectedIndexChanged="SalePriceIndexChanged"
       SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("SalePrice").CurrentFilterValue%>'
       Sort="Ascending" SortCaseSensitive="False" Width="70px">
        <Items>
           <telerik:RadComboBoxItem Text="All" />
        </Items>
        </telerik:RadComboBox>
        <telerik:RadScriptBlock ID="RadScriptBlock5" runat="server">
      <script type="text/javascript">
        function SalePriceIndexChanged(sender, args) {
            var tableView = $find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID %>");
            tableView.filter("SalePrice", args.get_item().get_value(), "EqualTo");
        }
       </script>
    </telerik:RadScriptBlock>
    <br />
    <div style="height: 35px; margin-top: 5px;">
       <asp:ImageButton runat="server" ID="btnClear" ImageUrl="~/images/used equipment clear button.gif" OnClick="btnClear_Click" />
    </div>
   </FilterTemplate>
   <ItemTemplate>
    <%# Eval("Price Combo")%>
    </ItemTemplate>
    <ItemStyle HorizontalAlign="Right" Width="70px" />
    <HeaderStyle HorizontalAlign="Right" Width="70px" />
</telerik:GridTemplateColumn>
When the use navigates away from the page, and returns to the page, using the history navigation
I get the following error:

Webpage error details
  
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; xs-ivyEL6bAur8;Cm8Afr; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Timestamp: Tue, 14 Jan 2014 19:35:52 UTC
  
  
Message: 'SalePriceIndexChanged' is undefined
Line: 247648215
Char: 5
Code: 0

This java script is wrapped in RadScriptBlock.

Any ideas how to resolve this?

Lou
Top achievements
Rank 1
 answered on 15 Jan 2014
1 answer
174 views
Good Morning All,

We currently use the GridSettingsPersister class to save the users settings.

I just wanted to ask a quick question as to whether we should be looking to replace that with the Persistence Framework control that is part of the collection.

Basically, are there any benefits for swapping?

Regards, Paul.
Pavlina
Telerik team
 answered on 15 Jan 2014
6 answers
530 views
Hi,

Here is a code snipped from my MasterTableView in my RadGrid.  When I clik on the edit hylperlink, I'd like to hide the txtLastName field and its label, so that noone knows it's there and no editing can happen to that field.  How can I do this in the code behind?

<Columns>    
        <telerik:GridEditCommandColumn UniqueName="editCommand"></telerik:GridEditCommandColumn>    
        <telerik:GridBoundColumn DataField="numPersonnelID" DataType="System.Int32"      
            HeaderText="Personnel ID" ReadOnly="True" SortExpression="numPersonnelID"      
            UniqueName="numPersonnelID" Visible="False">     
        </telerik:GridBoundColumn>    
        <telerik:GridBoundColumn DataField="txtLastName" HeaderText="Last Name"      
            SortExpression="txtLastName" UniqueName="txtLastName" MaxLength="50" Visible="false">     
        </telerik:GridBoundColumn>    
        <telerik:GridBoundColumn DataField="txtFirstName" HeaderText="First Name"      
            SortExpression="txtFirstName" UniqueName="txtFirstName" MaxLength="50">     
        </telerik:GridBoundColumn>    
</Columns> 

Thanks,
Greg


Shinu
Top achievements
Rank 2
 answered on 15 Jan 2014
3 answers
124 views
Pivot grid allows users to add any field to any zone type, but in OLAP connection it doesn't make sense because only measure fields give a meaningful data representation when added to aggregate zone and other dimension fields adding to column/row/filter zones. Configuration Panel Fields Context Menu is misleading because when clicked on any dimension it allows user to add any field to any zone as mentioned. how to avoid this. Disable  "move to aggregate fields" for dimension fields and enable only  "move to aggregate fields" for measures in Configuration Panel Fields Context Menu
Vasil
Telerik team
 answered on 15 Jan 2014
1 answer
324 views
Hi! I'm just back from solving a problem with HTML Table borders when being exported to PDF by editor. It seems that the PDF exporter has a bug or a feature :D that makes the border property of the <TABLE> element for the outline border. So that means you need to give borders to every <TD> element that needs one. But if you put them where the outline is, you'll have an ugly extra/double bolded border. If you dont want that you have to specify borders for every TD element that is not outlined by the border property of the <TABLE> element. I know that telerik knows of this bug since when you copy paste a table from MS Word the editor makes tables in the same fashion (they remove some left,right,top borders...). Is this gonna be fixed or should I template my tables for exporting like that?

EDIT (how i came to this problem):

The problem comes when you have custom tags in the editor (e.g. <CustomerTable type=7>). I replace these tags with live data from DB and generate a document like this:

editor_doc.Content = myTemplate.GenerateDocFromTemplate(customerID, editor_doc.Content)
editor_doc.ExportToPdf()

I run a GenerateDocFromTemplate method which just replaces all of the custom TAGs so you're not using the "copy-paste" method  described above. That's where the problem comes.

This really should be documented.
Ianko
Telerik team
 answered on 15 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?