Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
192 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
155 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
90 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
232 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
148 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
79 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
83 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
1 answer
124 views
Hi,

On clicking a particular cell in a RadGrid, is it possible to fetch that cell value using client-side code?

Thanks,
Lovella.
Shinu
Top achievements
Rank 2
 answered on 05 Apr 2013
1 answer
473 views
Hi,

I have a RadGrid with client side row selection and AllowMultiRowSelectionEnabled. How to display the number of rows selected from client-side code?

Thanks,
Lovella.
Princy
Top achievements
Rank 2
 answered on 05 Apr 2013
3 answers
134 views
Hi,

There is a RadGrid in one of my pages with filtering enabled. Can I modify the predefined Filter Text like "Starts With" and give a custom one?

Thankyou,
Lovella
Princy
Top achievements
Rank 2
 answered on 05 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?