Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
344 views
Hello,

I'm trying to access a checkbox within the header of my RadGrid via javascript.  Is there a way to do this?  Thank you.
Shinu
Top achievements
Rank 2
 answered on 10 Jun 2013
3 answers
226 views
Hi guys. I have implemented a RadGrid with Edit and Insert Mode and filter capabilities.

When filtering the RadGrid while in edit mode, the edited row seems to be based on the row number, eg, when I'm editing row number 3, and while editing, the grid is filtered, the edited row remains at row number 3 even though the row of the record I'm currently editing may have changed.

For Example, if I'm doing auto CRUD on this table with in place editing

[id] [code]
-----------------------
[01] codeX
[02] codeY
[03] codeY

and the row being edited is the 2nd one ([02] codeY)

if a filter (using the RadGrid default filter) is done on Code "EqualTo" 'codeY' such that the result becomes

[id] [code]
-----------------------
[02] codeY
[03] codeY

the edited row is still the 2nd one ([03] codeY) even though the row originally being edited is ([02] codeY)

Is this the expected behaviour, or is there are way to instruct the RadGrid to look for the record to set the edit mode on that particular record again? If not, is there a way to automatically cancel edit mode/insert mode just before filtering? Or to disable all filtering controls while user is in edit/insert mode? Thanks for reading.

(this is a repost of http://www.telerik.com/community/forums/aspnet-ajax/grid/how-to-cancel-edit-mode-when-filtering.aspx, i couldn't figure out how to change the topic title or delete that post, sorry)
Joey
Top achievements
Rank 1
 answered on 10 Jun 2013
8 answers
772 views
Hi there,

I am not able to obtain desiderd format of the TimeSpan when the grid bounds to a IList<T>. It seems there is no way to get rid of the seconds fraction of the TimeSpan, even using DataFormatString={0:t} (or  {0:HH:mm}). The column is bound to a TimeSpan property, of curse.

Furthermore, using EditMode=InPlace, the TimePiker does not pop-up nor display its list - but no error is raised either server nor client side.

I don't know what's going on, but when I set the TimePiker to limit the range of time and reduce the interval, I can no longer go to EditMode because of an error pretending the value is outside the limits. It is not so, as for the TimeSpan is passed in, however maybe that internally the TimeSpan is formatted in such a way it become no longer valid (eg: seconds wich I want to get rid of may be taken as minutes) - it is a mere speculation of curse.

Exactly how is to be managed this scenario?
Have a class with two TimeSpan (classical Start-Stop pair), have it bound to two different columns in the RadGrid, hiding the "seconds" part of the time. Let it be edited In Place with a TimePiker which range goes from 08.00 to 20.00 stepping by 30 minutes.
It shoud not be so difficult, isn't it? Evidently I do some mistake.

Thanks in advance,
Marco

Brady
Top achievements
Rank 1
 answered on 09 Jun 2013
5 answers
152 views
Hello,
I have RadChart in my application. In X axis there is description & Y axis it displays only positive value related that description. I have set height & width of RadChart. Currently there is only 15 different types of description in X-axis & some value is related to that description. Now my problem is that, Value of x axis is dynamic so that when it increases, related number displays in Y-axis gets overlapped.
How to solve this problem? Is there any way to set height & width dynamically based on number of record?
Razak
Top achievements
Rank 2
 answered on 08 Jun 2013
3 answers
73 views
I've created a panel bar in codebehind  and I want to include the onclick event of it,. below are my sample source code

  protected void Page_Load(object sender, EventArgs e)
    {
         RadPanelItem item11 = new RadPanelItem();
        item11.Text = "Add Security Question"; item1.Items.Add(item11);
        item11.ImageUrl = "Img/Slidding/TabstripPr.gif";
   
        ---here i want to register the onclick event  of the panelitem but i dont know how to do it.
        ---the idea of doing this is to build dynamic slidding menu bar through code behind and load the user control inside the tabstrip

       thanks,
    ryan

}
John ryan
Top achievements
Rank 1
 answered on 08 Jun 2013
4 answers
461 views
Hello
   I am new in using Telerik Radpane control I am having a problem in accessing server controls which are inside a div which is present in radpane. I am not able to access them in my codebehind file, there are compilation errors like the name is not present in the current context for the same aspx page code behind file. How do we access asp controls inside a panel bar item template which has a radpane.
SKande
Top achievements
Rank 2
 answered on 07 Jun 2013
5 answers
63 views
I am using 2013.1.220.35

When I use IE10 not in compatibility mode it works fine
When I use IE10 in compatibility mode there is an inline style being applies that sets the width of the textarea to 87px even though I have the width set to 99%

any ideas?
Venelin
Telerik team
 answered on 07 Jun 2013
1 answer
304 views
I am trying to show the same modal popup that I show when  I insert an item into my grid but the modalpup will not show when I click the edit linkbutton, I tried changing hte defualt insert button from radgrid to command template link button and it also would not pull up the popup.

So at this point I am lost as to what to do.  I tried taking the modalpop out of the updatepanel and it still would not call the popup.
This used to work in telerik grids.  This works like I said it loads the popup on and insert new record but not on my edit linkbutton.

<telerik:RadGrid ID="myRadGrid" runat="server" Width="80%" Skin="Web20" CssClass="dvGridWrapper">
                <MasterTableView AutoGenerateColumns="false" Font-Size="10" DataKeyNames="intRecruiterId" CommandItemDisplay="Top">
                    <HeaderStyle ForeColor="White" Font-Bold="true" HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center"/>
                    <AlternatingItemStyle BackColor="#B0C4DE"  HorizontalAlign="Center" />
                    <Columns>
                        <telerik:GridTemplateColumn>
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkEdit" runat="server" CommandArgument='<%# bind("intRecruiterId") %>' CommandName="EditRec" Text="Edit"></asp:LinkButton>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
 
 Protected Sub myRadGrid_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles myRadGrid.ItemCommand
        If (e.CommandName = RadGrid.InitInsertCommandName) Then
            ddlRecItems()
        End If
 
        If (e.CommandName = "EditRec") Then
            Dim RecId As Integer = CInt(e.CommandArgument)
            HFEditRec.Value = RecId
            FillPopup(RecId)
            pnlRecruiter_MPE.Show()
        End If
    End Sub
 
 
 
1st piece of the modalpopup
 <asp:UpdatePanel ID="udp1" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="lnkSubmit" />
            <asp:AsyncPostBackTrigger ControlID="lnkCancel" />
        </Triggers>
        <ContentTemplate>
            <asp:panel ID="pnlRecruiter" runat="server" Style="display:none" CssClass="RecruiterWindow">
                <table style="width:100%">




























































Pavlina
Telerik team
 answered on 07 Jun 2013
1 answer
94 views
I've nocticed than with overlapping tabs such a forest, the first tab on additional rows is styled for an overlap.

Is it possible to configure the strip so that the first tab in each row isn't style for overlap.

I found a short thread about this dating to 2010 and the Telerik mod said that this was a "known limitation" of the tabstrip control.

Has that been addressed since 2010?
Magdalena
Telerik team
 answered on 07 Jun 2013
1 answer
197 views
Hello,

We are trying to migrate over from the Radupload control to the RadAsyncupload control. We have a grid that has the radupload control within an edit template of a rad grid. With the old radupload you could select a fill, fill out some details on the file (title, description) click upload and it would upload, insert into the grid. 

We would like RadAsyncupload to behaving this way if only 1 file is selected. If multiple files are selected we can't ask for these details and simply begin the upload. They may go and edit the items in the grid later if they so choose.

We have a solution that toggles between modes but they need to refresh the page, this action simply disables all plugins and sets manual upload which makes the Asyncupload fall back to the old Iframe mode.

Is it possible to set these modes by setting values client side on the radasyncupload control within the onClientFilesSelected event handler?  I already tried setting the .manuaUpload property and that doesn't seem to work. 

Thanks.

Hristo Valyavicharski
Telerik team
 answered on 07 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?