Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
199 views
i would like to add asp:textbox in radmenu as an item so when the user click on the menu, it popup a search box with autocomplete enable. please help thanks.
Paul
Telerik team
 answered on 26 Jun 2009
3 answers
98 views
Good afternoon Team Telerik.

I have a problem when change the page in Grid databing with Webservices Technique:

When select a row and change the page, the grid keep the row selected previusly.  I search for all events and clients events for deselected it but I don´t find any method for this at .ASPX.VB or ASPX. Can You Help me??


Juan Pablo Díaz
Rentabyte Ltda.

I need this urgently, Thanks!
Sebastian
Telerik team
 answered on 26 Jun 2009
2 answers
62 views

Hi,

I got the lastest Telrik version few days ago and everything was fine until then. When you click on 12AM on a weekview or dayview, gives me the same date, but time as 8AM. It increments by 8 until 4PM. From 4 PM it gives me the next date and time starts at 12 AM.  Here is my code.

Thanks in advance,
AM

<

 

telerik:radscheduler id="RadScheduler1" runat="server" datakeyfield="ID"

 

 

DataSubjectField="Subject" DataStartField="StartDate" DataEndField="EndDate"

 

 

DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID"

 

 

starteditinginadvancedform="False"

 

 

daystarttime="00:00:00" dayendtime="23:59:59"

 

 

overflowbehavior="Expand" width="100%" OnClientTimeSlotClick="OnClientTimeSlotClick"

 

 

ShowNavigationPane="True" skin="Knotice"

 

 

TimeZoneOffset="00:00:00" DisplayDeleteConfirmation="false" ShowFooter="false"

 

 

EnableDatePicker="true"

 

 

OnClientAppointmentClick="OnClientAppointmentClick"

 

 

EnableEmbeddedSkins="false"

 

 

>

 

 

</telerik:radscheduler>

 

 

function OnClientTimeSlotClick(sender, eventArgs) {

 

 

var start = formatDate(eventArgs.get_time());

 

DisplayAppointmentDialog(-1, start);

}

 

function

 

formatDate(date) {

 

 

 

var year = padNumber(date.getFullYear(), 4);

 

 

var month = padNumber(date.getMonth() + 1, 2);

 

 

var day = padNumber(date.getDate(), 2);

 

 

var hour = padNumber(date.getHours(), 2);

 

 

var minute = padNumber(date.getMinutes(), 2);

 

 

 

return year + month + day + hour + minute;

 

}

AM
Top achievements
Rank 1
 answered on 26 Jun 2009
1 answer
85 views
I am having trouble with the Upload button on a page not always reacting to a click.  It appears to be somewhat out of sync with the button on the page.  It is hard to describe but the bahvior is that users click the Select button to browse to a file but it doesn't always work.

<telerik:RadUpload ID="RadUpload1" runat="server" InputSize="80" Width="650px" MaxFileInputsCount="5"   
                        ControlObjectsVisibility="addbutton,removebuttons" Localization-Add="More Files" Skin="Vista">  
                    </telerik:RadUpload>      
Paul
Telerik team
 answered on 26 Jun 2009
1 answer
125 views
i would like to add asp:textbox in radmenu as an item so when the user click on the menu, it popup a search box with autocomplete enable. please help thanks.
Peter
Telerik team
 answered on 26 Jun 2009
3 answers
97 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
147 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
166 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
56 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
620 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?