Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
All,

My grid's tablelayout is set to Auto and the grid show up fine after the initial load.  During "Add mode", the column headers' shrink down to the size of the "Edit Form".  When I hit "Cancel", the column headers' shrink down to the width of the header text. 

I am at a lost as to how to fix this.  I tried to emulate the examples on this site but have not found the right combination.  I am new at using this grid so any and all recommendations are welcome! 

Thanks!
-Brian

Here is the grid source.  Please let me know what kind of addition information is needed!


                <telerik:RadGrid ID="RadGrid1" runat="server"   
                    AllowPaging="True" CellPadding="1" CellSpacing="1"   
                    DataSourceID="ODGDb" GridLines="Horizontal" Width="100%"   
                    oninsertcommand="RadGrid1_InsertCommand">  
                <MasterTableView   
                                        AutoGenerateColumns="False" BorderWidth="1px" CommandItemDisplay="TopAndBottom"   
                                        DataKeyNames="FrequentlyAskedQuestionID" DataSourceID="ODGDb"   
                                        GridLines="Horizontal">  
<RowIndicatorColumn Visible="false">  
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
<ExpandCollapseColumn Visible="false" Resizable="false">  
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
                    <Columns> 
                        <telerik:GridEditCommandColumn> 
                        </telerik:GridEditCommandColumn> 
                        <telerik:GridBoundColumn DataField="FrequentlyAskedQuestionID"   
                            DataType="System.Int64" HeaderText="FrequentlyAskedQuestionID" ReadOnly="True"   
                            SortExpression="FrequentlyAskedQuestionID"   
                            UniqueName="FrequentlyAskedQuestionID" Display="False">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="PractitionerID" DataType="System.Int64"   
                            HeaderText="PractitionerID" SortExpression="PractitionerID"   
                            UniqueName="PractitionerID" Display="False" ReadOnly="True">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="ConsultantID" DataType="System.Int32"   
                            HeaderText="ConsultantID" ReadOnly="True" SortExpression="ConsultantID"   
                            UniqueName="ConsultantID" Display="False">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridTemplateColumn EditFormHeaderTextFormat="{0}"   
                            UniqueName="QuestionTemplate" DataField="Question" HeaderText="Question"   
                            Resizable="False">  
                            <EditItemTemplate> 
                                <telerik:RadTextBox ID="questionTextBox" Runat="server"   
                                    EmptyMessage="Enter a question" InvalidStyleDuration="100" Rows="3"   
                                    SelectionOnFocus="CaretToBeginning" Text='<%# Bind("Question") %>'   
                                    TextMode="MultiLine" Width="500px">  
                                </telerik:RadTextBox> 
                                <br /> 
                            </EditItemTemplate> 
                            <ItemTemplate> 
                                <asp:Label ID="questionLabel" runat="server" Text='<%# Eval("Question") %>'></asp:Label> 
                                <br /> 
                            </ItemTemplate> 
                            <HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" Wrap="True" /> 
                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Wrap="True" /> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridTemplateColumn DataField="Answer" HeaderText="Answer"   
                            UniqueName="AnswerTemplate" Resizable="False">  
                            <EditItemTemplate> 
                                <telerik:RadTextBox ID="answerTextBox" Runat="server"   
                                    EmptyMessage="Enter an answer" InvalidStyleDuration="100" Rows="5"   
                                    Text='<%# Bind("Answer") %>' TextMode="MultiLine" Width="500px">  
                                </telerik:RadTextBox> 
                            </EditItemTemplate> 
                            <ItemTemplate> 
                                <asp:Label ID="answerLabel" runat="server" Text='<%# Eval("Answer") %>'></asp:Label> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridButtonColumn CommandName="Delete" Text="Delete"   
                            UniqueName="column">  
                        </telerik:GridButtonColumn> 
                    </Columns>                      
                    <EditFormSettings> 
                        <FormTableItemStyle Wrap="False"></FormTableItemStyle> 
                        <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White" Width="100%" /> 
                        <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" /> 
                        <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle> 
                        <EditColumn ButtonType="ImageButton"   
                            InsertText="Insert Order" UpdateText="Update record" UniqueName="EditCommandColumn1" CancelText="Cancel edit">  
                        </EditColumn> 
                        <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle> 
<%--                        <EditColumn UniqueName="EditCommandColumn1">  
                        </EditColumn> 
--%>                    </EditFormSettings> 
                </MasterTableView> 
                    <ClientSettings> 
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                    </ClientSettings> 
                </telerik:RadGrid> 

Pavel
Telerik team
 answered on 25 Jul 2008
8 answers
432 views
I have the following RadDateInput control on my web page.  I am loading this value as follows:

<

telerik:RadDateInput ID="diPremiumDueDate" runat="server" DateFormat="M/d/yyyy"

 DbSelectedDate='<%# Eval("PremiumDueDate") %>'>

But I get an error when this value is null in my database.  How do I get around this?  I'd like the value to be blank on my web page when this happens.

Thanks,
Bob

Iana Tsolova
Telerik team
 answered on 25 Jul 2008
1 answer
122 views

Hi,

I have the following RadDatePicker control in an editable column in my grid.  I am struggling to set the size of the text in date picker when the row is in update mode.  I need it to be set to 12px.  Here is my code:

<radG:GridTemplateColumn
   HeaderText="Date Of Deposit"
   UniqueName="DateOfDeposit">
   <ItemTemplate>
      <asp:Label ID="lblDateOfDeposit" runat="server" Text='<%# Eval("DateOfDeposit") %>'></asp:Label>
   </ItemTemplate>
   <EditItemTemplate>
      <radCln:RadDatePicker
         ID="rdpDateOfDeposit"
         DbSelectedDate='<%# DataBinder.Eval(Container.DataItem, "DateOfDeposit") %>'
         runat="server">
         <DatePopupButton
            HoverImageUrl="~/Images/Hover.gif"
            ImageUrl="~/Images/datePickerPopup.gif" />
      </radCln:RadDatePicker>
   </EditItemTemplate>
</radG:GridTemplateColumn>

Please can some one help?

Thanks
Brendan

Missing User
 answered on 25 Jul 2008
1 answer
148 views
Hi ,

I have problem with Rad window Modal.
List box control in my application is not getting disabled by Modal="true".
I tried setting Z-Index of rad window manager to 29,000.(i set the z-index of list box as 1). Still its not working. Can any one help me in this issue.
Georgi Tunev
Telerik team
 answered on 25 Jul 2008
1 answer
160 views
I tried the RadWindow (with modal="true").  But when, I have a pdf file (contained into an iframe) in the background, the pdf file is not hidden...

It could be nice if you could hide all iframes in background when we open the radWindow. ( add an property : hideFrames="true or false")

Thank you in advance,

 
Georgi Tunev
Telerik team
 answered on 25 Jul 2008
1 answer
171 views
Hi Telerik team,

If I set the culture on my web page to french, I noticed that all telerik controls on that page gets the French Culture. But the messages that are still displayed in english. e.g.
No records to display. is displayed on a grid with no records. Is there a way for the english messages to be displayed in the language of the culture that has been set?

Ashvin

Shinu
Top achievements
Rank 2
 answered on 25 Jul 2008
1 answer
128 views
Hi,

When I move the RadWindow everywhere into my page, I could note that a lot of elements are selected in blue into the background page.

The ModalPopup of Ajax.Net doesn't do that. Do you have a solution to resolve this problem ?

Thank you in advance,
Georgi Tunev
Telerik team
 answered on 25 Jul 2008
2 answers
191 views
I've got a splitter control with two Rad Panes. The content of the Rad Panes frequently changes size in my application. As the size of my content grows or shrinks I'd like the browser scroll bars to handle all scrolling that is necessary. I've checked the examples in the forum for "auto" resizing the splitter and panes in the vertical direction with some JavaScript. This worked for me.  I can't figure out how to make this in the horizontal direction though. Horizontal scrollbars never appear on the browser.
marksweat
Top achievements
Rank 1
 answered on 25 Jul 2008
5 answers
209 views
Hello,

I've made a itemtemplate which fills in a treeview dynamically in a radcombo.
Selecting a node will reflect in the text and value of the combobox like previous threads has shown.

BUT I like an autopostback of the combo when the user has selected a node from the treeview. The first time is no problem because the slectedindex has changed. The second time however we set the text and value of the combo correctly through javascript (and placing the value in a asp hidden field) but the event of selectedindexchanged is not fired because the index didn't change.

Any ideas on how to tackle this problem??
Rosi
Telerik team
 answered on 25 Jul 2008
3 answers
179 views
Hi,

I'm testing RadUpload with MemoryOptymization and it works great. Thanks for it. I have custom flash component that I'm using to upload multiple files (adding many input fields as telerik do is not the most comfortable option) and I want to upload files by using memory optymization technique. Is any way to do it? I did some simple tests and all fails (upload context was null).

Regards
Erjan Gavalji
Telerik team
 answered on 25 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?