Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
126 views
Hi,

I want to know how set a text for Label, Literal, ... in a <FormTemplate> of a RadGrid.

My project uses a GlobalResource and a function which loop all controls (and subcontrols, ... with recursivity) and change text of control if resource exists. But when I try to find controls in a GridEditableItem, I don't find my Label. Here an example :

<FormTemplate> 
<b>User Details</b> 
                        <table id="tblEditForm"> 
                            <tr> 
                                <td><asp:Label ID="lblLangLastname" Text="<$>" runat="server"></asp:Label> : </td> 
                                <td><asp:TextBox ID="TextBox12" runat="server" Text='<%#Bind("usr_lastname")%>' /></td> 
                            </tr> 
                        </table> 
</FormTemplate> 

protected void gridUsers_ItemCommand(object source, GridCommandEventArgs e) 
{ 
        if ((e.CommandName == RadGrid.InitInsertCommandName) || (e.CommandName==RadGrid.EditCommandName)) 
        { 
            SetTraductions("", ((GridEditableItem)e.Item)); 
        } 
} 

Is there any method to modify texts of controls in a FormTemplate.
Thanks.
Princy
Top achievements
Rank 2
 answered on 11 Jun 2008
1 answer
73 views
I'm having big problems with performance in my Apps. When I download a page, I see that a file ScriptResource_002 is 260kb. Whereas a page downloaded from Telerik site is about 80kb. Seems like your version is compressed. How did you do that?
Julian Roberts
Top achievements
Rank 1
 answered on 11 Jun 2008
1 answer
86 views

 In rad Grid when set property item.Expanded=flase,

  the visibility of the row getting false.

i nedd to access the controls inside the row which was collapsed(invisible) using javascript

Princy
Top achievements
Rank 2
 answered on 11 Jun 2008
1 answer
118 views
I'm using the Alphabetic pager example but I'm looking for a way to set the page size dynamically. I only want to use the alphabetic part, not any page numbers.

e.g If your page size is set to 30, then when you click on a letter that has more than 30 records, it will not show them, you will never get to see them.
Konstantin Petkov
Telerik team
 answered on 11 Jun 2008
4 answers
118 views
I want to create a row of combo boxes (one for each column) that is above the other rows of data in the Grid. The row needs to persist across pages.

The grid I use uses paging and horizontal scrolling. It is also bound to a datasource who's structure can change from one execution to the next. I use advanced data binding through the OnNeedDataSource event. I bind to a DataTable object.

Each combo box will hold the same data, and I will custom handle the logic of the cb's postback (as long as I can reference the value of  the header, or index for that column).

Can you suggest a way of implementing this?

I'm still new to the Telerik controls, so please help me out. Code samples would be appreciated.
Princy
Top achievements
Rank 2
 answered on 11 Jun 2008
5 answers
174 views
Hi,

I have a Premetheus grid that display database data. One of the columns includes a link field, and another an image button. The data is loaded from the database and displays well.

To clear the grid data, I set the DataSource property to null and then do a rebind. The data disappear but empty rows remain and the image buttons remain shown.

Setting the Datasource to null and rebinding should do the trick. Any ideas why this is happening?

Thanks.
Shinu
Top achievements
Rank 2
 answered on 11 Jun 2008
11 answers
308 views
I have a very, very weird problem. The RadToolbar has suddenly stopped working today on both my development machine and a testing server. Neither the OnClientButtonClicking javascript event nor the ButtonClick event is being fired for any of the toolbar buttons. I have not put new code on the testing server since last Friday, and it was working yesterday.

I know it's a long-shot than anyone else has experienced this, but am I alone? Has a recent Windows Update changed the behavior in any way?


Veselin Vasilev
Telerik team
 answered on 11 Jun 2008
14 answers
631 views
Hello!
I have a very simple and common requirement:
The Radgrid should be started entirely in editmode="inPlace".
Unfortunately I'v found nothing to achieve this. Something like IsEditable="true" in the aspx page would be great.
Thx in advance
Sebastian
Telerik team
 answered on 11 Jun 2008
1 answer
139 views
Hi,

We have a performance problem with Scheduler as our users have  thousands of appointments to bind to Scheduler. This is taking long time to run the SQL which returns thousands of records.  I want to load one day appointments when Day view is selected and clicked on Next day button. And want to load weekly appointments when Navigation is in week mode, and clicked on the small right triangle button and similarly with month. Is it a doable thing with scheduler?

Thanks...
Dimitar Milushev
Telerik team
 answered on 11 Jun 2008
2 answers
238 views
Hello guys,

I m trying to find some controls using javascript like this:

var cflTabOrderId  = '<%=cflTabOrder.ClientID%>';

but I got error:

"The name 'cflTabOrder' does not exist in the current context"

The tags is like:

     <telerik:RadTabStrip ID="tbMain" runat="server" MultiPageID="RadMultiPage1" AutoPostBack="false" width="100%" EnableViewState="false" OnClientTabSelected="tsRadTabStrip1_ClientTabSelected" 
        SelectedIndex="0" Skin="Office2007" style="" CausesValidation="false" OnTabCreated="tbMain_TabCreated" OnClientTabSelecting="tsRadTabStrip1_ClientTabSelecting">  
        <Tabs> 
              
            <telerik:RadTab ID="tabOrder" runat="server" Text="<img id='errTabOrder' alt='' title='invalid input' src='../../_common/image/form/err.gif' style='display:none;float:left; border:none'/>order" PageViewID="pvOrder" Value="pvOrder" EnableViewState="false">  
                <TabTemplate>                         
                    <asp:Image ID="cflTabOrder" SkinID="imgConflictImage" runat="server" ToolTip="data conflict" style="padding-top:2px;display:none;float:left; border:none"/>                      
                    <asp:CustomValidator ID="cvTabOrder" runat="server" Display="Dynamic" style="vertical-align:bottom" 
                        ErrorMessage="input error" Text="<img src='../../_common/image/form/err.gif' />" 
                        ToolTip="input error"  ClientValidationFunction="cvTabOrder_clientValidate" ValidateEmptyText="true" 
                         ValidationGroup="vgUpdate">  
                    </asp:CustomValidator> 
                    order details                      
                 </TabTemplate> 
            </telerik:RadTab> 
              
            <telerik:RadTab ID="tabBrochures" runat="server" Text="<img id='errTabBrochure' alt='' title='invalid input' src='../../_common/image/form/err.gif' style='display:none;float:left; border:none'/>brochures" PageViewID="pvBrochures" Value="pvBrochures" EnableViewState="false">  
                <TabTemplate>      
                    <img id='cflTabOrder2' alt='' title='data conflict' src="../../_common/image/grid/conflict.jpg" style='padding-top:2px;display:none;float:left; border:none'/>                                           
                    <asp:CustomValidator ID="cvTabBrochure" runat="server" Display="Dynamic" 
                        ErrorMessage="input error" Text="<img src='../../_common/image/form/err.gif' />" 
                        ToolTip="input error"  ClientValidationFunction="" ValidateEmptyText="true" 
                         ValidationGroup="vgUpdate">  
                    </asp:CustomValidator> 
                      
                    brochures  
                 </TabTemplate> 
            </telerik:RadTab> 
            <telerik:RadTab ID="tabShipment" runat="server" Text="<img id='errTabShip' alt='' title='invalid input' src='../../_common/image/form/err.gif' style='display:none;float:left; border:none'/>ship to" PageViewID="pvShipment" Value="pvShipment" EnableViewState="false">  
            </telerik:RadTab> 
        </Tabs> 
          
    </telerik:RadTabStrip>  
Also I can not use this control from code behide.
Just wonder why the control is invisible?

Regards,
Elton
Paul
Telerik team
 answered on 11 Jun 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?