Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
169 views
Hello,I have this aspx code  

<telerik:RadTabStrip ID="RadTabStrip1" runat="server"  MultiPageID="RadMultiPage1" SelectedIndex="0" Skin="Hay">
   <TabTemplate>
                                            <div class="textWrapper">
                                                <asp:Label ID="Label1"  runat="server" Text="Welcome"></asp:Label>
                                            </div>
                                            <asp:ImageButton ClientIDMode="Static" ID="ImageButton1" runat="server" OnClick="ButtonCloseTab_Click" ImageUrl="~/Assets/images/icons/cross.png" AlternateText="Close" />
                                        </TabTemplate>
                                        <Tabs>
                                            <telerik:RadTab runat="server" ></telerik:RadTab>
                                        </Tabs>
                                    </telerik:RadTabStrip>    

and cs code

 RadTab rt = new RadTab("test");
 RadTabStrip1.Tabs.Add(rt);

The text always stays the same "Welcome"

How can I change the text from code behind in this particular situation

Regards
 
dimrud
Top achievements
Rank 1
 answered on 28 Apr 2011
2 answers
133 views
I have a treeview that expands with a ServerSideCallBack on certain nodes and shows the icon I setup inside <LoadingStatusTemplate>. Is there a client-side function I can call on a node that would show/hide this on demand? Something like "node.showLoading();" or "node.hideLoading();"?
digitall
Top achievements
Rank 1
 answered on 28 Apr 2011
1 answer
54 views
Hi,

Is it possible to bind a CubeDataSource to a RadChart control? If so, what version of Telerik Suite has this feature?
Tsvetie
Telerik team
 answered on 28 Apr 2011
1 answer
188 views
I've seen a few different posts close to what I am trying to do, but I can't get any of them working.  Basically, I have a grid on my parent page with a button above it.  If the user clicks the button, it opens a RadWindow so the user can "Create new".  If the user selected an item from the grid, it opens the RadWindow and loads it with the data so the user can Edit the item.

When the user clicks the Save button IN the RadWindow, It calls a service to Save the Record, then I need it to CLOSE the RADWINDOW, and REFRESH the RadGrid on the Opening form.  To close the RadWindow, I am trying:

//RadWindowManager1.Windows[0].VisibleOnPageLoad = true;
//RadWindowManager1.Windows[0].Visible = false;

But I get Javascript Errors.  I tried different variations of the above approach and get Javascript errors most of the time.  I tried Calling a Javascript Method to close the window.  It seems to work sometimes, but not all of the time:

ScriptManager.RegisterClientScript(.....) which tries to find the RadWindow and close it...

here is most of my current code in the Save Method:

 

<P> if 
(isUpdate)<BR>                
{<BR><BR>                    
talentCredit.UpdateTalentCredit(credit);<BR>                
}<BR>                
else<BR>                
{<BR>                        
<BR>                    
talentCredit.CreateTalentCredit(credit);</P>
<P>                
}<BR>                
SiteMaster masterPage = 
(SiteMaster)Page.Master;<BR>                
masterPage.SetAlertMessage("Credit has been Saved.", "green");</P>
<P>                <BR>                //Reload 
the Credits Grid on the Page that opened 
the RadWindow...<BR>                loadCredits(talentId);<BR>                
radgridCredits.DataBind();<BR><BR>                //Now 
CLOSE the 
RadWindow...<BR>                RadWindowManager1.Windows[0].VisibleOnPageLoad 
true;<BR>                
RadWindowManager1.Windows[0].Visible = false;</P>

                
I get Javascript errors if I try to use the RadWindowManager1 approach, but if I try this on other Pages, this approach works fine....

RadWindowManager HTML:

       

 <telerik:RadWindowManager ID="RadWindowManager1" Behaviors="Close" 
runat="server"><BR>                                    
<Windows><BR>                                        
<telerik:RadWindow ID="radWinAddCredit" 
runat="server"<BR>                                            
Modal="true" AutoSize="true" Title="Add/Edit Credit" 
VisibleStatusbar="false"<BR>                                            
VisibleOnPageLoad="False" Skin="WebBlue" Height="300px" 
ShowContentDuringLoad="False"<BR>                                            
Width="375px" 
Behaviors="Close"><BR>                                            
<ContentTemplate><BR>                                                
<table class="form" 
width="100%"><BR>                                                    
<tr><BR>                                                        
<td class="formLabel-RightAlign" 
align="left"><BR>                                                            
Craft<BR>                                                        
</td><BR>                                                        
<td><BR>                                                            
<telerik:RadComboBox ID="cboCrafts" Skin="WebBlue" Width="205px" 
ZIndex="5000" 
MarkFirstMatch="true"<BR>                                                                
EmptyMessage="Type to Select..." 
runat="server"><BR>                                                            
</telerik:RadComboBox><BR>                                                            
<asp:RequiredFieldValidator ID="valCreditCrafts" 
ControlToValidate="cboCrafts" 
runat="server"<BR>                                                                
ErrorMessage="Required" InitialValue="Type to Select..." 
ValidationGroup="CreditGroup"></asp:RequiredFieldValidator><BR>                                                        
</td><BR>                                                    
</tr><BR>                                                    
<tr><BR>                                                        
<td 
class="formLabel-RightAlign"><BR>                                                            
Title<BR>                                                        
</td><BR>                                                        
<td><BR>                                                            
<telerik:RadComboBox ID="cboShowTitles" Skin="WebBlue" ZIndex="5000" 
Width="205px"<BR>                                                                
EnableAutomaticLoadOnDemand="true" EmptyMessage="Type to Search..." 
MarkFirstMatch="true"<BR>                                                                
runat="server" EnableLoadOnDemand="True" 
ItemsPerRequest="100"><BR>                                                                
<WebServiceSettings Method="GetShowTitles" 
Path="SERVICE PATH HERE" 
/><BR>                                                            
</telerik:RadComboBox><BR>                                                            
<asp:RequiredFieldValidator ID="valCreditShows" 
ControlToValidate="cboShowTitles"<BR>                                                                
runat="server" ErrorMessage="Required" InitialValue="Type to Search..." 
ValidationGroup="CreditGroup"></asp:RequiredFieldValidator><BR>                                                        
</td><BR>                                                    
</tr><BR>                                                    
<tr><BR>                                                        
<td 
class="formLabel-RightAlign"><BR>                                                            
Comment<BR>                                                        
</td><BR>                                                        
<td><BR>                                                            
<asp:TextBox ID="txtCreditComment" CssClass="textFields" runat="server" 
Width="200px"></asp:TextBox><BR>                                                        
</td><BR>                                                    
</tr><BR>                                                    
<tr><BR>                                                        
<td align="right" 
colspan="2"><BR>                                                            
<telerik:RadButton ID="btnSaveCredit" Skin="WebBlue" runat="server" 
Text="Save" 
ValidationGroup="CreditGroup"<BR>                                                                
OnClick="btnSaveCredit_Click"><BR>                                                            
</telerik:RadButton><BR>                                                        
</td><BR>                                                    
</tr><BR>                                                
</table><BR>                                            
</ContentTemplate><BR>                                        
</telerik:RadWindow><BR>                                    
</Windows><BR>                                
</telerik:RadWindowManager>        

I like these controls for the most part, but the RadWindow seems to give me the most difficulty currently...ugh.

thanks

mark
Georgi Tunev
Telerik team
 answered on 28 Apr 2011
0 answers
176 views
Hi,

Our users want to use the decimal separator key on the numeric keypad, which is a point on the Belgian keyboard, to be used as a comma in the telerik numeric texbox. However, the numeric textbox doesn't allow this key to be used.

I understand that behaviour, as the culture is set to use a comma as separator. But, as our users pointed out it does works in Excel. This is true, Excel seems to intercept the point when entered from from the keypad and replace it with a comma.

So, in order to mimic this I tried a similar thing, with some javascript attached to the onkeydown event of the numeric textboxes:
 

 

function replaceSeparator(e, numerictextbox) {
    if (e.keyCode == 110) {
        numerictextbox.value = numerictextbox.value + ",";  
        return false;  
    }
}

This works, the point from the keypad is replaced with a comma. However you still see the warning triangle flashing inside the textbox. Any way I can get that triangle warning out? Or perhaps there's a better way to get the numeric textbox to play nice?

Thanks,
Frank.



 

Frank
Top achievements
Rank 1
 asked on 28 Apr 2011
1 answer
66 views
Hi there,

Does anybody know how to open a RadWindow from clicking a custom button in RadEditor toolbar?

Anyone has code to share?

Felix
Dobromir
Telerik team
 answered on 28 Apr 2011
2 answers
248 views
Hi

I am having a customized object. It has data like below

Fleet     Month   Actual     TargetLiability
A320     5           75%          61%
A330     5           78%          61%
A340     5           40%          61%
A320     6           75%          70%
A330     6           78%          70%
A340     6           40%          70%
A320     7           75%          71%
A330     7           78%          71%
A340     7           40%          71%

I have bound data to radchart. Have applied Month as the x axis column and Actual is the Yaxis. Also i have set DataGroupcolumn = Fleet. My question is, i have to display TargetLiability value  for each month  (below the xaxis label appearance). Please see the image for refference. In addition, i would like to make the xaxis position to 100%. Can you please anyone guide me to achieve.

Regards
Arima
Arima
Top achievements
Rank 1
 answered on 28 Apr 2011
8 answers
104 views
Hi,

How would I keep track of Action Trails in RADEditor control. I need to display a comparison form of edits, additions and deletes of the content. How can this be achieved with RADEditor?

Thanks in advance for your help.
Dobromir
Telerik team
 answered on 28 Apr 2011
1 answer
161 views

hi

Each file within the bin directory are for what?

Telerik.Web.Design.dll

Telerik.Web.UI.dll

Telerik.Web.UI.xml

and which file or files are needed for my uploaded web site?

Sebastian
Telerik team
 answered on 28 Apr 2011
1 answer
153 views
I have a RadGrid set as the AjaxUpdatedControl in the RadAjaxManager so that the filtering happens using ajax. There is a select command column with a select button that when it's clicked i want it to post back so that i can set a bunch of values for other controls on the page. Right now when the select button is clicked and I debug (step through in VS) on the server-side it looks like the controls are being set but the page isn't actually updated. I think this is because the select button is using a callback instead of postback.

Is there a way i can make the select button in the column cause a post back but still have the filtering use ajax?

in case it helps here's the code below.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableViewState="true" OnCommand="Ajax_Command">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="AccountGrid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="AccountGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

<telerik:RadGrid ID="AccountGrid" runat="server" DataSourceID="AccountSqlDataSource" OnItemCommand="AccountGrid_ItemCommand"
    AutoGenerateColumns="false" AllowFilteringByColumn="True" AllowSorting="true" AllowPaging="True" PageSize="15" ShowFooter="True">
    <GroupingSettings CaseSensitive="false" />
    <MasterTableView>
        <Columns>
            <telerik:GridButtonColumn Text="Select" CommandName="Select" UniqueName="SelectColumn" ButtonType="LinkButton" AutoPostBackOnFilter="true"></telerik:GridButtonColumn>
            <telerik:GridNumericColumn  
                DataField="AccountID" UniqueName="AccountNumberColumn" HeaderText="Account #"
                FilterDelay="1000" AutoPostBackOnFilter="true" FilterControlWidth="60" ShowFilterIcon="false">
         </Columns>
    </MasterTableView>
</telerik:RadGrid>
Pavlina
Telerik team
 answered on 28 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?