Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
208 views
Guys,
  I'm using Version 3.5 and the menu that we've built right now seems to work like a charm on IE 7/8, Safari but there seems to be a page break / mis-alignment when it comes to firefox. Am i overlooking something out here? Here's the screen shot in the respective browsers:

IE 8       : Site Link
Firefox  : Site Link
Safari    : Site Link

Regards,
Sandy Jain
Sandy Jain
Top achievements
Rank 1
 answered on 11 Aug 2009
1 answer
98 views
hi,

I've a radgrid with a gridbound col and a  grid template column in it.
The gridtemplate column has a dropdownlist control in it.

The whole grid is an user ctrl . I've a wizard kind of page where i clcik back and next to go to further pages.

I select values in the dropdownlist (which is a 2nd step in the wizard) and when i click back, it goes to the first step and then clciking next from there, it comes to my gridtemplate page but now i don't have any of my selected values in the dropdownlist. they all point to the first value. how do i make them retain the selected value even if i travel across wizrds.

I've even done this in grid's databound event:
ddl.selectedindex =  e.item.selctedindex;(where ddl is the dropdownlist in the gridtemplate col).
but it does not work. pls do help me with code.
Thanks,
ZR
Mira
Telerik team
 answered on 11 Aug 2009
4 answers
433 views
Hi,

I am having hard time getting value of RadComboBoxes in RadGrid. Here is the Javascript that I tried to write. I also don't know how to get the index of the row.
Thanks for help.

 

function Validate(sender, args)

 

{

 

var DataItems = $find("<%=RadGrid3.ClientID %>").get_masterTableView().get_dataItems();

 

 

var index =??????????????????????

 

 

var cb1 = $telerik.findControl(DataItems[index].get_element(), "RadComboBox1");

 

 

var cb2 = $telerik.findControl(DataItems[index].get_element(), "RadComboBox2");

 

}

Tsvetoslav
Telerik team
 answered on 11 Aug 2009
3 answers
98 views
Hi,

I've created a RAD Grid user control using RAD Controls Q2 2009 release version with java scripts code on client-side. Then i just embed the user control in an aspx page which additionally holds ajax components. 

But while executing, the scripts on the user control were unavailable (throwing object not found error) during run-time. But the web page level scripts are available. 

Do i need to specify some properties to make the user control scripts available in the web page?

Please let me know.

Thanks
Pavlina
Telerik team
 answered on 11 Aug 2009
2 answers
592 views

When the grid runs in a german version of IE on a german version of the operating system, date columns show their dates using periods separating the day, month and year. What I really want is the format to be whatever I set it to be on the server using whatever regional setting applies to the user. The regional setting is independent of the browser's language or the language of the operating system. It is a web application setting specific for the user. Here is my code example:

DateTimeFormatInfo dateTimeFormat = new CultureInfo("en-us", false).DateTimeFormat;  
GridDateTimeColumn colSessionStartTime = this.RadGridSkillsData.Columns.FindByUniqueName("SessionStartTimeLocal") as GridDateTimeColumn;  
colSessionStartTime.DataFormatString = "{0:" + dateTimeFormat.ShortDatePattern + " " + dateTimeFormat.LongTimePattern + "}"; 

When I view what colSessionStartTime.DataFormatString is set to, it shows up as:

"{0:M/d/yyyy h:mm:ss tt}"

Yet the values that appear in the grid are showing periods rather than slashes for the date.

How can I get the date to format according to any culture code?

Johann

Daniel
Telerik team
 answered on 11 Aug 2009
3 answers
164 views
Hello Sir

I want to filter the radgrid column but it can give the error selection out of range when i m trying to add 2nd drop downlist search for 2nd column. It works when i add the dropdownlist for single column it will works fine , but in 2nd gives error .


<telerik:GridTemplateColumn HeaderText="Primary Product" DataField="ProdName" UniqueName="ProdName"
                                                                                AllowFiltering="true" AutoPostBackOnFilter="true">
                                                                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                                         
                                                                                <ItemTemplate>
                                                                                  <%# DataBinder.Eval(Container.DataItem,"ProdName") %>
                                                                                    <input type="hidden" id="hidPropID" runat="server" value='<%# DataBinder.Eval(Container.DataItem,"Proposal_ID")%>'
                                                                                        name="hidPropID" />
                                                                                    <input type="hidden" id="hidProposalGrpVal" runat="server" value='<%# DataBinder.Eval(Container.DataItem,"ProposalGrpVal")%>'
                                                                                        name="hidProposalGrpVal" />
                                                                                    <input type="hidden" id="hidChecked" runat="server" value='<%# DataBinder.Eval(Container.DataItem,"Checked")%>'
                                                                                        name="hidChecked" />
                                                                                </ItemTemplate>
                                                                             <FilterTemplate>
                                                                                    <telerik:RadComboBox ID="ddlPrimProd" Width="130" DataSourceID="Sqlprimprod" DataTextField="Name"
                                                                                        DataValueField="Name" Height="70" SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("Name").CurrentFilterValue %>'
                                                                                        runat="server" AppendDataBoundItems="True" Sort="Ascending" SortCaseSensitive="false"
                                                                                         MarkFirstMatch="true" Skin="Black" OnClientSelectedIndexChanged="ProdSelectedIndexChanged">
                                                                                        <Items>
                                                                                            <telerik:RadComboBoxItem Text="< Any Product >" />
                                                                                        </Items>
                                                                                    </telerik:RadComboBox>
                                                                                    <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">

                                                                                        <script type="text/javascript">
                                                                                            function ProdSelectedIndexChanged(sender,args) {
                                                                                            var tableView = $find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");
                                                                                                  if (sender.get_value() != "0")
                                                                                                   {                                                                                               
                                                                                                        tableView.filter("Name",args.get_item().get_value(),"EqualTo");
                                                                                                   }
                                                                                                else {
                                                                                                        tableView.filter("Name", args.get_item().get_value(), "NoFilter");
                                                                                                  }
                                                                                            }
                                                                                        </script>

                                                                                    </telerik:RadScriptBlock>
                                                                                </FilterTemplate></telerik:GridTemplateColumn>


<telerik:GridBoundColumn HeaderText="Crop" DataField="CropName" AllowFiltering="true"
                                                                                UniqueName="Name" AutoPostBackOnFilter="true" SortExpression="CropName">
                                                                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                                                                               
                                                                                <%--<ItemStyle Width="10%" />--%>
                                                                               <%--<FilterTemplate >
                                                                                <telerik:RadComboBox ID="ddlcrop" Width="130" DataTextField="CropName" ShowToggleImage ="false" EnableLoadOnDemand = "true"
                                                                                    DataValueField="CropName" runat="server" AppendDataBoundItems="true" markFirstMatch="true" Skin="Black"></telerik:RadComboBox>
                                                                                </FilterTemplate>--%>                  
                                                                                                                                                              
                                                                                <FilterTemplate>
                                                                                <telerik:RadComboBox ID="ddlcrop" Width="130" DataSourceID="SqlDataSource1" DataTextField="Name"
                                                                                    DataValueField="Name" Height="90" SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("Name").CurrentFilterValue %>'
                                                                                    runat="server" AppendDataBoundItems="true" OnClientSelectedIndexChanged="SelectedIndexChanged"
                                                                                    MarkFirstMatch="true" Skin="Black">
                                                                                    <Items>
                                                                                        <telerik:RadComboBoxItem Text=" <  Every  >" />
                                                                                    </Items>
                                                                                </telerik:RadComboBox>
                                                                                <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

                                                                                    <script type="text/javascript">
                                                                                            function SelectedIndexChanged(sender,args) {
                                                                                            var tableView = $find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");
                                                                                                  if (sender.get_value() != "0")
                                                                                                   {                                                                                                
                                                                                                        tableView.filter("Name",args.get_item().get_value(),"Contains");
                                                                                                   }
                                                                                                else {
                                                                                                        tableView.filter("Name", args.get_item().get_value(), "NoFilter");
                                                                                                  }
                                                                                            }
                                                                                    </script>

                                                                                </telerik:RadScriptBlock>
                                                                            </FilterTemplate>
                                                                            </telerik:GridBoundColumn>



It gives exception when page is postback

  dgProposals.DataBind()

I m confuse why it happen bcuz it works when i trying for single column it will filter out proper , but when i add the the combobox for another column it gives exception.


The datasources are different ;


<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:GoConnectionString %>"
        SelectCommand="SELECT [ID], [Name] FROM [Crop]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="sqlprimprod" runat="server" ConnectionString="<%$ ConnectionStrings:GoConnectionString %>"
        SelectCommand="SELECT [Name] FROM [QryProdTN] ORDER BY [Name]"></asp:SqlDataSource>


Help Me urgent sir, Its very urgnet need
Pavlina
Telerik team
 answered on 11 Aug 2009
1 answer
53 views

Hello,

 

I have a small problem with using Telerik Ajax in a dynamically loaded uses control.

In the beginning the page had 3 user controls with Ajax and all of them were loaded at runtime. Everything was working as expected. The main page had a RadAjax Manager and the user controls had RadAjax Manager Proxy controls on them.

 

After implementing the user control loading thru Ajax based on this http://www.telerik.com/help/aspnet/ajax/ajxloadusercontrols.html. There were no more changes to the main page.

Now when I click on a control inside user control that should update something in the same user control with the help of Ajax my entire user control just disappears from the page completely without any errors, or execution of the code in the user control.

What have I forgotten to add/modify in the page to make it work?

Thank you for your time

Pavlina
Telerik team
 answered on 11 Aug 2009
1 answer
67 views
I have seen that many bug fixes and improvements are available with the internal builds of the RadControls for ASP.NET AJAX Q2 2009 suite. Is any offical release (Q3 or just a service pack) planned for the near future?

Thanks
Martin
Svetlina Anati
Telerik team
 answered on 11 Aug 2009
5 answers
406 views
Hi

I want to use the power of the TimeZoneOffset property on the radscheduler.
I have looked at the examples in the online demos and the programming pages and the example given shows a radscheduler with a dropdown populated with GMT +1 +2 etc etc.

Changing the value in the dropdown causes an ajax postback to get the new appointment items adjusted to the localized times.

My need is much simpler nut I can't quite seem to get it to work. I don't want the dropdown for the user. All I need is that if say a user puts in say a telephone conference at 18:00 uk time when a user in New York looks at the scheduler it shows it at 13:00. So all the code would seem to have to do somewhere once it has detected it's a request from a New york user is something like this.

int

hoursOffset = -5;
RadScheduler1.TimeZoneOffset =
TimeSpan.Parse(hoursOffset.ToString());

Is this correct and where do I put such code? I've tried it on a little test project in onload but it doesn't seem to have any effect on the appointment times.

Thanks

Gary

Peter
Telerik team
 answered on 11 Aug 2009
2 answers
131 views
Hi There,

Could you tell me where I find the Text properties for the text: "Page Size:" in RadGrid footer ?

Thanks.

Marcio Nascimento
Marcio Nascimento
Top achievements
Rank 1
 answered on 11 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?