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

I have the following code on my aspx page

<table width="800px"><tr><td align="right">
        <telerik:RadButton ID="ToggleResponseView" OnCommand="OnToggleResponseView" AccessKey="1" runat="server" ButtonType="StandardButton" ToggleType="CustomToggle">
            <ToggleStates>
                <telerik:RadButtonToggleState Text="SVIEW" />
                <telerik:RadButtonToggleState Text="FRECORD" />
            </ToggleStates>
        </telerik:RadButton>
        </td>
        <td>
        <asp:CheckBox ID="chkisSummary" runat="server" AutoPostBack="true" OnClientToggleStateChanged="chkSummaryAll" OnCheckedChanged="ViewSummaryAll" Checked="false" Visible="true" text="Show All"/>
        </td></tr></table>
  
<script type="text/javascript">
    function chkSummaryAll(sender, args) {
        switch (args.get_currentToggleState().get_text()) {

            case "SVIEW":
                document.getElementById("chkisSummary").checked = false;
                alert("RadButton was clicked.");
                break;}
        }   
</script>


I want to hide the check box 'chkisSummary' when the toggle button ttext is 'SVIEW'. However for somne reason the checkbox object is coming as Null and the javascript does not work.

Please suggest.

Danail Vasilev
Telerik team
 answered on 12 Feb 2013
3 answers
123 views

Here below is my scenario (thats actually mimicing the radWindow approach mentioned in this URL :
Using RadUpload Progress area in RadWindow )  in http://www.telerik.com/support/kb/aspnet-ajax/window/using-radupload-progress-area-in-radwindow.aspx)
1) I've a RadUpload (say 'radupload1) control on page1.aspx
2) an asp.net button to indicate upload processing Button (say 'button1') on the same page i.e, page1.aspx
3) a radWindow on the page1.aspx to open page2.aspx (detailing in next point below)
3) I've second page viz., page2.aspx (to open in radWindow from page1.aspx) with radprogressmanager and radprogressarea
4) I'm good about client side things like, opening page2.aspx in radWindow as soon as I hit button1 (as explainied in URL provided), radWindow Closes once upload progress reaches 100%, radwindow closes on Cancel Click (for big files like 50 MB),
However I'm primarily stuck with questions on server side
5) I need to handle custom steps in radProgressArea1 that include file upload/stream to webserver by radUpload, security checks, file conversion to a known standard format, queuing the file to a different service, update the db by DAL layer, then I need to let the radWindow close by itself.
I'm wondering how to stream the file in page2.aspx that has been selected using radUpload on page1.aspx?
the above URL was good for client side operations, is there any code sample/URL that might be handling similar scenario Or Can you please assist on this. Thank you in advance.

Not providing the sample application since my application just followed what was suggested in above URL.

(The low priority thing for me, "nice to have resolution" is : the radWindow cancel taking looong time (appearing like stuck) to refresh page1.aspx)

PS: I should be using Telerik rad controls version 2008.2.723.20

Marin Bratanov
Telerik team
 answered on 12 Feb 2013
1 answer
187 views
Hi ALL,

I have a search page with a RadGrid.Visible=false; after user clicks on "Search" button, a partial postback controlled by RadAjaxManager sets grid.Visible=true, but configured client settings doesn't works. If i have a full postback or grid always shows up, that problem doesn't occurs.

<telerik:RadGrid runat="server" ID="grid" Visible="false"
                 OnNeedDataSource="grid_NeedDataSource" 
                 AllowPaging="true" AllowCustomPaging="true" PageSize="10">
    <ClientSettings ClientEvents-OnRowClick="consultarSolicitacao" 
                    EnableRowHoverStyle="true" />
    ...
</telerik:RadGrid>

I'm running 2012.3.1308.35 on Microsoft SharePoint 2010.

Thanks,
Eyup
Telerik team
 answered on 12 Feb 2013
6 answers
111 views
Hello,

I have a RadAjaxLoadingPanel with a Telerik skin.

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"
               InitialDelayTime="0" MinDisplayTime="500"
               Transparency="50" BackgroundPosition="Center" Skin="Telerik" />

When an update is done, I see the loading panel displayed over my control, but the little gif central animation is missing.

As you can see in the attached png file (in the red cercle I added), we can see the place of the animation (the position seems to be good), but  there is no animation.

Should I have to define explicitly the gif file ? I thought it is done by chosing a skin.

Thanks by advance.

Damien 
Damien
Top achievements
Rank 1
 answered on 12 Feb 2013
10 answers
366 views
Hi there

Does anyone know if there is a way to tell radCaptcha to start from scratch and ignore any existing images in the Cache? I'm thinking that during development, when I'm hitting lots of new page loads, that previous images in the cache might be causing a trouble I have with intermittent blank Captcha images.

Could anybody advise if this is a useful way forward?

Thanks

 
Slav
Telerik team
 answered on 12 Feb 2013
2 answers
161 views
Hello,

First step: I have a generic page with a tree list control which is by default not visible.
On some conditions, I make it visible and bind it on a datatable, result of a stored procedure.
The columns are all autogenerated, so the stored procedure returns at least a column named DataKey and one named ParentDataKey (as named in the tree list declaration).

<telerik:RadTreeList runat="server" ID="RadTreeList1"
                                                     Skin="Telerik"
                                                     AutoGenerateColumns="true"
                                                     DataKeyNames="DataKey" ParentDataKeyNames="ParentDataKey"
                                                     AllowSorting="true"
                                                     ItemStyle-CssClass="RowStyle"
                                                     AlternatingItemStyle-CssClass="AlternatingRowStyle"
                                                     HeaderStyle-CssClass="HeaderStyle"
                                                     SelectedItemStyle-CssClass="SelectedRowStyle"
                                                     OnAutoGeneratedColumnCreated="RadTreeList1_OnColumnCreated"
                                                     Visible="false"
                                                     >
 
                                     <ClientSettings>
                                        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                        <Resizing AllowColumnResize="true" ResizeMode="NoScroll" />
                                     </ClientSettings>
 
                                </telerik:RadTreeList>

This works correctly.

Second step: I don't want to display the identifers used as data key and as parent data key. So I add some code just after the binding to hide those column.

// Bind data with tree list display control
this.RadTreeList1.DataSource = myDataTable;
this.RadTreeList1.DataBind();
 
// Hide the DataKey and ParentDataKey columns
foreach (var c in this.RadTreeList1.AutoGeneratedColumns)
{
    if (c.UniqueName.Equals("DataKey") || c.UniqueName.Equals("ParentDataKey"))
    {
        c.Display = false;
    }
}

This works correctly.

Third step (the problem arrives):
The datatable, result of the stored procedure is saved in viewstate.
In the page_load method, on postback, the datatable is get from viewstate and the tree list is bind on it.

At this moment, I run the some code to hide the data key and parent data key columns, but it doesn't work.
I checked on debug, in page_load the display property is well set to false for the two columns (I also tried the visible property)
but the two columns are always visible.

Someone has an idea to hide those columns ?

Thanks by advance.

Regards,
Damien
















Damien
Top achievements
Rank 1
 answered on 12 Feb 2013
1 answer
247 views
Hai

     How can I hide the clientselect column in a certain row. i.e I want it hidden depending on the value of the column. How can I have it done. Please help me out.

thanx
RT
Shinu
Top achievements
Rank 2
 answered on 12 Feb 2013
1 answer
79 views
Hi
How can I get the datakeyvalue of the selected row on an external button click.

Savyo
Shinu
Top achievements
Rank 2
 answered on 12 Feb 2013
5 answers
107 views
I have been working through the RadMenu demo utilizing the iphone skin.  When i view this page on the iPhone is does not render appropriately.  It shows the outside frame image of the iphone and the page is too wide and the scrolling does not work.  Is there something i must do to the demo to get it to render correctly on an iPhone?


Ivan Zhekov
Telerik team
 answered on 12 Feb 2013
1 answer
330 views
I have a Telerik grid which is created in Code in the Page_Init. I have to do this because the number of columns varies.
I need to be able to change the colour of a cell depending on the value in it. How do I do this?
Also is there a way to alter the orientation of the column headings?
I have a large number of columns so it would be best to have the headings at an angle.
  
Eyup
Telerik team
 answered on 12 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?