Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
111 views

Hi,

We need to hide the GroupExpandCollapse column for groping with RadGrid.

We tried following two ways -

1) Set AllowGroupExpandCollapse="false" in client setting.

2) Add ExpandCollapseColumn and set visible= "false"

But both are not working.

Please let us know how to hide the GroupExpandCollapse column for groping with RadGrid.

Regards,

Shirish

Shinu
Top achievements
Rank 2
 answered on 03 Jan 2012
1 answer
402 views
Hello Telerik,

I am using the RadWindow for displaying some RadConfirms, but the coding doesn't seem to support \r or \n.

<telerik:RadWindowManager runat="server" ID="RadWindowManager1" EnableShadow="true"  />

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script type="text/javascript">
//![CDATA[
var myName = myMasterTable.get_selectedItems()[0].getDataKeyValue( 'Name' );
var myPrompt = "Are you sure you want to delete this program?\r\n\r\n";
alert( myPrompt + myName );
radconfirm(myPrompt + myName, ConfirmProgramDeleteCallBackFn, 330, 100, null, 'Delete Program?' );

The "alert" shows fine, with "myName" being a spaced below the "myPrompt", but not the RadWindow the "myName" value appears after the "...program?", no linefeeds. Does it have to be coded some different way?

Thanks!
SDI


Princy
Top achievements
Rank 2
 answered on 03 Jan 2012
2 answers
132 views
Hello!
I have questions.

Q1. RadEditor is distorted when I set height to 300.  (Please refer to 'editor.jpg')
How can I fix it?

Q2. I want to use custom css. So I changed from Editor.Default.css to Editor.DefaultCustom.css
But when I applied it, icon disappeared. (Refer to 'editor_disappearicon.jpg')
What's wrong?
Here is part of my css.
.DefaultCustom.RadEditor
{
    background-color: #ececec;
} 
/* reWrapper */
.DefaultCustom.reWrapper
{
    border: solid 1px #828282;
} 
.DefaultCustom.RadEditor .reContentCell
{
    border: solid 1px #828282;
}
 /* common settings for .reModule, .reEditorModes and .reWrapper */
.DefaultCustom.reColorPicker,
.DefaultCustom.reInsertTable,
.DefaultCustom.reDropDownBody,
.DefaultCustom.reCustomLinks a:hover
{
    border: solid 1px #828282;
}
Hee
Top achievements
Rank 1
 answered on 03 Jan 2012
1 answer
125 views
Hello Everyone,

I see there is a way to check the total file size that is being transferred from all files. But I am looking for some validation on the onclientfileselected method. Is there a way to check the file size of just the file that is just been selected so I can display a validation message if it exceeds 3mb?

-Chris
Shinu
Top achievements
Rank 2
 answered on 03 Jan 2012
4 answers
175 views
I have a grid Control where I have a client side ajax handler on a row click... but also in the row i have 2 controls which are buttons (LinkButtons) which calls a different method and I do not want the ajax handler on those.

The problem i'm having is that the row click always trigger the client side ajax... even if I've only clicked on the button controls.

I was able to get the behaviour I want with a different button (Image)
Here's the code to demonstrate the problem

<ClientSettings>
    <Selecting AllowRowSelect="True" />
    <Scrolling AllowScroll="True" UseStaticHeaders="True" />
    <ClientEvents OnRowClick="SelectShoppingList_RowClick" /> <% This triggers an Ajax Call on Row Click %>
</ClientSettings>
<MasterTableView DataKeyNames="Account_ID, List_ID" ClientDataKeyNames="Account_ID, List_ID">
    <Columns>
        <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="SelectList" CommandArgument="Account_ID, List_ID"
            ImageUrl="../Images/btSelectCharcoal.gif" Visible="false" UniqueName="SelectColumn">
        </telerik:GridButtonColumn>
        <telerik:GridTemplateColumn UniqueName="TemplateColumn" ItemStyle-Width="400px">
            <ItemTemplate>
                <asp:Label ID="lblTemplateName" runat="server" CssClass="slListName"> <%# DataBinder.Eval(Container.DataItem, "List_Name")%></asp:Label><br />
                <asp:Label ID="lblLastUpdated" runat="server" CssClass="slDetailLine"> <%# DataBinder.Eval(Container.DataItem, "Detail_Line")%></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn UniqueName="ItemsColumn" DataField="Item_Count_Display"
            ItemStyle-Width="80px" ItemStyle-CssClass="slItemCount">
        </telerik:GridBoundColumn>
        <telerik:GridTemplateColumn UniqueName="CommandsColumn">
            <ItemTemplate>
                <telerik:RadButton ID="btnRename" runat="server" CommandName="RenameList" CommandArgument="Account_ID, List_ID"
                    Text="Rename" UniqueName="RenameColumn" ButtonType="LinkButton" BorderWidth="0"
                    Font-Underline="true" BackColor="#063648" ForeColor="White">
                </telerik:RadButton> <%OnClick on this button always triggers the Ajax Call which I do not want %>
                <br />
                <telerik:RadButton ID="btnDelete" runat="server" CommandName="DeleteList" CommandArgument="Account_ID, List_ID"
                    Text="Delete" UniqueName="DeleteColumn" ButtonType="LinkButton" BorderWidth="0"
                    Font-Underline="true" BackColor="#063648" ForeColor="White">
                </telerik:RadButton><%OnClick on this button always triggers the Ajax Call which I do not want %>
 
                <telerik:RadButton ID="btnCancel" runat="server" Width="72"
                    Height="31">
                    <Image ImageUrl="../Images/btCancelCharcoal.gif" />
                </telerik:RadButton><% This button does not trigger the AJAX call which is what i want%>
 
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridButtonColumn FilterControlAltText="Filter DeleteCol column" UniqueName="DeleteCol"
            ButtonType="ImageButton" CommandName="DeleteItemFromShoppingList" CommandArgument="Account_ID,List_ID"
            ConfirmText="Are you sure you want to delete this item from the list ?" ConfirmTitle="Delete List"
            ImageUrl="..\Images\icoDeleteRedX.gif" ItemStyle-HorizontalAlign="Left"> ><% Similarly This button does not trigger the AJAX call which is what i want%>
        </telerik:GridButtonColumn>
    </Columns>
</MasterTableView>



Why Can't i have the same rowclick to be ignored on the LinkButtons as I have in the Image Buttons?

Thanks

Gotcha
Top achievements
Rank 1
 answered on 03 Jan 2012
2 answers
162 views

Hi Team,

In my web application,

 <asp:TableRow>
                                                    <asp:TableCell>
                                                      
                                                            <div id="JumpChoice">
                                                            <table>
                                                                <tr>
                                                                    <td id="Td1">
                                                                        <span class="smallTitle">Column Repeat</span><br />
                                                                        <telerik:RadComboBox ID="uxCheckboxChoicesColumnRepeat1" runat="server" OnClientSelectedIndexChanged="CheckBoxChoicesColumnRepeatChanged1">
                                                                            <Items>
                                                                                <telerik:RadComboBoxItem Text="One Column" Value="1" />
                                                                                <telerik:RadComboBoxItem Text="Two Columns" Value="2" />
                                                                                <telerik:RadComboBoxItem Text="Three Columns" Value="3" />
                                                                                <telerik:RadComboBoxItem Text="Four Columns" Value="4" />
                                                                            </Items>
                                                                        </telerik:RadComboBox>
                                                                    </td>
                                                                </tr>
                                                                 <tr>
                                                                    <td>
                                                                        <asp:Panel runat="server" ID="uxJumpPanel">
                                                                            <telerik:RadListView ID="feeldChoices" runat="server" OnItemDataBound = "feeldChoices_ItemDataBound" >
                                                                                <ItemTemplate>
                                                                                    <table cellpadding="0" cellspacing="0">
                                                                                        <tr>
                                                                                            <td>
                                                                                                <telerik:RadTextBox runat="server" Text='<%# Eval("Text") %>' onkeyup="SyncListToCheckbox(this)"
                                                                                                    ID="uxItemText" Width="260">
                                                                                                </telerik:RadTextBox>
                                                                                                  <telerik:RadComboBox runat="server" ID="uxSelectPage1" ></telerik:RadComboBox>
                                                                                            </td>
 
                                                                                            <td>
                                                                                                <img id="imageAdd" style="cursorpointer" runat="server" onclick="InitiateAjaxRequest('1,3,add|' + this.id + ',' + selectedDockId); SetUnsaved();"
                                                                                                    alt="Add field choice" border="0" src="Images/Add.png" />
                                                                                            </td>
                                                                                            <td>
                                                                                                <img id="imageDelete" style="cursorpointer" runat="server" onclick="InitiateAjaxRequest('1,3,remove|' + this.id + ',' + selectedDockId); SetUnsaved();"
                                                                                                    alt="Delete field choice" border="0" src="Images/Delete.png" />
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </ItemTemplate>
                                                                            </telerik:RadListView>
                                                                        </asp:Panel>
                                                                    </td>
                                                                </tr>
                                                              
                                                            </table>
                                                        </div>
                                                       
                                                    </asp:TableCell>
                                            </asp:TableRow>

what I want is, how do I set value to this uxSelectPage1 combobox from codebehind?

//Thanks

raaj
Top achievements
Rank 1
 answered on 03 Jan 2012
2 answers
337 views
I have looked everywhere for this answer and just can't seem to find it.  Hope someone out there knows....

I have a RadTabStrip on my page with dynamically loaded UserControls, each having its own RadGrid on it.  These are all scrollable grids and I have the appropriate working JavaScript to get the height to work and ensure the grid renders correctly (along with making sure the columns line up in all browsers). The problem I am having is that once a tab is loaded, I click on another tab to load that one, then go back to the first tab (with no Postback), the grid is all messed up!  The header row is gone and just replaced with blocks. I need to call my FixGrid method which takes a RadGrid as the parameter.  Calling this method does fix the grid when I have it in a scenario where the grids are not dynamically loaded with UserControls and I can access the IDs of each RadGrid on the page; i.e. something like this:

function ClientTabSelected(sender, args) {
    var radgrid;
     if (sender.get_selectedIndex() == 0) {
         radgrid = $find("<%= rgGrid1.ClientID %>");
     }
     else {
         radgrid = $find("<%= rgGrid2.ClientID %>");
     }
 
     FixGrid(radgrid);
 }


I have tried the OnClientTabSelected event on the RadTabStrip on the ASPX page that houses the UserControls; the problem is I can't access the IDs for the RadGrids on the dynamically loaded UserControls from that page.  Furthermore, I plan to use this scenario quite a bit and would like a centralized method that can handle this.

So, my question is, is it possible to write some JavaScript / jQuery that can get all instances of RadGrids on the page every time the OnClientTabSelected is called and loop through them, calling the my FixGrid method on every one?  Or is there a better way to solve this problem?

I saw there is a $telerik.findGrid() method, a $telerik.toGrid() method and I can access the Telerik.Web.UI.RadGrid object.  Unfortunately I just can't find any way to get this to work.

Thanks in advance for your help with this!
Brian Levin
Top achievements
Rank 2
 answered on 02 Jan 2012
1 answer
127 views
Is there documentation for the Ajax controls in pdf format? I would like to read them on the iPad.
abdu bukres
Top achievements
Rank 1
 answered on 02 Jan 2012
0 answers
150 views
Never mind, Stupid mistake
Tim
Top achievements
Rank 2
 asked on 02 Jan 2012
5 answers
269 views
Hello,

my control is updated by a RadAjaxManager which works fine. But now I try to register a client script resource. I don't get an exception when doing this, but the webresource isn't rendered into the page. The path to the embedded resource must be correct because using a wrong path generated an exception.

This is what I do in OnPreRender:
ScriptManager.RegisterClientScriptResource(this, GetType(), "Search.MySearch.js");

This is what I added to AssemblyInfo.cs:
[assembly: WebResource("Search.MySearch.js", "text/javascript")]

When I look into the assembly with dotPeek, I can see that the resource name is correct. Why doesn't 
the javascript file get rendered into the page? I don't use the RadScriptManager at the moment.

If I don't add the specific AjaxSetting to the RadAjaxManager, the script resource is added to the page.

Thanks for your help!
Jorge
Top achievements
Rank 1
 answered on 02 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?