Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
122 views

If you have a RadformDecorator DecoratedControls="All" and a grid with a GridCheckBoxColumn or a Template column with a checkbox and click refresh in the grid commandtemplate.  The Grids MasterTableView Clientheight is reduced 1px per row.

This is causing issue with my autoresize of the grid height.  My grid height is autosize on initial load correctly, but when I refresh I get an undesired scrollbar on my grid. 

This was an interesting one to chase down.

html on initial pageload
 
<input id="ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl04_ctl00" class="rfdRealInput" disabled="disabled" name="ctl00$ContentPlaceHolder1$RadGrid1$ctl00$ctl04$ctl00" CHECKED="checked" type="checkbox" _rfddecoratedID="_rfdSkinnedctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl04_ctl00">
<label id="_rfdSkinnedctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl04_ctl00" class=" rfdCheckboxChecked rfdInputDisabled" for="ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl04_ctl00" unselectable="on"> </label>
 
html after a page refresh ****** (NOTE the missing closing tag on the Label) ******
<input name="ctl00$ContentPlaceHolder1$RadGrid1$ctl00$ctl04$ctl00" disabled="disabled" class="rfdRealInput" id="ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl04_ctl00" type="checkbox" CHECKED="checked" _rfddecoratedID="_rfdSkinnedctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl04_ctl00"/>
<label class=" rfdCheckboxChecked rfdInputDisabled" id="_rfdSkinnedctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl04_ctl00" for="ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl04_ctl00" unselectable="on">
Niko
Telerik team
 answered on 05 Aug 2011
3 answers
154 views
Hi, to hide a header check box a can do this way
protected void RadGrid1_PreRender(object sender, EventArgs e)  
    {  
        GridHeaderItem item = RadGrid1.MasterTableView.GetItems(GridItemType.Header)[0] as GridHeaderItem;  
        item["ClientSelectColumn"].Controls[0].Visible = false;  
    } 

what for a nested grid?

Thank you
Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Aug 2011
1 answer
32 views
I'd need to have a RadSlider to look like below:
 
http://demos.telerik.com/aspnet-ajax/slider/examples/default/defaultcs.aspx

But it's graphic is quite different when I place it on my page.

The product version of my Telerik.Web.UI.dll assembly is: 2011.1.519.35

Is this the correct version? if so, it doesn't look sharp like your page?

Thanks,
Niko
Telerik team
 answered on 05 Aug 2011
1 answer
60 views
 

Hello,
I'm trying to pass the value of tab (param BE) that is clicked to show up in a grid inside RadPageView2.  For example:
Tab A and B
when Tab A is clicked, i would like the grid to come up using SqlDataSource2 with the BE field = 'A'.

Can someone help?

Thanks

<%@ Page Language="C#" MasterPageFile="Public.master" AutoEventWireup="true" CodeFile="Sample.aspx.cs" Inherits="_Default" Debug="true" %>

 

<%

 

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<

 

 

asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 

<!

 

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<

 

 

html xmlns="http://www.w3.org/1999/xhtml">

 

<

 

 

head>

 

 

 

<title>Sample</title>

 

</

 

 

head>

 

<

 

 

body>

 

 

 

<form id="form1" runat="server">

 

 

 

<div><asp:scriptmanager runat="server" id="ScriptManager1">

 

 

 

</asp:scriptmanager>

 

 

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

 

<AjaxSettings>

 

 

 

<telerik:AjaxSetting AjaxControlID="RadGrid1">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

 

<telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />

 

 

 

<telerik:AjaxUpdatedControl ControlID="lbl_message" />

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

 

</AjaxSettings>

 

 

 

</telerik:RadAjaxManager>

 

 

 

 

<br />

 

 

 

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" AutoPostBack="true" MultiPageID="RadMultiPage1"

 

 

 

DataSourceID="SqlDataSource1" DataTextField="peo" >

 

 

 

</telerik:RadTabStrip>

 

 

 

 

<telerik:RadMultiPage ID="RadMultiPage1" runat="server">

 

 

 

<telerik:RadPageView ID="PageView1" runat="server">

 

 

 

<telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" runat="server">

 

 

 

</telerik:RadGrid>

 

 

 

</telerik:RadPageView>

 

 

 

 

<telerik:RadPageView ID="RadPageView2" runat="server">

 

 

 

<telerik:RadGrid ID="RadGrid2" DataSourceID="SqlDataSource2" runat="server">

 

 

 

</telerik:RadGrid>

 

 

 

</telerik:RadPageView>

 

 

 

</telerik:RadMultiPage>

 

 

 

<asp:SqlDataSource ID="SqlDataSource1"

 

 

 

ConnectionString="<%$ ConnectionStrings:ConnectionString2 %>" runat="server"

 

 

 

SelectCommand="SELECT BE FROM Projects WHERE (FY = @FY) AND ([BA] = @BA) GROUP BY BE">

 

 

 

<SelectParameters>

 

 

 

<asp:QueryStringParameter Name="FY" QueryStringField="FY" Type="String" />

 

 

 

<asp:QueryStringParameter Name="BA" QueryStringField="BA" Type="String" />

 

 

 

</SelectParameters>

 

 

 

</asp:SqlDataSource>

 

 

 

<asp:SqlDataSource ID="SqlDataSource2"

 

 

 

ConnectionString="<%$ ConnectionStrings:ConnectionString2 %>" runat="server"

 

 

 

SelectCommand="SELECT * FROM [PROJECTS_INPUT] WHERE (([FY] = @FY) AND ([BA] = @BA) AND ([BE] = @BE)) ">

 

 

 

<SelectParameters>

 

 

 

<asp:SessionParameter Name="FY" SessionField="FY" Type="String" />

 

 

 

<asp:SessionParameter Name="BA" SessionField="BA" Type="String" />

 

 

 

<asp:SessionParameter Name="BE" SessionField="BE" Type="String" />
</
SelectParameters>

 

 

 

</asp:SqlDataSource>

 

 

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" runat="server" Height="800px" Width="1000px">

 

 

 

<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>

 

 

 

</telerik:RadAjaxPanel>

 

 

 

 

</div>

 

 

 

</form>

 

</

 

 

body>

 

</

 

 

html>

 

</

 

 

asp:Content>

 

Dimitar Terziev
Telerik team
 answered on 05 Aug 2011
3 answers
58 views
Hi,

For me radGrid's Advanced Filter menu is showing at upper side of browser, just like text shown by Response.Write
e.g.

NoFilter
StartsWith
EndsWith
GreaterThan
.....
Welcome To Vaibhav's Web Page
......

Did anyone see such behavior?

Please give your input.

Regards,
Vaibhav
Vasil
Telerik team
 answered on 05 Aug 2011
2 answers
129 views
I've got a RadAjaxPanel, enclosing a radmultipage, and a couple of radbuttons which control the navigation between the pageviews.

However the radbuttons don't seem to fire the postback event in Opera (11.50).

<telerik:RadAjaxPanel ....>
<telerik:RadMultiPage .... >
       ....
      </telerik:RadMultiPage>
     <div class="navSteps">
            <div style="float: left; width: 111px;">
                <telerik:RadButton ID="btn_previous" runat="server" AutoPostBack="true" CommandName="prev" Text="Previous Step">
                        <Icon PrimaryIconCssClass="rbPrevious" PrimaryIconTop="6" />
                </telerik:RadButton>
            </div>
            <div style="float: right; width: 95px;">
                <telerik:RadButton ID="btn_next" runat="server" AutoPostBack="true" CommandName="next" Text="Next Step">
                        <Icon SecondaryIconCssClass="rbNext" SecondaryIconTop="6"  />
                </telerik:RadButton>
            </div>
        </div>
    </div>
    <telerik:RadTabStrip ....>
        .....
    </telerik:RadTabStrip>
    </telerik:RadAjaxPanel>
Alan T
Top achievements
Rank 1
 answered on 05 Aug 2011
1 answer
109 views
Is there a way to close the RadGrid Popup Edit window manually from the code behind or client side code?
Tsvetina
Telerik team
 answered on 05 Aug 2011
1 answer
159 views
I have a RadListView and a RadDataPager.  Ive managed to set it up using standard paging but I want to use custom paging.
In standard mode, whenever I select the 'next' button, it pages the ListView, but then freezes.

I cant see how I would implement my own custom paging.

Im retrieving a list ob objects using LINQ
I pass in the current page and the pagsize, and use 'skip' in the LINQ command


protected void RadListView1_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
        {
            List<Business.Logic.BusinessObjects.AssociationRequest> lst = new List<Business.Logic.BusinessObjects.AssociationRequest>();
            lst = requestManager.GetArtistRequests(this.CurrentArtistID, false, this.CurrentPage, this.PageSize);
             
                 
            if (lst.Count > 0)
            {
                this.RadListView1.DataSource = lst;
            }
            else
            {
                if (RadListView1.DataSourceID == "")
                {
                    RadListView1.DataSource = new string[] { };
                }
            }
             
        }

I want to set the current page whenever I select 'next' or a page number from the datapager, how can this be done?
Vasil
Telerik team
 answered on 05 Aug 2011
1 answer
111 views
I have my Tabstrip which code is : 

<telerik:RadTabStrip ID="RadTabStrip2" runat="server" Orientation="VerticalLeft"
                                SelectedIndex="1" MultiPageID="RadMultiPage2" Width="10%">
                                <Tabs>
                                    <telerik:RadTab runat="server" Text="Batch" PageViewID="RadPageView2" CssClass="border">
                                    </telerik:RadTab>
                                    <telerik:RadTab runat="server" Text="Address" OuterCssClass="new" CssClass="border"
                                        Selected="True">
                                    </telerik:RadTab>
                                </Tabs>
                            </telerik:RadTabStrip>


My Question is that i want to insert a RadToolbar and a RadGrid on click of Batch which is inside RadTabStrip.. how can i do this?
Kate
Telerik team
 answered on 05 Aug 2011
2 answers
83 views
Hi,

my AsyncUploader just saves the files in the Temp Folder - It does not restore it in the TargetFolder with the original name and extension. I tried the TargetFolder with
in .aspx file:
TargetFolder="~/dateien"
and 
TargetFolder="./dateien"

and also in code behind: 
rauUpload.TargetFolder = Server.MapPath("~/dateien");


If the folder "dateien" does not exist - AsyncUploader does not create one and also does not throws any exception.
I also tried to create the folder "dateien" and gave "Everyone" "Full Access" (Windows 7)

Everything else works fine - AsyncUploader also "uploads" the file - but just into the temporary folder.

Another question:
My radProgressArea does not show the Speed - its everytime 00.00
and the estimated time is also everytime 00:00:00

I hope someone can help me with these problems : )

Best regards,
Raimund
Raimund
Top achievements
Rank 1
 answered on 05 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?