Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
177 views
I have a radtabstrip

<

 

 

telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Windows7"

 

 

 

Align="Justify" ReorderTabsOnSelect="True" Width="347px" >

 

 

 

<Tabs>

 

 

 

<telerik:RadTab Text="Providers" NavigateUrl="http://localhost/CMIPSII/Default.aspx" runat="server">

 

 

 

</telerik:RadTab>

 

 

 

<telerik:RadTab Text="Reports" NavigateUrl="http://localhost/CMIPSII/Report/Reports.aspx"

 

 

 

runat="server">

 

 

 

</telerik:RadTab>

 

 

 

</Tabs>

 

 

 

</telerik:RadTabStrip>

I have to store the navigation url in webconfig and refer here.

Need help.

 

Stuart Hemming
Top achievements
Rank 2
 answered on 19 Nov 2011
18 answers
1.4K+ views
Hi,
I'm using RadGrid with a DataTable as a DataSource.
I would like to filter the rows displayed in the grid on page_load, but I do not want the filter to be displayed to the client...
(I want to filter programmatically by using a filterValue extracted from the pages's request object.)
I've looked around forums etc and haven't found any code that shows data filtering  - only one that uses a column filter which interacts with the user.

please help... :(

thank you,
Revital
Jayesh Goyani
Top achievements
Rank 2
 answered on 19 Nov 2011
1 answer
123 views
I have a numeric text box that I set a minimum value of 1 and a maximum value of 99.  If I type 0 into the field the validation fires but it does not clear that 0 out of the text area.  On the OnError event I am trying to clear the value of the textbox but the 0 is still there.

<telerik:RadNumericTextBox Save="Text" ID="txtFileFormat" runat="server" 
                      MaxValue="99" MinValue="1"
                      Width="25px" TabIndex="1" AllowOutOfRangeAutoCorrect="False" 
                      AutoCompleteType="Disabled" ClientEvents-OnError="FileError">
                      <NumberFormat AllowRounding="False" DecimalDigits="0" />

function FileError(sender, args) {
  sender.set_textBoxValue(null);
}

Is there something that I am missing?  Does the OnError event prevent updates to that object?
Jayesh Goyani
Top achievements
Rank 2
 answered on 19 Nov 2011
3 answers
127 views
Hello to all
i m binding a radgrid on page load initially radgrid's visibility is false on the selection change of dropdown i want to filter datafrom radgrid my code is here but its not work.....

    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {
        RadGrid1.Visible = true;
        RadGrid1.MasterTableView.FilterExpression = "([totaldis] ='" + DropDownList1.SelectedValue + "=') ";

        GridColumn column = RadGrid1.MasterTableView.GetColumnSafe("totaldis");
        column.CurrentFilterFunction = GridKnownFunction.EqualTo;
        column.CurrentFilterValue = DropDownList1.SelectedValue;

        RadGrid1.MasterTableView.Rebind();
   }

radgrid property is

<telerik:RadGrid Skin="Sunset"  OnPreRender="RadGrid1_PreRender" Width="1200px" ID="RadGrid1"
                    AutoGenerateColumns="False" EnableLinqExpressions="false" OnNeedDataSource="RadGrid1_NeedDataSource" AllowMultiRowSelection="true" GridLines="None" runat="server"
                    ShowFooter="True"  AllowPaging="false" AllowFilteringByColumn="True" Visible="False">
                    <ClientSettings AllowColumnsReorder="true" EnableRowHoverStyle="true" ReorderColumnsOnClient="true"
                        Selecting-AllowRowSelect="True">
                        <Selecting AllowRowSelect="True" />
                    </ClientSettings>
                    <MasterTableView AllowFilteringByColumn="True">
                        <RowIndicatorColumn Visible="True">
                        </RowIndicatorColumn>
                        <Columns>
<telerik:GridBoundColumn HeaderStyle-Width="20px" ItemStyle-Width="20px" HeaderText="Total Income"
                                DataField="tolincome">
                                <HeaderStyle Width="20px"></HeaderStyle>
                                <ItemStyle Width="20px"></ItemStyle>
                            </telerik:GridBoundColumn>

  </Columns>
                    </MasterTableView>
                </telerik:RadGrid>
Jayesh Goyani
Top achievements
Rank 2
 answered on 19 Nov 2011
1 answer
75 views
When I try to export to excel, dropdown controls and checkboxes also get exported in to the XLS document.

  RadGrid1.MasterTableView.ExportToExcel(); //exports everything from the grid, including the controls. 

How can I prevent this from happening?
Jayesh Goyani
Top achievements
Rank 2
 answered on 19 Nov 2011
1 answer
211 views
Hi,

Is this possible  ??  Have a telerik:RadScriptManager on my master page ( Site.master ) and I set EnablePageMethods = true and I have a page that is based on this master page called MyPage.aspx and MyPage.aspx.cs contains a [WebMethod] called GetStatus() and MyPage.aspx contains JavaScript that calls the GetStatus() method ........................
Is it possible ?
MyPage.aspx cannot contain a telerik:RadScriptManager because the master page already contains one ..
Please advise whether this is possible or not.

Seabus
Jayesh Goyani
Top achievements
Rank 2
 answered on 19 Nov 2011
1 answer
276 views
Hw to sort date in radgrid, the following doesn't work

<

 

 

telerik:GridBoundColumn DataField="Suspension" DataFormatString="{0:MM/dd/yyyy}" DataType="System.DateTime" HeaderText="Suspension"

 

 

 

SortExpression="Suspension" UniqueName="Suspension">

 

 

 

</telerik:GridBoundColumn>

 

Jayesh Goyani
Top achievements
Rank 2
 answered on 19 Nov 2011
1 answer
174 views
Hi I am stuck on something which is frustrating mehopefully someone can help me out here, I have a Telerik grid with an Edit popup form. I have enabled automatic updates and inserts. For some reason the update on the page works but when I try to do an Insert
the button just stays there and does nothing. It does not go into the object data source Inserting event in the codebehind??  I dont understand what could be causing this, I thought initially it might be a client side function or even validation and i took them off still nothing. The update works fine but nothing happens when I click on insert.  I tried the "UseSubmitBehaviour" set to false as well since im not submitting client side. Can someone give me an idea what could be causing this, Here is what the submit button looks like, I am using it similarly on all the other pages and its working fine. Thanks looking forward to some guidance!

<asp:Button ID="BtnSubmit" UseSubmitBehavior="false" CausesValidation="true" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' ></asp:Button>
<asp:Button ID="BtnCancel"  Text="Cancel" runat="server" CausesValidation="false" CommandName="Cancel" ></asp:Button>
Jayesh Goyani
Top achievements
Rank 2
 answered on 19 Nov 2011
3 answers
170 views
Hi,

         We are trying to update one grid and user control by radbutton which is ajaxfied.Please find my code below.

Button :
=========

 

 

<telerik:RadButton ID="btnResumeSuspend" runat="server" OnClick="btnResumeSuspend_Click">

 

 

 

</telerik:RadButton>

 


User control :This control will be called and updated  in button btnResumeSuspend_Click event.
=====================================================================================

<

 

 

NISP:MessageControl ID="lblMessageUserControl" runat="server" EnableViewState="true" />

btnResumeSuspend_Click event:
================================

 

lblMessageUserControl.DisplayMessage(

 

false, "Test");

Ajax code:
=========

 

 

 

RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);

 

manager.AjaxSettings.AddAjaxSetting(manager, btnResumeSuspend);
manager.AjaxSettings.AddAjaxSetting(btnResumeSuspend, lblMessageUserControl);

Here , after button click event, the lblMessageUserControl is not updated and not showing the message.
Please reply as soon as early

Thanks,
Priya

 

Jayesh Goyani
Top achievements
Rank 2
 answered on 19 Nov 2011
4 answers
112 views
  Hi,
     I have a grid. Within the grid, I am using a usercontrol for an edit/insert form. In this form, there is a drop down that comes from yet another usercontrol. Inside this second usercontrol I have a radtooltip that I am using for the user to input a name.
   The problem is that when the radtooltip is called I get this javascript error message ... 
   this._popupelement is null or not an object. 
  The interesting thing is that this happens in IE7, but in FF, the radtooltip displays for a second or two, then disappears and the grid
suddenly gets scroll bars.
  Any advice on what I might need to look at ?
 thanks for your time.  
WombatEd
Top achievements
Rank 1
 answered on 19 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?