Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
148 views

Hi

I am trying to hide the GridEditCommandColumn of a GridTableView when the user clicks on the “add new record” commandItem of the GridTableView.

GridEditCommandColumn editColumnMaster = (GridEditCommandColumn)radGridProjects.MasterTableView.GetColumn("masterEditColum");

editColumnMaster.Visible = false;

 

The above code in the item command event of the grid works perfectly to hide the editcolumn of the mastertableview but not the detail table. It seems to me the GridTableView’s editcolumn only hides after the user clicks on save or cancel. The hierarchy load mode of the grid is set to ServerBind and I am using form templates.

 

Thank you

Fred

Fred Mare
Top achievements
Rank 1
 answered on 13 Jan 2011
3 answers
69 views
Hi!

I've been looking at the telerik editor specifications and I have a question. Does it have support to edit existing .doc files?
Example, I have a .doc file and on the page load of the webform where i have the editor i want to load the .doc file to the edit it.
Is this possible?

Thanks in advance,
Rumen
Telerik team
 answered on 13 Jan 2011
2 answers
208 views
I am using radgrid in my project, i have a strange issue about confirmation dialog,
below is a sample code from one of my aspx page...

<telerik:GridButtonColumn CommandName="Delete" HeaderStyle-Width="30px" Text="Delete" UniqueName="columnButtonDelete"   ConfirmDialogType="RadWindow" ConfirmText="Are you sure to delete the record?" ConfirmTitle="Confirm Delete">
</telerik:GridButtonColumn>

the confirmation dialog window opens and works as expected, no problem...

However, some records should be disabled for deleting, when I disable those records from code-behind (inside ItemDataBound event of the gridview) like:

CType(DataItem("columnButtonDelete").Controls(0), LinkButton).Enabled = False

The button is disabled, no problem... But a user still can click on that button and the confirmation dialog pop-ups!?
If the user clicks on 'Yes' to try deleting the record, the confirmation window closes, but the record is not being deleted...

Is it a bug? How can i prevent a disabled button to be clicked?
Mehmet Emrah
Top achievements
Rank 1
 answered on 13 Jan 2011
1 answer
889 views
Hi,
I want to apply Filter in GridTemplateColumn, Please help....
I have paste the code below.


<telerik:RadGrid ID="RadGridCategory" runat="server" GridLines="None" AllowPaging="True"
                                                PageSize="5" AllowSorting="True" AutoGenerateColumns="False" ShowStatusBar="true"
                                                HorizontalAlign="NotSet" AllowMultiRowEdit="false" OnNeedDataSource="RadGridCategory_NeedDataSource"
                                                OnItemCommand="RadGridCategory_ItemCommand" Width="100%" OnUpdateCommand="RadGridCategory_UpdateCommand"
                                                AllowMultiRowSelection="False">
                                                <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                                                <GroupingSettings CaseSensitive="false" />
                                                <MasterTableView CommandItemDisplay="Bottom" DataKeyNames="CategoryID" EditMode="InPlace">
                                                    <CommandItemSettings ShowAddNewRecordButton="false" />
                                                    <Columns>
                                                        <telerik:GridBoundColumn UniqueName="CategoryID" HeaderText="CategoryID" DataField="CategoryID"
                                                            Visible="false">
                                                        </telerik:GridBoundColumn>                                                      
                                                        <telerik:GridTemplateColumn UniqueName="EditColumn" ItemStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Left"
                                                            HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Left" HeaderText="Category Name">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblName" runat="server" Text="<%# Bind('CategoryName') %>"></asp:Label>
                                                            </ItemTemplate>
                                                            <EditItemTemplate>
                                                                <asp:TextBox ID="txtName" runat="server" Text="<%# Bind('CategoryName') %>"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rqfName" runat="server" ControlToValidate="txtName"
                                                                    ErrorMessage="Category Name is Required."></asp:RequiredFieldValidator>
                                                            </EditItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                        <telerik:GridBoundColumn UniqueName="DisplayText" HeaderText="Display Text" DataField="DisplayText"
                                                            HeaderStyle-Font-Bold="true">
                                                        </telerik:GridBoundColumn>
                                                        <telerik:GridEditCommandColumn EditText="">
                                                        </telerik:GridEditCommandColumn>
                                                        <telerik:GridButtonColumn CommandName="EditIt" Text="Edit">
                                                        </telerik:GridButtonColumn>
                                                        <telerik:GridTemplateColumn UniqueName="DeleteColumn" ItemStyle-VerticalAlign="Middle"
                                                            ItemStyle-HorizontalAlign="Center">
                                                            <ItemTemplate>
                                                                <asp:LinkButton runat="server" CausesValidation="false" OnClientClick="if (confirm('Are You Sure You Wish To Delete This record?'))return true; else return false;"
                                                                    CommandName="Delete" Text="Delete" ID="btnDelete"></asp:LinkButton>
                                                            </ItemTemplate>
                                                        </telerik:GridTemplateColumn>
                                                    </Columns>
                                                </MasterTableView>
                                                <ClientSettings>
                                                    <ClientEvents OnRowDblClick="RowDblClick" />
                                                </ClientSettings>
                                            </telerik:RadGrid>
Shinu
Top achievements
Rank 2
 answered on 13 Jan 2011
1 answer
50 views
I'm wondering what the simplest way is to implement ajax (so my screen never flashes when i do a postback from a control, etc.).  I've tried the proxy controls, on the content page with Ajax manager on Master page, but still refreshes the entire screen.  It's probably something simple I'm missing, but, is there a good example to follow?

Thanks.
Pavlina
Telerik team
 answered on 13 Jan 2011
0 answers
86 views
Hello All,

Tab setting is not working on my page, I have used RadAsyncUpload control and I have also set tab order on each control.
Below is my html structure:

<tr>
<td>
     <telerik:RadAsyncUpload runat="server" ID="rupUploadBanner" TabIndex="9" ReadOnlyFileInputs="true"
           Style="display: inline;" Width="98%" MaxFileInputsCount="1" OverwriteExistingFiles="true" AllowedFileExtensions="jpg,jpeg,png,gif">
     </telerik:RadAsyncUpload>
</td>
</tr>

<tr>
<td>
 <telerik:RadAsyncUpload runat="server" ID="rauUploadCompanyLogo" TabIndex="8" ReadOnlyFileInputs="true"
      Style="display: inline;" Width="98%" MaxFileInputsCount="1" OverwriteExistingFiles="true"  AllowedFileExtensions="jpg,jpeg,png,gif">
 </telerik:RadAsyncUpload>
</td>
</tr>

Please have a look on the attachment and suggest me some solution.


Thanks
Mukesh



Thanks
Mukesh
Mukesh
Top achievements
Rank 1
 asked on 13 Jan 2011
2 answers
329 views
I have a RadGrid that is bound at runtime to a Stored Procedure that returns a dynamic set of columns, the SP is a pivot of money and dates.  So the SP always returns Column 1 and Column 2 that are always the same name but then the other columns are dynamic depending on what dates and costs have been entered by the users i.e. the SP could return Column 1 and Column 2 plus 1 additional Column (which will be named the month and Year selected e.g. Jul 2011 or it could return 10 additional columns Spanning Jul 2011 to April 2012 and so on.  These addtitional columns return a decimal value, my question is how can i format these additional columns (that will change each time data is added) as DataFormatString="{0:£###,##}" if i dont have a grid bound column.

My Grid is simply
<telerik:RadGrid ID="GridMonies" runat="server">
</telerik:RadGrid>

Which is bound at runtime using
GridMonies.DataSource = WSA.PaymentDrawdownView(WSARecord)
GridMonies.DataBind()

Thanks in advance

Tony
Anthony
Top achievements
Rank 1
 answered on 13 Jan 2011
4 answers
104 views
Hi

We've upgraded to the ASP.NET AJAX Q3 2010 release and in the demo scripts which ship with the this version the problem where an uploaded image was not immediately selected in the Image Manager dialog after it has been uploaded looks to have been fixed when using the standard image provider (i.e. files from disk).

Our project however uses a custom provider for the image manager and we are still seeing the issue (other than this problem our custom provider code works fine).  You can see the issue in the video below.  Note when uploading the first image everying is fine.  When uploading the second image the image manager is refreshed and looks as if it is about to show the newly uploaded image but then the entiure Image Manager windows is refreshed and the uploaded image is not pre-selected.

http://www.screencast.com/users/sbc2/folders/Default/media/45a50be2-88a5-40ab-9576-c963b5f69eb2

Is there something that we need to update in our custom provider code to fully implement the fix ?

Thanks
Lini
Telerik team
 answered on 13 Jan 2011
4 answers
223 views
Hi..
I'm using a RadMenu on a master page. When I tab through the controls on the page.. eventually the RadMenu is selected half way down the page.. How do I turn off the TabStop for the Menu or set the TabIndex so the Menu is not selected.

thanks
Yana
Telerik team
 answered on 13 Jan 2011
6 answers
1.4K+ views

I would like to change font size of a combobox items  only on one page, other pages I would like to apply default ( vista – skin) settings, How do I do this?

Yana
Telerik team
 answered on 13 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?