Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
145 views

assume i have everything else correctly then i have below codes:

<telerik:AjaxSetting AjaxControlID="RadGrid1">  
                    <UpdatedControls>  
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />  
                    </UpdatedControls>  
                </telerik:AjaxSetting> 

then
 <telerik:RadGrid AutoGenerateColumns="true" ID="RadGrid1" 
     Width="760px" AllowFilteringByColumn="True" AllowSorting="True" 
     PageSize="15" ShowStatusBar="true" ShowFooter="True" AllowPaging="True" runat="server" 
     GridLines="None">  
     <PagerStyle Mode="NextPrevAndNumeric" />  
     <MasterTableView Summary="testing"></MasterTableView>  
</telerik:RadGrid> 

then assume rs is sqldatareader and now i am loading it to datatable.
Dim dt As Data.DataTable = New Data.DataTable  
        dt.Load(rs)  
        Me.radgrid1.datasource = dt 

so when i run this, i got data, However, when i try to click on the next page, it won't let me. I keep getting javascript error saying object required. and then when i type in a word for it to automatically filter it won't do anything. And when i type in the word i want to filter for and click on the filter drop down to get Contain, it postback with nothing. can you let me know what i'm missing here please or help me get this resolve. thank you very much. I must have the data dynamically generate from the server. thank you very much for your help.
Yavor
Telerik team
 answered on 24 Sep 2009
2 answers
401 views
Hello All,

I have a RadGrid containing CheckBox Columns which will indicate that RadGrids row will be deleted.
User selectes rows that she wants to delete using Checkboxes and then presses Button.
Button's Click handler is called and a method checks what rows are meant to be deleted.

I can get a reference to selected row's GridDataItem but I don't no how to delete it from RadGrid or RadGrid's Datasource.
I can't use any automatic insert/update/delete database techniques in this case.

Thanks,
Mike
Top achievements
Rank 1
 answered on 24 Sep 2009
1 answer
157 views
First let me lay out the situation.   I have a Date Field that is not required.  But I would like this field to still be validated when data is entered. So, therefore I'm using the RadDateInput field and a custom validator.

I tried to implement a solution by subscribing to the Error event, and keeping track of the state.  But the problem is that when it enters error state, then you clear the text box, you don't know that you "cleared" the error, and the form doesn't validate.

Here is the javascript i'm using:
        var invalidInput = false; 
 
        function OnValueChanged(sender, args) { 
            if (!(invalidInput && args.get_newValue() == "")) { 
                invalidInput = false; 
            } 
        } 
 
        function OnError(sender, args) { 
            invalidInput = true; 
        } 
 
        function CustomValidate(sender, args) { 
            if (invalidInput) { 
                args.IsValid = false; 
            } 
        }   

And my control:
<tel:RadDateInput runat="server" id="DOB" MinDate="1/2/1900"> 
    <ClientEvents OnValueChanged="OnValueChanged" OnError="OnError" /> 
</tel:RadDateInput> 
<asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="DOB" ClientValidationFunction="CustomValidate" ErrorMessage="*" ValidateEmptyText="true" /> 
 

So, is there a way to check to see if the RadDateInput control is in "Error" state (red w/ Exclamation)?

You can reproduce this by using the code attached and following these steps.
#1 Set the date to something invalid ("asdf")
#2 tab out ( notice the Telerik Error state and the custom validator message '*" )
#3 Submit the form. (notice the validation error)
#4 clear the textbox
#5 tab out (notice he Telerik error state has been cleared, but the validation error still persists)
#6 submit the form( it wont submit because the custom validator has not been cleared)

Any help in resolving the validator issue, or giving me a solution where the Data in the RadDateInput is still validated but stops the form from submitting w/ errors while still allowing an "empty" state where the data not "required".

Thanks,
Sean

Yavor
Telerik team
 answered on 24 Sep 2009
3 answers
134 views
Hello,

      I have cretaed a rad grid view and populate the values to grid dynamically. And i need to place a check bok column inside the grid.
I used Headertemplate and ItemTemplate to place the check box column. Also i have set the proprty for "Allow Filtering" to true. On executing the application am getting the filteration for check box column too. I dont want this filtering in check box column alone. Please can you help me in this.

       I have attached my aspx grid code with is mail.

<telerik:RadGrid  ID="radSimpleGrid" runat="server" AllowPaging="True" AllowSorting="True"
                GridLines="Both" AutoGenerateColumns="False" AllowFilteringByColumn="true" Skin="Office2007">
                <FooterStyle BackColor="#CCCCCC" />
                <MasterTableView TableLayout="Fixed" PageSize="10">
                    <NoRecordsTemplate>
                        No records found
                    </NoRecordsTemplate>
                    <Columns>
                        <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">
                            <HeaderTemplate>
                             <asp:CheckBox id="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True" runat="server"></asp:CheckBox>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox id="CheckBox1" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" runat="server"></asp:CheckBox>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                </MasterTableView>
                <PagerStyle Mode="NumericPages"></PagerStyle>
                <HeaderStyle HorizontalAlign="Center" />
                <ClientSettings ClientEvents-OnRowContextMenu="RowContextMenu" EnableRowHoverStyle="true">
                    <ClientEvents OnRowContextMenu="RowContextMenu"></ClientEvents>
                    <Selecting AllowRowSelect="true" />            
                </ClientSettings>
            </telerik:RadGrid>



Vijayaragavan
Top achievements
Rank 1
 answered on 24 Sep 2009
1 answer
141 views

Hi,

After setting "Web garden" on IIS 6.0 I experience problems with telerik captcha image.

Using ImageStorageLocation=Cache are no good - I know.

But ImageStorageLocation=Session should work.

: Type 'Telerik.Web.UI.CaptchaImage' in Assembly 'Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' is not marked as serializable 

Please mark it as serializable in the next version.

Regards,
Hessner
Pero
Telerik team
 answered on 24 Sep 2009
2 answers
91 views
Hi,

We , few developers in my company evaluating the the RAD Controls for AJAX .net. I would like to know how to get the grid column value of a selected row.This is after the user select a row using the SELECT command.


Thanks

Malini
Malini
Top achievements
Rank 1
 answered on 24 Sep 2009
1 answer
100 views
Hello all,

I have a RadGrid that I'm using wich has the Web2.0 skin applied to it. Is it possible to disable the ability to select a row by clicking anywhere on the row, only allowing to select by checking the checkbox?

Thanks a lot for your help!
Princy
Top achievements
Rank 2
 answered on 24 Sep 2009
1 answer
251 views

RadPageViewCollection must contain RadPageView objects

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ArgumentException: RadPageViewCollection must contain RadPageView objects

源错误:

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:

[ArgumentException: RadPageViewCollection must contain RadPageView objects]
   Telerik.Web.UI.RadPageViewCollection.AddAt(Int32 index, Control child) +84
   Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) +132
   Telerik.Web.UI.RadAjaxControl.PerformRender() +375
   Telerik.Web.UI.RadAjaxControl.OnPageRender(HtmlTextWriter writer, Control page) +1222
   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +95
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266
Russ
Top achievements
Rank 2
 answered on 23 Sep 2009
1 answer
101 views
Is it a known limitation that the CSV export doesn't export the contents of the detail tables?  I've got a single method to handle the export and when i export to either Word, Excel or PDF the detail table is included.  But when i choose CSV only the parent table is included in the results.  The code is very simple and was pulled mostly from some other posts i saw on here about other peoples export problems.

        void lbtnExport_Click(object sender, EventArgs e)
        {
            rgComparativeReport.ExportSettings.FileName = "Comparative Report Export";
            rgComparativeReport.ExportSettings.ExportOnlyData = true;
            rgComparativeReport.ExportSettings.IgnorePaging = true;
            rgComparativeReport.ExportSettings.OpenInNewWindow = false;
            rgComparativeReport.MasterTableView.HierarchyDefaultExpanded = true;
            
            for (int i = 0; i < rgComparativeReport.MasterTableView.DetailTables.Count; i++)
            {
                rgComparativeReport.MasterTableView.DetailTables[i].HierarchyDefaultExpanded = true;
            }
            
            rgComparativeReport.Rebind();
        
            if (ddlExport.SelectedValue == "Excel")
            {
                rgComparativeReport.MasterTableView.ExportToExcel(); //this works fine
            }
            else if (ddlExport.SelectedValue == "Text")
            {
                rgComparativeReport.MasterTableView.ExportToCSV();  //This only exports the parent table
            }
            else if (ddlExport.SelectedValue == "Word")
            {
                rgComparativeReport.MasterTableView.ExportToWord(); //this works fine
            }
            else if (ddlExport.SelectedValue == "PDF")
            {
                rgComparativeReport.MasterTableView.ExportToPdf();//this works fine
            }
}

Thanks!
Mark


Daniel
Telerik team
 answered on 23 Sep 2009
0 answers
151 views
Hi, I've seen that theres some word counter and character counter on buttom left corner of radeditor on some of the samples. But seems like its not updating when Im adding some text. How can I make use of this to change when ever I enter in some text? And how can I limit the user to stop entering whenever it reaches word count limit. like for instance 50 words max..

Thanks  advance,
RJ
RJ
Top achievements
Rank 1
 asked on 23 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?