Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
50 views
Hi,

I have a question... what's the behavior behind the date input?
When I enter "121212" he makes 12/12/2012 of it and after that I alter the days to '00' and he converts it to '31'..
When I alter the month to '00', he changes the year 2012 into 2010...

Can I stop this behavior and let a validation stop the insertion of zero values?

Greetings,
John
Pavlina
Telerik team
 answered on 03 Aug 2009
2 answers
205 views
hi,
i am here again got another question for the combo box. i have three combo box that have value. both three combo box will have same value. what i want is when i am select the first combo box, i can get the selected index for the two other combo box without autopostback. What shall i do to get this result?

best regards;
SK
sk
Top achievements
Rank 1
 answered on 03 Aug 2009
1 answer
158 views
I am new to Telerik -

I am using the "Telerik" skin for a pie chart, stacked bar and stacked bar 100% chart. Each charts data source is bound at runtime.

The Telerik Skin produces a blue complex gradient as the series one value and a complex green gradient as the series two value.

Is there anyway to reverse, control or otherwise modify the series color when binding at runtime other than manually setting the FillSettings in the ItemDataBound event? (which works fine).

Am I correct that this is the only way because the built in styles are essentially compiled into the Telerik.Web.UI assembly?

Thanks,
Richard
Ves
Telerik team
 answered on 03 Aug 2009
2 answers
94 views

Hello Sir/Madam,

I have a problem while using the RadPanelBar.
I have an aspx page with a radPanel bar. The RadPanelItems have user control has an item template

<telRAD:RadPanelBar ID="radOptionExercisePanelBar" runat="server" Width="100%" Height="98%"
ExpandMode="SingleExpandedItem" AllowCollapseAllItems="false">
    <Items>
        <telRAD:RadPanelItem runat="server" Text="Step 1 : Employee search" Expanded="true"
                    Selected="true" CssClass="radPanelCssClass" ExpandedCssClass="ExpandedCssClass">
                <Items>
                        <telRAD:RadPanelItem runat="server" Value="EmployeeSearch">
                                <ItemTemplate>
                                            <div id="divEmployeeSearch" class="fullWidthDiv">
                                                        <uc1:EmpSearch ID="uclEmpSearch" runat="server" />
                                            </div>
                                </ItemTemplate>
                        </telRAD:RadPanelItem>
            </Items>
    </telRAD:RadPanelItem>
    
    <telRAD:RadPanelItem runat="server" Value="EmployeeDetails" Text="Step 2 : Employee details"
                    Enabled="false" Expanded="false" CssClass="radPanelCssClass" ExpandedCssClass="ExpandedCssClass">
        <Items>
                    <telRAD:RadPanelItem runat="server">
                            <ItemTemplate>
                                    <div id="divEmployeeDetails" class="fullWidthDiv">
                                                    <uc2:EmpDetails runat="server" ID="uclEmployeeDetails" />
                                    </div>
                            </ItemTemplate>
                </telRAD:RadPanelItem>
        </Items>
    </telRAD:RadPanelItem>
<Items>
</telRAD:RadPanelBar>

 

I have placed the rad ajax manager on the aspx page as given below
<radA:RadAjaxManager ID="radAjxMgr" runat="server">
<AjaxSettings>
<radA:AjaxSetting AjaxControlID="radOptionExercisePanelBar">
<UpdatedControls>
<radA:AjaxUpdatedControl ControlID="radOptionExercisePanelBar" LoadingPanelID="radAjxLoadPanel"/>
</UpdatedControls>
</radA:AjaxSetting>
</AjaxSettings>
</radA:RadAjaxManager>

Also I have placed rad ajax managers in the individual user controls to ajaxify certain controls like button, grid etc.
I move from one panel to another panel using a button 'Next' placed on each user control.

If I remove the ajax on RadPanelBar from the parent page the ajaxLoading panel gets loaded for each control that is ajaxified on the user control. While moving from one panel to another it goes for a postback.

If I ajaxify the RadPanelBar in the parent page. Now moving from one panel to another is using ajax ; all the child controls in the user controls also behave in ajaxified manner. But the problem is the individual ajaxLoading panels don't  get loaded for each child control actions which used to happen in the previous case. There is only one loading panel seen on the top of the RadPanelBar on each action of the child controls.

Is there any way I can get the individual ajax loading panels.

Or Am I going wrong somewhere in placing the ajax managers.
Grateful if you could guide me in this issue.

 
Thanks,
Regards,
Mausami

Pavlina
Telerik team
 answered on 03 Aug 2009
3 answers
207 views
Hi there,

I have a GridTemplateColumn which is databound to a database table containing items of type float.  The grid works fine in adding, editing, deleting, etc.  The column works as expected when I try to filter on numeric characters (EqualTo, LessThan, etc).  However, if the user attempts to filter on non-numeric characters (eg, SomeText, @£$%, etc), an error is raised.  I either need to stop the user from entering any non-numeric data into the filter textbox or to display some sort of error message when the filter data is invalid.  Any ideas on how to achieve this?

Cheers,

Martin
Yavor
Telerik team
 answered on 03 Aug 2009
1 answer
97 views
 
Telerik.Web.UI.RadWindowUtils.Localization =     
{    
    "Close" : "Close",    
    "Minimize" : "Minimize",    
    "Maximize" : "Maximize",    
    "Reload" : "Reload",    
    "PinOn" : "Pin on",    
    "PinOff" : "Pin off",    
    "Restore" : "Restore",    
    "OK" : "Custom text for OK",    
    "Cancel" : "Custom text for Cancel",    
    "Yes" : "Custom Text for Yes",    
    "No" : "Custom text for No"      
}; 

Implementing the code above changes all the RadPopUp..
I want to have all the RadAlert have OK/Cancel Buttons
and RadPrompt to have YES/NO Button..But the above code changes all the window...

Thanks,
DIP
Georgi Tunev
Telerik team
 answered on 03 Aug 2009
0 answers
88 views
Hello!

I have a TreeView and I have loaded all root nodes of my hierarchy. Whenever I click the expand "+" on a node, I get the circling "please wait" indicator and the tree stays that way. I have debugged the code and the event NodeExpand fires allright. Whatsmore, the tree behaves as though it has received the nodes: if I click the button to collapse the supposedly appeared new nodes, nothing happens. But if i click again to expand, I get another circling indicator. I can do this as many times as I want. This is after 3 times:
http://img259.imageshack.us/img259/2840/40193187.jpg

This is my NodeExpand
    void tP_NodeExpand(object sender, RadTreeNodeEventArgs e) 
    { 
         
        MethodInfo rMethod = ServiceType.GetMethod("Retrieve", BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy, null, new Type[] { typeof(string) }, null); 
        object[] p = new object[1]; 
        p[0] = "parentID = " + e.Node.Value; 
        e.Node.ExpandMode = TreeNodeExpandMode.ClientSide; 
        ICollection DataCollection = rMethod.Invoke(null, parameters) as ICollection; 
        Populate(DataCollection, e.Node); 
    } 

My populate(collection,rnode) is nothing more than a function to add nodes to rnode.Nodes...
( creates a new childNode for each item in collection, sets its data and does a rnode.Nodes.Add(childNode) )....

For the TreeView, I have set AllowEdit=false, Expanded=true, Allow{Drag,Drop}=false, EnableViewState=true

Any ideas on what's going on?

Thanks!
Kostas Throumoulopoulos
Top achievements
Rank 1
 asked on 03 Aug 2009
9 answers
300 views
Hi

I have a DetailTable where I have a CheckBox and also a RadNumericTextBox, when the CheckBox is clicked, and when the RadNumericTextBox is edited, I want to change the last Total column. I can not see how to reference and FindControl those controls.

                        <DetailTables> 
                            <telerik:GridTableView width="100%" DataKeyNames="ItemId,CampaignId,StockOptionId" Name="Stock" GridLines="None" skinid="Default"
                                <Columns> 
                                    <telerik:gridtemplatecolumn headertext="Select" UniqueName="Select"
                                        <ItemTemplate> 
                                            <asp:CheckBox id="CheckBox1" runat="server" OnCheckedChanged="Add_CheckBox1_CheckChanged" autopostback="true" /> 
                                        </ItemTemplate> 
                                    </telerik:gridtemplatecolumn> 
                                    <telerik:gridtemplatecolumn headertext="Campaign"
                                        <ItemTemplate> 
                                            <asp:Label ID="Add_lblCampaign" runat="server" Text='<%# Eval("Campaign") %>' /> 
                                        </ItemTemplate> 
                                    </telerik:gridtemplatecolumn> 
                                    <telerik:GridTemplateColumn HeaderText="Avail"
                                        <ItemTemplate> 
                                            <asp:Label ID="Add_lblAvail" runat="server" Text='<%# String.Format("{0:n}", Eval("Avail")).Replace(".00", "") %>' /> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn HeaderText="Units Text"
                                        <ItemTemplate> 
                                            <asp:Label ID="lblUnitsTextLabel" runat="server" Text='<%# Eval("UnitsText") %>' /> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn HeaderText="Units Qty"
                                        <ItemStyle Width="90px" /> 
                                        <ItemTemplate> 
                                            <telerik:RadNumericTextBox ID="Add_tbUnitsQty" Enabled="false" AutoPostBack="true" OnTextChanged="Add_tbUnitsQty_TextChanged"  
                                                ShowSpinButtons="True" Width="80px" Type="Number" runat="server" Culture="en-AU" InvalidStyleDuration="100" MinValue="1"
                                                <NumberFormat DecimalDigits="0" /> 
                                            </telerik:RadNumericTextBox> 
                                          <asp:RequiredFieldValidator ID="Add_rfvUnitsQty" runat="server" Enabled="false" ControlToValidate="Add_tbUnitsQty" ErrorMessage="Required" Display="Dynamic" /> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn HeaderText="Total"
                                        <ItemTemplate> 
                                            <asp:label id="Add_lblTotal" runat="server" /> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                </Columns> 
                            </telerik:GridTableView> 
                        </DetailTables> 

        protected void Add_CheckBox1_CheckChanged(object sender, EventArgs e) 
        { 
            // How can I get the DataKeyNames, and the RadNumericTextBox, so I can calculate the Total 
        } 

Also, some rows will have 1 to 5 additional rows in the detail table. Say a DetailTable has 5 rows but only 2 are checked with a number in the RadNumericTextBox, how can I iterate all the rows in the DetailTables that are checked and get the DataKey names and value of RadNumericTextBox etc?

Thanks.

Michael
Top achievements
Rank 1
 answered on 03 Aug 2009
1 answer
97 views
Is there any way to bring a marked zone to the front at runtime?

The following BringToFront method always errors. I have attempted to place it before binding to a data source and after with no luck. The zone does properly render behind the series when the line is commented out. I'm attempting to place an average line over the series.

 

ChartMarkedZone zone = chtCommunityStatus.PlotArea.MarkedZones[0];
... (format code)...

 

zone.BringToFront();

 

 

 

Giuseppe
Telerik team
 answered on 03 Aug 2009
3 answers
111 views
Hi.
I have project with menu control telerik.
i do some well but when i customer css in skin so it dont work.
I do not change file css
i use skin SkyBlue with menu.

1. file aspx:
  <asp:ScriptManager ID="Scriptmanager1" runat="server">
            </asp:ScriptManager>
            <telerik:RadMenu ID="RadMenu1" runat="server" Flow="Vertical" Skin="SkyBlue">
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                <DataBindings>
                    <telerik:RadMenuItemBinding TextField="TenTheLoai" />
                </DataBindings>
            </telerik:RadMenu>

please help me..
thanks
Kamen Bundev
Telerik team
 answered on 03 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?