Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
536 views
Is there a way to remove the Filter Row and set it into the Column Header?

setting the show header to false, it hides both header and filter.

I've tried removing the filter and adding a custom one, but it doesn't work the same way, anyone has a solution?

i just don't want to have 2 rows on the header (header and filter)
David
Top achievements
Rank 1
 answered on 26 Dec 2012
0 answers
82 views
I have recently upgraded to the newest version on controls for asp.net.  I am not sure if this was an issue with the old version or not since I have just seen this issue.  When the grid load on the screen and I do not scroll on the screen if I hit the combo box on the grid the dropdown is in the correct position.  When I scroll down the page to see more of the grid and then click on the combobox the drop down pops up in the wrong position and shown in the attachment.

this is the code behind for the cell in the grid.
  <telerik:GridTemplateColumn HeaderText="Status" SortExpression="MarketingStatusTypeName" DataField="MarketingStatusTypeName" UniqueName="MarketingStatusTypeName" Groupable="False" Reorderable="False">
         <ItemTemplate>
                 <telerik:RadComboBox ID="GridStatusDropDown" runat="server" DataTextField="MarketingStatusTypeName" AutoPostBack="true" DataValueField="MarketingStatusTypeID"  OnSelectedIndexChanged="GridStatusDropDown_SelectedIndexChanged"  />
         </ItemTemplate>
        <ItemStyle VerticalAlign="Middle" />
</telerik:GridTemplateColumn>
Eric Klein
Top achievements
Rank 1
 asked on 26 Dec 2012
0 answers
73 views
I have an extremely dense RadGrid, something like 25 columns of integers and %s, as well as a couple of large strings.  Just getting it to fit into my workstation's fairly large screen was a challenge.

The default export to PDF is a mess (overlapping columns, mis-aligned headers, etc) and everything I've tried so far, based on the forum entries has failed to completely fix it.  (Even   <Pdf  PageWidth="20in" PageHeight="8.5in"  /> )

Is there any possibility of a future release of the RadGrid having some sort of autoformat capability?  

Failing that has anyone written any sort of generic code that would help in a situation like this?

Let's cancel this post.  Autoformat would be nice but I've beaten the grid into submission (sort of).  
(And I've just been told that PDF export is no longer a requirement...)
Thanks.
Boris
Top achievements
Rank 1
 asked on 26 Dec 2012
4 answers
173 views
Hi Guys,

I'm working with a RadWindow, when this is loading show a image processing, but I want to know how can I to do to show and image when this radwindow is processing before to close.

The Radwindon take arround 20 seconds while processing the postbak before to close.
I need to block IU while this process de request.

Thanks.
Alex
Top achievements
Rank 1
 answered on 26 Dec 2012
2 answers
68 views
In ListView Layout Template there is slider for custom paging .only 4 item will bind each time

When press Increase or decrease button continouusly for moving forward and backward of rad slider .While pressing increase or decrease button  and mouse releasing outside increase handler does postback on  radSlider_ValueChanged event.I am using  Product Version 2011.2.712.40 Product Name - Telerik ajax
The application is not showing the first or last Encounters of the list on moving the slider to the end point by the mouse control followed by clicking the decrease or increase button continuous for some time and then move the mouse control from the button to left or right
http://demos.telerik.com/aspnet-ajax/listview/examples/paging/custompaging/defaultcs.aspx
Ranjan
Top achievements
Rank 1
 answered on 26 Dec 2012
1 answer
152 views
Hi,

I want to add click event on the gauge that will transfer the value to an function and than I will use this data.

Is there a option to handle events on the radial/linear gauge?

10x.
Marin Bratanov
Telerik team
 answered on 26 Dec 2012
1 answer
133 views
Radcombobox's  onclientkeypressing event returns the key code of character that is pressed, in the method eventArgs.get_domEvent().keyCode.
How to get the exact character that is pressed in onclientkeypressing event of telerik radcombobox control?
Please help.
Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 26 Dec 2012
5 answers
3.6K+ views

The RadTextbox accept only numbers and decimail. How to use this validation expression for only accept 2 digits after decimal point. Example: 12.12, 123.23, 1234.12, 12345.67 like this.
I tried 2 ways.
1. ^((?:[1-9]\d*)|(?:(?=[\d.]+)(?:[1-9]\d*|0).\d+))$ --> This expression working fine but i need to accept only two digits after the decimal point.
 public void Textbox1_OnTextChanged(object sender, EventArgs e)
{
if (Regex.IsMatch(Textbox1.Text, @"^((?:[1-9]\d*)|(?:(?=[\d.]+)(?:[1-9]\d*|0).\d+))$ "))
{
 CalculationSummary();
}
else
{
 RadAjaxManager1.Alert("Please enter only numerics.");
}
}
 

****or****

^(\d+)?+([\.]{1})?+([\d]{1,2})?$ --> This expression working good. It accepts only two digits after the decimal point. but i got error below condition.
 
public void Textbox1_OnTextChanged(object sender, EventArgs e)
{
if (Regex.IsMatch(Textbox1.Text, @"^(\d+)?+([\.]{1})?+([\d]{1,2})?$"))
{
 CalculationSummary();
}
else
{
 RadAjaxManager1.Alert("Please enter only numerics.");
}
}

Can anybody please let me know the possible solution. Thanke in advance.

Princy
Top achievements
Rank 2
 answered on 26 Dec 2012
2 answers
48 views
Hello everyone,

This problem is killing me so I have to ask...

I have an external form that I am using pretty much just like the example shown here: Grid / Editing with External Form

Of course I have different fields. I have 3 dropdowns all of which have data items that are available/filtered by whats been selected in a previous control cascading.

So for example: Select DD1 -> DD2 fills -> Select DD2 -> DD3 fills.

Now if I am inserting something this works fine, but if I go straight to edit an item from the grid, then the values in the grid can't be found in the dropdowns. The dropdown controls can be found, but not the items as if they were not binding or firing the selectedValue_Changed event so that the list option values can get populated. However if I go to insert something first then try to edit anything it all works like it's supposed to.

I am using OpenAccessDataSource's for the dropdowns. they look something like this:

<telerik:OpenAccessLinqDataSource ID="oaldsMap" Runat="server"
        ContextTypeName="HRSystemModel.HRContext" EntityTypeName=""
        ResourceSetName="EMaps" Select="new (EMapName, ECaption)"
        Where="EProcedureName == @EProcedureName">
        <WhereParameters>
            <asp:ControlParameter ControlID="rtbProcedure" Name="EProcedureName"
                PropertyName="Text" Type="String" />
        </WhereParameters>
    </telerik:OpenAccessLinqDataSource>   
    <telerik:OpenAccessLinqDataSource ID="oaldsStage" Runat="server"
        ContextTypeName="HRSystemModel.HRContext" EntityTypeName="" OrderBy="ECaption"
        ResourceSetName="EStages" Select="new (EStageName,ECaption)"
        Where="EMapName == @EMapName">
        <WhereParameters>
            <asp:ControlParameter ControlID="cmbMapNames" DefaultValue="" Name="EMapName"
                PropertyName="SelectedValue" Type="String" />
        </WhereParameters>
    </telerik:OpenAccessLinqDataSource>
    <telerik:OpenAccessLinqDataSource ID="oaldsAction" Runat="server"
        ContextTypeName="HRSystemModel.HRContext" EntityTypeName=""
        ResourceSetName="EActions" Select="new (EActionName, ECaption)"
        Where="EStageName == @EStageName && EMapName == @EMapName">
        <WhereParameters>
            <asp:ControlParameter ControlID="cmbStageName" DefaultValue=""
                Name="EStageName" PropertyName="SelectedValue" Type="String" />
            <asp:ControlParameter ControlID="cmbMapNames" DefaultValue="" Name="EMapName"
                PropertyName="SelectedValue" Type="String" />
        </WhereParameters>
    </telerik:OpenAccessLinqDataSource>


So on the grids side of things. When I do the DisplayEditForm(GridDataItem selectedItem).... which looks like so:

protected void DisplayEditForm(GridDataItem selectedItem)
{
    PlaceHolder.FindControl("pnlExternalForm").Visible = true;
    (PlaceHolder.FindControl("btnSaveChanges") as Button).Text = "Update";
    (PlaceHolder.FindControl("cmbMapNames") as RadComboBox).FindItemByText(selectedItem["MMap"].Text).Selected = true;                       
    (PlaceHolder.FindControl("cmbStageName") as RadComboBox).FindItemByText(selectedItem["MStage"].Text).Selected = true;
    (PlaceHolder.FindControl("cmbAction") as RadComboBox).FindItemByText(selectedItem["MAction"].Text).Selected = true;
}

if I haven't displayed the external form before using insert for instance, it fails at PlaceHolder.FindControl("cmbMapNames"). Always.
It throws a need to create new object error... and I have checked to confirm that it's not the dropdown but the list item that it can't find.
 
Now after displaying the form via insert... even if I cancel and don't do the insert... just displaying it, when I come back to update or edit anything in the grid it works beautifully.

Someone please help before I throw my desktop out the window.

Thanks! :D
Kostadin
Telerik team
 answered on 26 Dec 2012
1 answer
86 views
hi,
i've a index page with i open a radwindow. Into radwindow load another page that i use to see the messager box. Into this page there's a button that i use to load another web page out this radwindow. With IE 8 and IE 9 all function, with chrome nto function....I post my code.

Index page:
<script type="text/javascript">
// ritorna valore selezionato Anagrafica
function LoadProfilo(sender, eventArgs) {
var arg = eventArgs.get_argument();
if (arg == 1) {
window.location.href("profile.aspx");
}
}
</script>
<telerik:RadWindow ID="RadWindowProfileconfirm" runat="server"
ShowContentDuringLoad="false" Width="435px"
Height="166px" Title="Aggiornamento profilo" Behaviors="None"
MaxHeight="166" MaxWidth="435" Modal="True" Behavior="None"
Font-Names="Verdana" Font-Size="Small" IconUrl="/image/iconlogo.png"
ToolTip="Aggiornamento profilo" OnClientClose="LoadProfilo"
VisibleStatusbar="False" NavigateUrl="register_step2.aspx" Skin="Simple"
ReloadOnShow="True">
</telerik:RadWindow>

code be hinde i use to load this radwindow:

Dim script As String = "function f(){$find(""" + RadWindowProfileconfirm.ClientID + """).show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, True)


code radwindow to close the window:

<script type="text/javascript">
    function GetRadWindow() {
        var oWindow = null;
        if (window.radWindow) oWindow = window.radWindow;
        else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
        return oWindow;
    }
    function Close_and_Load() {
        var arg = new Object();
        arg = 1
        GetRadWindow().close(arg);
    }
</script>

Protected Sub ImgBtncontinua_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles ImgBtncontinua.Click
    ScriptManager.RegisterStartupScript(Page, Me.GetType, "close", "Close_and_Load();", True)
End Sub

please help me




Marin Bratanov
Telerik team
 answered on 26 Dec 2012
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?