Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
110 views
Hi telerik,
I have a grid with frozon columns in my project, I intend to set width for some columns, I refer to the demo below in help article
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/frozencolumns/defaultcs.aspx 
I noticed that it use the following to set width for ALL Columns 
<HeaderStyle Width="200px"></HeaderStyle> 
but I only intend to set some specific columns, taking the demo above for example, I only want to set the column 'Address' width to 500px,
when remove <HeaderStyle width="200px"></HeaderStyle> and set column 'Address' width to 500px, it does not work and the horizontal scroll bar 
I also noticed there is another help article 
http://www.telerik.com/help/aspnet-ajax/grid-scroll-with-static-headers.html
there is a note said 'When scrolling is enabled and UseStaticHeaders is True, the grid columns should declare HeaderStyle.Width.'
does that mean 'HeaderStyle.Width' will apply to all columns?
could you please how to set width for specific columns when using frozon column?
Albert
Top achievements
Rank 1
 asked on 07 Jan 2013
0 answers
86 views
Inside an EditItemTemplate of a Grid I have two buttons:

<div>
    <asp:Button runat="server" ID="btnSave" CommandName="Update" Text="Save" OnClick="btnSave_Click" />
    <asp:Button runat="server" ID="btnCancel" CommandName="Cancel" Text="Cancel" CssClass="floatRight" />
</div>

The first Save button is placed inside a "rfdSkinnedButton" anchor tag and has rounded corners etc.
The second Cancel button is not automatically styled this way. Seems its explicit CssClass overrides this behaviour. What is this behaviour called? Grid skinning?

How do I float my Cancel button right but still get the rounded corners etc?
Peter
Top achievements
Rank 1
 asked on 07 Jan 2013
8 answers
471 views
Hello,

I have a RadGrid on my page with AllowMultiRowSelection="true" and clientSelectColumn.
In the itemDataBound evennt I perform some check on the binded item and sometimes disable the row:
e.Item.Enabled = false;    

While this line disables the checkbox, the row can still be checked when clicking on it.
Moreover, when clicking on the check all check box in header all the checkboxes become checked, even the disabled ones.

Is that a bug?




This is the grid declaration:
<telerik:RadGrid ID="gridReviews" runat="server"
            AutoGenerateColumns="false" AllowMultiRowSelection="true"
            onitemdatabound="gridReviews_ItemDataBound"  >            
            <HeaderContextMenu>
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
            </HeaderContextMenu>
            <ItemStyle Wrap="False" />
            <MasterTableView DataKeyNames="Value.Id">                
                <Columns>                    
                    <telerik:GridClientSelectColumn UniqueName="ReviewSelectCol">                        
                    </telerik:GridClientSelectColumn>
               .....
               .....


                </Columns>
            </MasterTableView>
            
            <ClientSettings >
                        <Selecting AllowRowSelect="True" />
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                        <Resizing AllowColumnResize="True" EnableRealTimeResize="True" />
            </ClientSettings>

        </telerik:RadGrid>

Thanks,
Maria.
Vlad
Top achievements
Rank 1
 answered on 06 Jan 2013
0 answers
97 views
Hi,

How should I publish a web site to get a release version?
I mean to get min JS and min Css resources in WebResource.axd link for telerik controls.

Some images and js resources of Telerik controls that are linked by WebResource.axd do not get cached by the browser (there is no 'Expire Date' in response header). what should I do to make this resource links cachable??


Thank you very much. 
reza
Top achievements
Rank 1
 asked on 05 Jan 2013
1 answer
117 views

im loading items using loadondemand(ItemsRequested) on a usercontrol ascx i also attach attributes to items

eg

item.Attributes.Add("onclick", "NavigateAreaSelection(" + CRMAreaID + ")")


the problem i have is that when you select an item i navigate to a different page but would like to keep the 
selected item selected, i try to do this on the page load of the usercontrol but i find that it doesn't have any items and will always be empty
So How do i Maintain the selected input or populate the combobox on navigating to a different page ?


below page load 

If ComboAllContacts.Items.FindItemByValue(AreaHelper.GetSelectedAreaID())
IsNot
Nothing Then ComboAllContacts.SelectedValue = AreaHelper.GetSelectedAreaID()End If


Kevin
Top achievements
Rank 2
 answered on 05 Jan 2013
2 answers
205 views
Hello,

I am having problems with the RadToolBar.  I created a page that utilized the RadToolBar and fires the ButtonClick event when the user clicks a RadToolBarButton.  When testing the page, clicking on the button would not cause the event to fire.  I removed all form elements except the RadToolBar and tested the page.  When you click on the RadToolBarButton, the event fires as it should.  I systematically began adding form elements into the form.  As soon as you add a RequiredFieldValidator control, the event no longer fires as it should.

I have been having intermittent problems with the toolbar prior to this, but have the feeling that the problems I am having are interrelated.  Does anyone have an answer to why this problem is occurring with the validator and what a possible workaround is?  

Thank you in advance for any assistance offered.

- Robert Eberhart
Kevin
Top achievements
Rank 2
 answered on 05 Jan 2013
4 answers
157 views
Hi ,
I am using RadEditor . I have implemented the event OnExportContent and is not being fired.
It was working previously . Here is the code

<

 

telerik:RadEditor ID="_radMergedContent" OnExportContent="_radMergedContent_ExportContent"

 

 

Width="500" Height="450" ToolsFile="~/CommonResources/PDFGeneratorTools.xml"

 

 

OnClientLoad="OnClientLoad" runat="server">

 

 

<ExportSettings Pdf-FontType="Embed" Pdf-PageTopMargin="20" Pdf-PageBottomMargin="20"

 

 

Pdf-PageLeftMargin="20" Pdf-PageRightMargin="20" />

 

 

</telerik:RadEditor>

 



There is a button "Send Mail"and OnClick of which i set these values

_radMergedContent.ExportSettings.FileName = GetPDFFileName();

_radMergedContent.ExportSettings.OpenInNewWindow =

true;

 


_radMergedContent.ExportToPdf();



On execute of the above statement the method _radMergedContent_ExportContent
needs to be fired but does not happen .

Regards,
Kris
J2K
Top achievements
Rank 1
 answered on 05 Jan 2013
2 answers
170 views
I have a grid set up with a fixed width, and I have the ResizeGridOnColumnResize property set to false.  This works OK when I'm not running in IE8 compatibility mode, but as soon as I flip this on the grid gets wider if I resize a column even though I want it to remain fixed.

Here is my grid definition:

<telerik:RadGrid ID="radGrid" runat="server" ShowHeader="true" Width="760" GridLines="Both" EnableViewState="true">
     <ClientSettings>
          <Resizing AllowColumnResize="true" AllowRowResize="false" ResizeGridOnColumnResize="false" EnableRealTimeResize="true" />
          <ClientEvents OnColumnResized="ColumnResized" />
     </ClientSettings>
     <HeaderStyle HorizontalAlign="center" />
     <ItemStyle HorizontalAlign="center" />
</telerik:RadGrid>

I want the user to be able to change the width of each column, but I also need the grid to render correctly in IE8 compatibility mode.  Any ideas?
Priya
Top achievements
Rank 1
 answered on 05 Jan 2013
0 answers
128 views

..aspx
<telerik:TreeListTemplateColumn HeaderText="Quantity " HeaderStyle-Width="50px" DataField="EntQnty1"
                                UniqueName="EntQnty">
                                <ItemTemplate>
                                    <telerik:RadNumericTextBox MaxLength="5" ID="EntQnty5" Width="50px" runat="server">
                                    </telerik:RadNumericTextBox>
                                </ItemTemplate>
                            </telerik:TreeListTemplateColumn>

.cs

protected void Submit_Click(object sender, EventArgs e)
        {
            //RadTreeListWork.ItemDataBound += new EventHandler<TreeListItemDataBoundEventArgs>(RadTreeListWork_ItemDataBound);           
            RadTreeListWork.ItemCreated += new EventHandler<TreeListItemCreatedEventArgs>(RadTreeListWork_ItemCreated);
            //Response.Redirect("AssignEmail.aspx");
        }

i'm click the submit button i fire the RadTreeListWork_ItemCreated that's fired , i find like that but text value is not get ,
it's come empty only
protected void RadTreeListWork_ItemCreated(object sender, TreeListItemCreatedEventArgs e)
       {
           if (e.Item is TreeListDataItem)
           {
               TreeListDataItem item = (TreeListDataItem)e.Item;
               RadNumericTextBox qt = (RadNumericTextBox)item.FindControl("EntQnty5");
               RadNumericTextBox Rte = (RadNumericTextBox)item.FindControl("BalQnty2");
 
 
               RadNumericTextBox mohamed = item["EntQnty"].FindControl("EntQnty5") as RadNumericTextBox;
 
               if (qt.Text != "" && Rte.Text != "")
               {
               }
           }
       }


Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 asked on 05 Jan 2013
1 answer
185 views

I am trying to use the GridClientDeleteColumn  in my grid. The clientside delete works but it doesnt update the pager information. i.e. the total count and page number is not being updated.

Am I missing something or is there a bug?  

TIA
PS
Princy
Top achievements
Rank 2
 answered on 05 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?