Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
138 views
Hi,

Is it possible to dynamically change a Radgrid's EditMode from "InPlace" to "PopUp" from a server side event?

I have a grid in which I want to do Inline editing for an Insert, but a custom web control for Edit.

I tried using the ItemCommand event and changing the grid's EditMode value (see example below), but it still opens in Inline mode.

 

 

protected void radGridPeople_ItemCommand(object sender, GridCommandEventArgs e)
{
    try
    {
        if (e.Item.OwnerTableView.Name == "PersonConditionGrid")
        {
            if (e.CommandName == RadGrid.EditSelectedCommandName)
            {
                e.Item.OwnerTableView.EditMode = GridEditMode.PopUp;
                e.Item.OwnerTableView.EditFormSettings.UserControlName = "PeopleMaint/PersonCondAction.ascx";
            }
        }
    }
    catch (Exception ex)
    {
        ErrorHandler.WriteErrorLog(GenFunctions.CurrentUserName, System.Reflection.MethodBase.GetCurrentMethod().Name, ex);
        generalCustomValidator.ErrorMessage = ex.Message + "<br/>" + ex.StackTrace;
        generalCustomValidator.IsValid = false;
    }
}

 

 

 

Eyup
Telerik team
 answered on 17 Sep 2012
2 answers
109 views

Hello Telerik Team,

I have used RadToolTip in my site extensively. Recently I have updated the Telerik version to “2012.2.724.35” and after that i am facing formatting issues related to RadToolTip.

Older Version we were using: 2011.1.519.35
New Version currently we are using: 2012.2.724.35

I have gone through on all release notes between the above two versions and as per the release note of “Q1 2012 (version 2012.1.215)” there is a improvement in default padding and/or margin to the content area and Tooltip title element for better UI and visualization. But these formatting improvements forced to changes the other controls position present inside the RadToolTip control since in the new Telerik version the RadToolTip captures the more padding space which minimize the actual content area where the other controls are present.

To resolve this issue I have to change many of the pages in our project but it takes huge time to do changes for all RadToolTip. Kindly suggest, is there any way to apply the older padding to RadToolTip or override the RadToolTip default padding?

Please suggest any workaround to get rid from these formatting issues.  

Thanks,
Ashish

Ashish
Top achievements
Rank 1
 answered on 17 Sep 2012
1 answer
86 views
Hello Telerik Team,

I have a radgrid with a HyperlinkColumn, i'm binding a string type field. Let say "Order Number" field is a String Data Type in the database, which accepts alphanumeric. But for some clients, they use only Integer Type "Order Number", they want to sort like an integer.

1)  First constraint, i cannot change the database type field per client. This would be a standard string type field across all client databases.
2) I mention the DataType Property for HyperlinkColumn as System.Int32, but sorting still sort like a string. Ex.: 1, 12, 13, 2, 21, 22 etc..

Any work arounds please. Its an urgent req..

Thanks,
Phani.


Eyup
Telerik team
 answered on 17 Sep 2012
2 answers
68 views
Hi,

I'm trying to translate the tooltips in the grid pager in the code-behind, but whatever I try, they stay in English. I tried using this code in the Page_Load, the Page_Init and the OnItemCreated event, but the tooltip text doesn't change. Am I doing something wrong?
ProductList.PagerStyle.NextPageToolTip = "sometext";



Thanks!

 

 

Michael
Top achievements
Rank 1
 answered on 17 Sep 2012
7 answers
107 views
Hello Telerik support. I'm not sure if this is a known issue, but I just ran into something weird and I wanted to ask about it. I have a set of test upload files that I made, Test1.txt, Test2.txt, etc, and when I try to upload it with the ASyncUpload control the file progress bar stays yellow and the upload never completes. The files have nothing inside of them, and are just new files typed as a .txt file. I've tested it on IE 8 and Firefox 4 and they both never complete the upload or display any errors. However, when I added some text inside of the test files the uploads completed correctly. Strangely enough, when I tested the files on the Telerik demo pages for AsyncUpload they did complete the upload. This shouldn't be a problem unless users try and upload blank files accidentally, but I would like some way to detect this condition and display an appropriate error message and kill the upload if it happens.
Peter Filipov
Telerik team
 answered on 17 Sep 2012
20 answers
510 views
Hi, 
in my radGrid I've a GridTemplateColumn like this:
<telerik:GridTemplateColumn UniqueName="statusCln" HeaderText="<%$ Resources: Activity, ActivityStatus %>" 
                      AutoPostBackOnFilter="true"  DataField="ActivityStatus.Description"
                       <ItemTemplate> 
                            <asp:Label ID="lblStatus" runat="server" Text=""></asp:Label>  
                            <asp:Label Font-Size="0.9em" ForeColor="Red" ID="assignerLbl" runat="server" Text=""></asp:Label> 
                       </ItemTemplate> 
                       <FilterTemplate> 
                            <telerik:RadComboBox runat="server" ID="ComboForStatus" AutoPostBack="true" 
                            OnClientSelectedIndexChanged="StatusIndexChanged"
                                <Items> 
                                    <telerik:RadComboBoxItem Text="<%$Resources:General,Select %>" Value="0" /> 
                                </Items> 
                            </telerik:RadComboBox> 
                            <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server"
                                <script type="text/javascript"
                                    function StatusIndexChanged(sender, args) { 
                                        var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>"); 
                                        tableView.filter("statusCln", args.get_item().get_text(), 1); 
                                    } 
                                </script> 
                            </telerik:RadScriptBlock> 
                        </FilterTemplate> 
                     </telerik:GridTemplateColumn> 

The text of the 2 Labels inside the ItemTemplate is binded server side during RadGrid1_ItemDataBound event.
My problem is that  the filter using the RadComboBox doesn't work.
As you can see from the code, filtering happens client side using the tableView.filter function. This function requires the uniquename of the GridTemplateColumn. I suppose that filtering doesn't work because in my case this column is associated with 2 different values (the values in of the 2 labels).
How can I find a solution to this?  or Am I doing something wrong?

Greetings
Marco
 
Antonio Stoilkov
Telerik team
 answered on 17 Sep 2012
1 answer
121 views
I just installed the Telerik ASP.Net AJAX toolset and when I try to create a new C# website, I get the following error. How do I get past this?

---------------------------
Microsoft Visual Studio
---------------------------
[A]Telerik.VSX.WizardEngine.Configuration.ScenarioDefinition cannot be cast to [B]Telerik.VSX.WizardEngine.Configuration.ScenarioDefinition. Type A originates from 'Telerik.VSX.WizardEngine, Version=2012.2.724.0, Culture=neutral, PublicKeyToken=0dfdc51bd06071b4' in the context 'LoadFrom' at location 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Telerik\Telerik Silverlight VSExtensions\2012.2.724.0\Telerik.VSX.WizardEngine.dll'. Type B originates from 'Telerik.VSX.WizardEngine, Version=2012.2.814.0, Culture=neutral, PublicKeyToken=0dfdc51bd06071b4' in the context 'LoadFrom' at location 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Telerik\Telerik WebUI VSExtensions\2012.2.814.0\Telerik.VSX.WizardEngine.dll'.
---------------------------
OK   
---------------------------

Petar
Telerik team
 answered on 17 Sep 2012
1 answer
61 views
hi

How do i have my value in the header text?

For example, my data is the employees name and i would like to display the employee name as header text and when i click on the name of the employee, it go to the details page.
thanks a lot.
Eyup
Telerik team
 answered on 17 Sep 2012
2 answers
98 views
As per my requirement i need when the MinValue for a RadNumericTextBox is set to 0 it should not even allow to type the '-' character into the RadNumericTextBox.

It should behave in the same way as it behaves for any other characters, but now even the MinValue is set to 0 it allows to type the '-'/hyphen character. I am handling this situation by implementing the RangeValidation on the RadNumericTextBox so that it is showing the error message on focus out from it or on click of the 'Save' button.

Can anybody help me in this regard if there is a way to make it behave in the same way it behaves for other characters when entered like(do not allow user to type the character and show an error icon) ?

Hoping for a satisfactory option should be there. Thanks in advance.
Smruti Ranjan
Top achievements
Rank 1
 answered on 17 Sep 2012
0 answers
53 views
How do we use confirmbuttonextender ajax control in Radcombobox?
Rabeek Ahamed
Top achievements
Rank 1
 asked on 17 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?