Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
60 views
Hi,

I am using two RadComboBox in SharePoint environment inside update panel. The control is inside a user control web part. The problem is when we switch to ie 7, these combo boxes disappear randomly. I tried to apply position:relative to its parent div but this does not solve the issue. Please help.

Thanks and regards.
Rujoota
Top achievements
Rank 1
 asked on 05 Apr 2013
1 answer
215 views
I have a set of RadListBox es used to select categories. I want to validate that the transfer destination has items. I can get this to work but not when the control to validate is the RadListBox. Seems like I have to validate a text box to get  the Validator to fire client side. If the text box is not changed or is valid then the RadListBox does not get validated until the server side (which is better than never). Is it possible to get the Validator to fire another time even if it is just on the submit button? Here is the code:

Available Sub Categories<br />
<telerik:RadListBox ID="rlbAvailableSubcategories" runat="server" Height="200px"
    Width="200px" AllowTransfer="true" TransferToID="rlbMappedSubcategories" TransferMode="Copy"
    ButtonSettings-ShowTransferAll="false" SelectionMode="Multiple" AllowDelete="false" AllowTransferOnDoubleClick="True" ButtonSettings-TransferButtons="TransferFrom">
</telerik:RadListBox>
Mapped<br />
<telerik:RadListBox ID="rlbMappedSubcategories" runat="server" AllowTransferDuplicates="false"
    Height="200px" Width="200px" AllowDelete="true">
</telerik:RadListBox>
<asp:CustomValidator ID="ValidateMappedSubcategories" EnableClientScript="True" runat="server" ErrorMessage="You must add at least 1 category"
    ClientValidationFunction="rlbMappedSubcategoriesHasItems" ControlToValidate="txtAddLongDesc" ValidateEmptyText="True" OnServerValidate="rlbMappedSubcategoriesHasItems_Validate" Display="Dynamic"></asp:CustomValidator>
 
<script type="text/javascript">
    function rlbMappedSubcategoriesHasItems(source, args) {
        var list = $find("<%= rlbMappedSubcategories.ClientID %>");
        args.IsValid = list.get_items().get_count() > 0;
    }
</script>
Bozhidar
Telerik team
 answered on 05 Apr 2013
1 answer
108 views
Hi,

In certain websites I have seen the Menu is rendered in two or three columns. How to do the same with RadMenu? I want to make the RadMenu displayed in two columns so as to save space.

Thanks in advance
Joseph
Princy
Top achievements
Rank 2
 answered on 05 Apr 2013
1 answer
163 views
Hi

Please check the attachment. I believe its a text box with two arrows to increase and decrease the content value. How to create such a text box?

Thank you,
Saravanan KS
Princy
Top achievements
Rank 2
 answered on 05 Apr 2013
6 answers
134 views
H, guys

I have this nice piece of code that ensures that when the grid is paged it will jump back to the top of the grid. Useful for when the user is at the bottom of the grid.

<script type="text/javascript" language="javascript">
    // Catches events fired by the RadGrid (paging) and jumps page to the top  
    var postbackElement;
    Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequest);
    Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(pageLoaded);
    function beginRequest(sender, args) {
        postbackElement = args.get_postBackElement();
    }
    function pageLoaded(sender, args) {
        if (typeof (postbackElement) === "undefined") {
            return;
        }
        // Uses the MasterTable ClientID 
        if ((postbackElement.id) === "ctl00_CphJam_ctl00_RadGrid1_ctl00") {
            window.scrollTo(0, 160);
        }
    
</script>

However, it only works when a page 'number' is clicked - it does not work when any of the next, previous, first or last image buttons are clicked.

Does anybody know please?

Cheers,
Jon
Jon
Top achievements
Rank 1
 answered on 05 Apr 2013
1 answer
77 views
Hi!

I have fowlling insert command

   void RadGrid1_InsertCommand(object sender, GridCommandEventArgs e)
        {
........
 var result = blala.ValidateAndSave(...);
 
 if (result.ResultCode == ValidationResultCode.Ok)
                {
                    AddMessage("The data were successfully validated and Saved!");
                    NewAllEntriesToAccount();
                }
                else
                {
                    AddMessage("Please check the data. The following errors were found: ");
                            AddErrorList(RadGrid1.Columns[meldung.SpaltenIndex].UniqueName);
                }

If the valditaion with errors, i want to change the border color of the field in the Grid Editor red. In which fields the errors are known to me.
I have tried to do this in the RadGrid1_ItemCreated event, but the event fires before the InsetCommand:

GridEditableItem item = (GridEditableItem)e.Item;
                      TextBox combo = (TextBox)item[itemm.ItemArray[0].ToString().Replace(" ", "")].Controls[0];
                      combo.BackColor = GetColor((ClArt)itemm.ItemArray[2]);
 
                      if (IsInErrorList(itemm.ItemArray[0].ToString().Replace(" ", "")))
                      {
                          combo.BorderStyle = BorderStyle.Solid;
                          combo.BorderWidth = 2;
                          combo.BorderColor = System.Drawing.Color.Red;
                      }


Have anyone a idea, how i can do this ?

Thank you very much

Eyup
Telerik team
 answered on 05 Apr 2013
4 answers
192 views
I am using the Rad FileExplorer built into Dotnetnuke 6.  I have successfully used this in several sites.  However, in the site I'm working on now the FileExplorer allows me to create, rename and move folders, but I can't delete them.  I have tried it with partial rendering on and off.  I have written as sub to do a full permissions test.  The permissions test creates a folder, creates a file in the folder, deletes the file, then deletes the folder and it all passes without a problem.  Still, the Rad FileExplorer can't seem to delete folders.  Bizarre.  Any else have this problem?
Dobromir
Telerik team
 answered on 05 Apr 2013
2 answers
133 views

After deploying the code to production server, I got the below mentioned error on login. We have recently upgraded the Telerik version to the latest 2012.3.1308.35 product version.

As per the below error, a method is missing from System.Web.UI but we can see that method in the Object Browser. Please provide some suggestions to resolve this issue.


Method not found: 'System.Web.UI.CompositeScriptReference System.Web.UI.ScriptManager.get_CompositeScript()'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.MissingMethodException: Method not found: 'System.Web.UI.CompositeScriptReference System.Web.UI.ScriptManager.get_CompositeScript()'.
Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

 [MissingMethodException: Method not found: 'System.Web.UI.CompositeScriptReference System.Web.UI.ScriptManager.get_CompositeScript()'.]   Telerik.Web.UI.RadScriptManager.OnResolveScriptReference(ScriptReferenceEventArgs e) +0   System.Web.UI.ScriptManager.RegisterScripts() +261   System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +117   System.EventHandler.Invoke(Object sender, EventArgs e) +0   System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2060736   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1566

Version Information: Microsoft .NET Framework Version:2.0.50727.1891; ASP.NET Version:2.0.50727.1887


Manisha
Top achievements
Rank 1
 answered on 05 Apr 2013
1 answer
56 views
How do I make the Save button the default button in a radgrid inplace edit?
Shinu
Top achievements
Rank 2
 answered on 05 Apr 2013
1 answer
72 views

Hi

I have a RadGrid populated with sql datasource. I want to display a context menu on right clicking the rows.

what events I need to use and any sample code will be a great help....

Thanks
Shahi

Shinu
Top achievements
Rank 2
 answered on 05 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?