Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
115 views
Hi,
RadCombobox OnDemand causes autopostback. (Because of RadAjaxPanel captcha not refresh). On submit captcha isValid returns wrong value(when autopostback disabled everythging is OK).  .Validate() on server side not change IsValid property. What should i do?
Henna
Top achievements
Rank 1
 answered on 11 Jun 2010
1 answer
68 views
Hi.

I'm wondering if it´s possible to group items in the radrotator two at a time.
For example:

<<            Image1 | Image 2           Image 3 | Image 4           Image 5 | Image 6    >>


Can I set the rrItem width for every other item somehow?

Thx in advance
//Ylva
Princy
Top achievements
Rank 2
 answered on 11 Jun 2010
1 answer
103 views
Hello guys.

I saw some post about radupload validation in grid, but is server-side. I'm trying to use this tip:

http://www.telerik.com/help/aspnet-ajax/upload_raduploadclientsidevalidation.html

but, when I put in my code the javascript:

<script type="text/javascript"> 
 function validateRadUpload1(source, arguments) 
 { 
  arguments.IsValid = $find("<%= MyUploadControl.ClientID %>").validateExtensions(); 
 } 
</script > 

I got an error:

The name 'MyUploadControl' does not exist in the current context





Note:
The RadUpload is inside a grid;
The page is inside a masterpage;

I have tried with the complete name of control, like: ContentPlaceHolder1_RadGrid1_ctl00_ctl05_MyUploadControl

but I got the same error.

What's the best way to use this kind of validation?

Best regards.

[[|]]'s




Princy
Top achievements
Rank 2
 answered on 11 Jun 2010
3 answers
129 views
hi,

  i have a populated grid on a web page. and a server side button. clicking on this button, i want to find out what columns have been used in the grouping.

  i've tried this :

        protected void Button1_Click(object sender, EventArgs e)  
        {              
            foreach (GroupItemCell oCell in grdPendingOrders.GroupPanel.GroupPanelItems)  
            {  
                foreach (Control ctrl in oCell.Controls)  
                {  
                    if (ctrl is System.Web.UI.WebControls.ImageButton)  
                    {  
                        System.Web.UI.WebControls.ImageButton button = ctrl as System.Web.UI.WebControls.ImageButton;  
 
                    }  
                }  
            }  
        }  
 

i thought perhaps from the button i could get the fieldname. (the fieldname is all i want)

but all controls are literals, no imagebuttons. but the grid is populated with data - i thought it might be a post back issue.

can you please help

thanks

andy



  


 
Andy
Top achievements
Rank 1
 answered on 11 Jun 2010
1 answer
336 views
Is there a style i can use to get rid of border , header and footer? I did set bordersize=0 but it doesnt work. Also i did set borderstyle to none.

Attached is the image file. I want do have radwindow similar to showed in image file.

I cannot use tooltipmanager or other control. The developer has already built a page using radwindow and it is functional. But it doesnt look cool due to thick borders and header and footer.

any help is appreciated.
Shinu
Top achievements
Rank 2
 answered on 11 Jun 2010
1 answer
116 views
I'm looking for a way to place errormessages in the caption of the editform (in grid with editmode = popup)

I've tryed this:
protected void Grid1_InsertCommand(object source, GridCommandEventArgs e)     
{     
    string errorMess = "";  
    // followed by a lot of tests on the typed values ...  
   
    if (errorMess != "")     
    {     
        e.Canceled = true;     
        e.Item.OwnerTableView.EditFormSettings.CaptionFormatString = errorMess;     
    }     
}   
 
but I have to click the insert-button twice, before the text showes up in the caption.
Any ideas on how to avoid having to click twice?

Btw. I can't place the errormessages as added literalcontrol to the cancel-button - this is used for some other info :o)
Martin
Telerik team
 answered on 11 Jun 2010
2 answers
226 views

I have a need similar to this one:
http://www.telerik.com/community/forums/aspnet-ajax/grid/set-customfiltercolumn-currentfilterfunction.aspx

I have a grid with filter columns using the default options (less a few I deleted in code behind).
Suppose the user selects a filter option such as "greater than".  Afterward, if the user clears the filter box and then clicks the filter button, the user expects to invoke the "no filter" option.  But it does not work.  Instead the user must click the "no filter" option.
How can we cause the "no filter" option to be invoked if the user clears the filter box and then clicks the filter button?

Steve

John Davis
Top achievements
Rank 2
 answered on 11 Jun 2010
1 answer
107 views
Hello,

I'm using the client-side programmatic binding feature with the Telerik rad grid control, and I also have <ClientSettings EnablePostBackOnRowClick="True".  The Grid causes the postback, and the following form values are present:

__EVENTTARGET: <correct grid id>
__EVENTARGUMENT: RowClick$<index>

So that's correct, but the ItemCommand event does not fire... any idea why?

Thanks.
Nikolay Rusev
Telerik team
 answered on 11 Jun 2010
1 answer
71 views
how can I do this but using a boundfield and on the client side so no postbacks are needed?
subtotals in footer on client using templates
i'm trying to especially stay away from template fields in my radgrid

actually i need it for gridnumericcolumn not boundcolumn
Yavor
Telerik team
 answered on 11 Jun 2010
2 answers
191 views

I have a situation where depending on other controls on the page, I want to hide or show two different columns in a RadGrid. Unfortunately, I'm having trouble getting this to work.

The grid is being bound client-side to an ASP.NET AJAX web service. When the grid is being databound (i.e. in its ClientEvents-OnDataBinding event or in its ClientEvents-OnDataBound event [I've tried both, same results]) I use a loop like the following to hide or show the appropriate column: 

    var view = g_grdProjects.get_masterTableView();  
    for (var i = 0; i < view.get_columns().length; ++i)  
    {  
        if (view.get_columns()[i].get_uniqueName() == "Project.ProjectStageDate")  
        {  
            if (projectType == 'Closed')  
                view.showColumn(i);  
            else 
                view.hideColumn(i);  
        }  
        if (view.get_columns()[i].get_uniqueName() == "Project.Stage")  
        {  
            if (projectType == 'Closed')  
                view.hideColumn(i);  
            else 
                view.showColumn(i);  
        }  
    }  
 
 

This works as expected; however, when I use this code, posting back the page (which is required at some points) results in the following error:

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

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:

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.RadGrid.LoadClientState(Dictionary`2 clientState) +4232
   Telerik.Web.UI.RadCompositeDataBoundControl.LoadPostData(String postDataKey, NameValueCollection postCollection) +149
   Telerik.Web.UI.RadCompositeDataBoundControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +13
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +8905944
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +878

 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

I've tried replacing the calls to showColumn and hideColumn with calls to the column's set_visible() method instead; that resolves the postback issue but results in incorrect behavior (the columns hide fine, but calling set_visible(true) does not show the columns, so they remain hidden forever).

Is there a way to use showColumn()/hideColumn() and keep the ability to post back when necessary?

Yavor
Telerik team
 answered on 11 Jun 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?