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

I have implemented a radRotator to display 'news feeds' across the top of the page. this is loading and displaying data correctly from the database. We have also implemented a RadPanelBar which has 3 levels. some items will open a page, and some items will expand the panelbar to display the sub items.

Upon clicking the panelbar which expands to display the sub items (no postback) the radRotator scroll speed keeps on increasing. it increases to a point where it is no longer readable and zooms across the screen.
OnClientItemClicked of the RadPanelBar i have created a simple function as suggested in one of the threads to re-set the rotator speed. However, this does not fix the issue. Any suggestions?

 function SetRotatorSpeed() {
            var rotatorElement = document.getElementById("<%= radRotTickerText.ClientID %>" + "_Div"); 
            if (rotatorElement != null) {
                rotatorElement.set_scrollDuration = 30;
                rotatorElement.set_tickSpeed = 30;
                               
            }
        }

 <rad:RadRotator ScrollDirection="left" ScrollSpeed="30"
                                    UseSmoothScroll="false" FrameTimeout="0" Height="25px"
                                    TransitionType="scroll" FramesToShow="1" ID="radRotTickerText"
                                    Width="100%" runat="server"  >
                                    <FrameTemplate>
                                        <table cellpadding="0" cellspacing="3" border="0">
                                            <tr>                                            
                                                <td class="Change" style="white-space:nowrap; ">
                                                    <%#DataBinder.Eval(Container.DataItem, "[TickerText]")%>
                                                </td>
                                            </tr>
                                        </table>
                                    </FrameTemplate>
                                </rad:RadRotator>
Fiko
Telerik team
 answered on 26 Jun 2009
1 answer
148 views
Hello, I had a radgrid it has imagebutton some column. All columns created codebehind. Each imageButton has a file that downloadable by response.writefile() method. Method is running perfectly. But, when I click that buttons, page is not postback. therefore,  I am clicking image button, then I clicked radgrid pager button, page is postbacking, but It is not running first click.
I am Binding form in Page_Load,
 if(!Page.IsPostBack)
 {
    BindGrid()
 }

clause.
If i BindGrid every Page_Load (No, if(!Page.IsPostBack) clause), this time response.WriteFile() method not running.

I used javascript hidden field, session but they are not resolve my problem. (Because respons.WriteFile() is not  render the page.)


firatbaran
Top achievements
Rank 1
 answered on 26 Jun 2009
1 answer
174 views
Hi All,

Not right to left, But how to align the items to the right?

TIA

Jerry


Paul
Telerik team
 answered on 26 Jun 2009
0 answers
59 views
Im have a problem while adding items in combobox at clientside when records are near upto 10000, script execution error occurs and limited items are only added and not full 10000 are added,is there any limiation for no. of records that can be added at cleint side in combobox.
 Can someone please provide solution..
Gitanjali
Top achievements
Rank 1
 asked on 26 Jun 2009
1 answer
630 views

I have a RadGrid with google like filtering working on it. I am creating all the columns based on the columns returned in a DataSet.. so no binding in my ASCX. I want to save the value from the filter in a cookie so that the user doesnt have to filter it on the next visit. I have tried to implement the grdsavingsettingsonperuserbasis.html code but the problem is where to save the filter in a cookie? The google like filtering is in a RadGrid class file which extends some RadGrid methods and you cannot set/access cookies from there. I am pasting my code to better understand that.

Thanks in advance,
Saqib

ASCX:

 

<

 

radG:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" AllowPaging="True"  

 

AllowSorting="True" AllowFilteringByColumn="True"  

 

OnNeedDataSource="RadGrid1_NeedDataSource" OnColumnCreating="RadGrid1_ColumnCreating" OnItemCommand="RadGrid1_ItemCommand" 

 

OnItemDataBound="RadGrid1_ItemDataBound">  

 

<MasterTableView EditMode="InPlace" DataKeyNames="SubmitId" AllowFilteringByColumn="True" AllowMultiColumnSorting="true" /> 

 

<PagerStyle Mode="NextPrevAndNumeric" />
<Columns> 

 

</Columns>  

 

 

 

</radG:RadGrid> 

 

 

C# Code Behind:

 

public

 

partial class QueueGoogleLikeFiltering : PortalModuleControl 

 

{ 

 

 

 

DataSet ds; 

 

 

#region

Page Init  

 

 

 

protected void Page_Init(object sender, EventArgs e)

{ 

 

string str = this.RadGrid1.MasterTableView.FilterExpression;

 

 

GridSettingsPersister settings = new GridSettingsPersister(RadGrid1);  

 

if (Request.Cookies["RadGrid1Settings"] != null)

{
settings.LoadSettings(

Convert.ToString(Request.Cookies["RadGrid1Settings"]["Data"]));  

 

 

}

}

 

 

#endregion

#region

Page Load  

 

 

protected void Page_Load(object sender, System.EventArgs e)

{ 

 

try

{ 

 

if (!IsPostBack)

{

SetPanels(

Panels.Grid);  

 

 

ds = GetDataSet(); 

 

 

this.RadGrid1.MasterTableView.Columns.Clear(); 

 

 

//Add Submit Id button to the Grid  

 

 

GridButtonColumn gridButtonColumn = new GridButtonColumn();

 

RadGrid1.MasterTableView.Columns.Add(gridButtonColumn);

RadGrid1.MasterTableView.Columns.Add(

 

new GridButtonColumn());

 

gridButtonColumn.UniqueName =

"SubmitId";  

 

 

gridButtonColumn.DataTextField =

"SubmitId";  

 

 

gridButtonColumn.HeaderText =

"SubmitId";  

 

 

gridButtonColumn.DataType =

typeof(int);  

 

 

gridButtonColumn.SortExpression =

"SubmitId";  

 

 

gridButtonColumn.ShowSortIcon =

true;

 

 

 

gridButtonColumn.CommandArgument = ds.Tables[0].Columns[

"SubmitId"].ToString();

 

 

gridButtonColumn.CommandName = "

processForm";

 

 

 

 

 

 

 

foreach (DataColumn dataColumn in ds.Tables[0].Columns)

{ 

 

if (dataColumn.ColumnName != "SubmitId" && dataColumn.ColumnName != "Locked")

{

RadGrid.

MyCustomFilteringColumnCS gridColumn = new RadGrid.MyCustomFilteringColumnCS();  

 

 

 

this.RadGrid1.MasterTableView.Columns.Add(gridColumn);

 

gridColumn.DataField = dataColumn.ColumnName;

gridColumn.HeaderText = dataColumn.ColumnName;

}

}

}

}

 

 

catch (Exception ex)

{

lblMessage.Text =

"PageLoad() " + ex.Message;  

 

 

}

}

 

 

#endregion

#region

Grid Bind DataSource Event 

 

 

protected void RadGrid1_NeedDataSource(object source, Telerik.WebControls.GridNeedDataSourceEventArgs e)

 {

ds = GetDataSet(); 

 

this.RadGrid1.DataSource = ds;  

}

 

 

#endregion

#region

Grid Item Data Bound Event  

 

 

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)

{ 

 

try

 { 

 

if (e.Item is GridDataItem)

 { 

 

GridDataItem item = (GridDataItem)e.Item;

 

(item[

"SubmitId"].Controls[0] as LinkButton).CommandArgument = item.GetDataKeyValue("SubmitId").ToString();

 

 

}

}

 

 

 

catch (Exception ex)  

{

lblMessage.Text =

"RadGrid1_ItemDataBound() " + ex.Message;

 

 

}

}

 

 

 

 

#endregion

#region

Grid Column Creating Event  

 

 

 

protected void RadGrid1_ColumnCreating(object sender, Telerik.WebControls.GridColumnCreatingEventArgs e)

{ 

 

try

{

 

if (e.ColumnType == typeof(RadGrid.MyCustomFilteringColumnCS).Name)

{

e.Column =

new RadGrid.MyCustomFilteringColumnCS();

 

 

}

}

 

 

 

catch (Exception ex)  

{

lblMessage.Text =

"RadGrid1_ColumnCreating() " + ex.Message;

 

 

}

}

 

 

#endregion

MyCustomeFilteringColumnCS.cs is the same as described in the Google Like Filtering example.


GridSettingsPersister.cs is the same as described in grdsavingsettingsonperuserbasis.html example.

Any help would be appreciated.

Tsvetoslav
Telerik team
 answered on 26 Jun 2009
2 answers
500 views
Good Afternoon.

I realize there are a large number of threads on similar topics. However, none of the solutions I was able to find have worked.

I am given a list of structs from a function that accesses a database. The structs hold the absolute url path to a web site (potentially to an external site) and the desired text value of the link.  I use the information in this list to construct a string that holds the xml needed to render the rad menu control.  I do this so I can store the string as a session variable so I only need to access the database once.  I then bind the menu to the string:

                string linkMenuXML = Session["quicklinkXML"].ToString();
                LinksMenu.LoadXml(linkMenuXML);

The menu builds just fine but the urls are all relative. 

                 example: NavigateUrl = "www.telerik.com" but the href="http://localhost:5011/www.telerik.com"

I tried using the HrefBaseDir property with no luck.  Am I missing something?  The threads that give the HrefBaseDir property as a solution are all 3 years old or older from what I found.  Is there an updated propery I should use?  The following is an example fuction that builds the linkMenuXML string:



private string getLinksXmlString()
        {
            List<Links> LinksList = new List<Links>();
            string xmlString = "<?xml version=\"1.0\" encoding=\"utf-8\" ?><Menu EnableEmbeddedSkins=\"false\" HrefBaseDir=\"\" Skin=\"NavBarSkin\" EnableScreenBoundaryDetection=\"false\"><Group><Item Text=\"Links\"><Group Flow=\"Vertical\">";

            //putting stuff in the list
            for (int i = 0; i < 10; i++)
            {
                Links temp = new Links();
                temp.Name = "Link Number " + i.ToString();
                temp.NavigateUrl = "www.telerik.com";
                LinksList.Add(temp);
            }

            foreach (Link link in LinksList)
            {
                xmlString += "<Item Text=\"" + link.Name + "\" HrefBaseDir=\"\" NavigateUrl=\"" + link.NavigateUrl + "\"></Item>";
            }

            xmlString += "</Group></Item></Group></Menu>";

            return xmlString;

        }

Thank you in advance for any help you can provide!

Riley Griffin
Top achievements
Rank 1
 answered on 26 Jun 2009
1 answer
64 views
Hello,

i have the following problem with a RadGrid and RadComboBoxes in two template columns. If i choose the WebBlue Skin for all controls and use the RadGrid NextPrevAndNumeric Pager the RadComboBoxes and the pagesize radcombobox have no skin with no script working. I have solved this problem by using the NextPrevNumericAndAdvanced Pager.
Pavlina
Telerik team
 answered on 26 Jun 2009
1 answer
69 views
Hello all, sorry to ask for such a seeminly simple demo, but I am stumped with jquery and how I could go about creating a page that had a block of text (<div id="documentbody">) that I could click on and fire a RadEditor and edit the text.

I have seen the FCKeditor and others do it but I am unsure of how I can do this with the RadEditor.

Any links, info, suggestions would be appreciated.

Rumen
Telerik team
 answered on 26 Jun 2009
1 answer
95 views
I have an interesting scenario, which comes to play on PCs with small resolution.
I have 3 RadDockZones, and the content is placed within the first two.
I also have a RadToolbar which extands 100%.
However when user drag and drops it to the 3rd column, the width of the toolbar does not extand to fill up the now created white space. The only way I was able to fix it, but that is not the solution is to set the width to let's say 120%.
So is there a way, to extand/shrink the RadToolBar based on the drag and dropping that is taking place? Thanks.
Pero
Telerik team
 answered on 26 Jun 2009
1 answer
83 views
Hello,

I was able to enter "1 month ago" in the date field and the system translated the date to "6/1/2009". If I enter "2 days ago" it translated it to "6/20/2009." It seems as long as the first characters of the value entered is numeric the system translates that into a the particular date. Interestingly, if I enter "32 days ago", it translates that into "6/23/1932". To me this should be a classfied as bug since the control should not accept dates that includes this wide range of alpha characters. I use this control throughout my app and having to write handlers to trap this each time would be a great burden.

David
Nikolay Rusev
Telerik team
 answered on 26 Jun 2009
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?