Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
102 views
Hello all,

Is it possible to add a timepicker control using javascript (client side)?
I saw some examples using placeholders but didn't quite understood what needs to be done and if it is possible.

Regards,
T.
Schlurk
Top achievements
Rank 2
 answered on 02 Sep 2009
5 answers
452 views
Hi,

            Im having Gird, Textbox and a search button in the form. User has to enter the value into the textbox and upon clicking the button, ive to show the records that matches the text from textbox in Radgrid. I've used the following code to accomplish the task.

protected

 

void imgSearch_Click(object sender, EventArgs e)

 

{

    Grd1.EnableLinqExpressions =

false;

 

 

    string l_filer = string.Empty;

 

 

    if (!String.IsNullOrEmpty(txtName.Text.Trim()))

 

        l_filer =

"name LIKE '" + txtName.Text.Trim() + "'";

 

 

    else

 

        l_filer =

"1 = 1 ";

 

    GrdUDF.MasterTableView.FilterExpression =

"(" + l_filer + ")";

 

    GrdUDF.Rebind();

}

Here the problem is, when I give the exact word in the textbox, it will give me the result. but I want to search the records using "Contains". say for example, If I'm giving "D" in textbox, it should show the list of records, that contains "D". if nothing I there, then I've to show all the records in the grid.

I dont know, where I slipped. any help????
thanks in advance,
Prabhu KS

Prabhu
Top achievements
Rank 2
 answered on 02 Sep 2009
5 answers
135 views
Hi,

I have a radgrid displaying pivot data so the grid is auto generated.  what I want to do is replace the some of the cells with textboxes (with the cell value in it) I dont need to use the grid commands to process the updates I just need it so say the last 6 cells are editable I can then have a seperate "Apply" button where I can find the values from the server.

I have tried using the Onitemcreated and changing the flag to e.item.edit = true with the grid set to use inline edit but it always generates a edit form

any suggestions?

Thanks

Paul
Top achievements
Rank 1
 answered on 02 Sep 2009
3 answers
133 views
I am using need_datasource function to bind my grid:

void grdFinancialPeriods_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
    { 
        BindGrid(); 
    } 
private void BindGrid() 
    { 
        int count = 0; 
 
        FinancialPeriodManagerClient service = new FinancialPeriodManagerClient(); 
        grdFinancialPeriods.MasterTableView.FilterExpression = string.Empty; 
        Prd[] list = service.GetAllFinancialPeriods(out count, grdFinancialPeriods.PageSize, 
            grdFinancialPeriods.MasterTableView.CurrentPageIndex * grdFinancialPeriods.PageSize, 
           (Behsaman.FilterItemList)Session["filterItemList"], 
           (SortItem)Session["SortExpression"]); 
 
        grdFinancialPeriods.DataSource = list; 
        grdFinancialPeriods.VirtualItemCount = count; 
        grdFinancialPeriods.DataBind(); 
        service.Close(); 
         
    } 

and service function is :

public List<Prd> GetAllFinancialPeriods(int maximumRows, int startRowIndex, 
            FilterItemList filterItemList, SortItem sortItem, out int count) 
        { 
            var query = (from prd in Generals.Db.Prds 
                         select prd); 
 
            query = GetFilterQuery(query, filterItemList); 
            query = GetSortQuery(query, sortItem); 
            count = query.Count(); 
            return query.Skip(startRowIndex).Take(maximumRows).ToList().Deserialize<Prd>(); 
        } 


when I group a column just current page grouped, How can I group all data?
Tsvetoslav
Telerik team
 answered on 02 Sep 2009
1 answer
183 views
Hello,

I am using RadUpload in a ascx page in a DNN module. The same code works perfectly fine in a aspx page. I have registered RadUpload and RadProgressManager in the config file.

<httpModules>
.
.
.
<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
</httpModules>

<httpHandlers>
.
.
.
<add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" validate="false" />
</httpHandlers>

<modules>
.
.
.
<add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2" />
</modules>

<handlers>
.
.
      <add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0" /></handlers>
--------------------------------------------------------------
In the properties window, beneath the "ID" property of RadUpload, there is a property "IsUploadModuleRegistered" appearing and the value of it is "Object reference not set to an instance of an object". So, I am sure that there is some problem in the config file. I don't know what that is. Please provide me your suggestions.

Thank you,
Deepa


Schlurk
Top achievements
Rank 2
 answered on 02 Sep 2009
3 answers
124 views
How can i find the lenght of the file client side.
I am using only radupload not rad progress area and progress manager.

let me know how can i restrict user to not upload file having size 0  by client side script.
i do not want to hit server for this task.
i want to check it client side.
plz suggest me some logic for this
Schlurk
Top achievements
Rank 2
 answered on 02 Sep 2009
6 answers
325 views
Hi,

I'm using the RadDatePicker object for its client side functionality but not interested in the server side. I have it on a page where ViewState is switched off, being created dynamically inside a repeater.

Once a form is submitted successfully, I want the entire form cleared so that another new record can be added. However I am hitting a problem with DatePicker, DateTimePicker, and TimePicker that I cannot seem to resolve.

Here is the code I am using to create the object (there is a placeholder inside a Repeater item and this is being called at Repeater_OnItemDataBound)

private void DoDatePicker(FormColumn column, PlaceHolder ph)
        {
            var picker = new RadDatePicker {ID = column.FieldName};
            
            ph.Controls.AddAt(0, picker);
            picker.Clear();
        }

I've tried putting the picker.Clear() before and after the AddAt statement but regardless of what I set, the date from the previous form is still being displayed. I've also tried picker.SelectedDate = null, that didn't work either.

What do I need to do to clear the previous date, short of hacking into HttpContext.Current.Request and deleting all the form values connected to the Date/TimePicker?

Thanks for any assistance.
Phil
Top achievements
Rank 1
 answered on 02 Sep 2009
18 answers
525 views
Hi.


My RadProgressArea doesn't show.
I have my Radupload Working fine but when i click on the "upload" button, it's just doing a postback.

I work on localhost with a file of 50mb.
The file is updated without problem, but no Progress Bar visible.
Tgaud
Top achievements
Rank 1
 answered on 02 Sep 2009
1 answer
118 views
Hi,

Is it possible to map a single DataTextField to multiple DataFieldParentIDs? I have a MenuItems table that contains MenuItems and a MenuToMenuItemsExtension table which maps MenuItemIDs to ParentItemIds. MenuItems that are the same (same text, same link, etc.) can be mapped to multiple parents, ending the need to duplicate MenuItems in the MenuItems table.

Thanks, -Scott
Atanas Korchev
Telerik team
 answered on 02 Sep 2009
1 answer
64 views
Hi Team,

I have one project using rotator from codebdhind. All work fine in FF, Chrome, Safari but in IE8 my rotator scroll 2 times and no more.

<SCRIPT language=javascript type=text/javascript>var intervalID = setInterval('MasterItemShowing();', 10000);function MasterItemShowing(){$find('Vitrinas_RadRotator1').showNext(Telerik.Web.UI.RotatorScrollDirection.Up);}function ClientItemShowing(slider,args){    $find('Vitrinas_RadRotator2').showNext(slider.get_animationDirection());}</SCRIPT> 

Page

<

 

body style="overflow-x:hidden;">

 

<

 

form runat="server">

 

<

 

asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

 

<

 

div id="global" runat="server">

 

<

 

uc1:rotator id="Vitrinas" runat="server"></uc1:rotator>

 

</

 

div>


UC

 

HtmlGenericControl divrot = new HtmlGenericControl();  
                divrot.ID = "idrot"+i;  
                divrot.Style.Add("float","left");  
                RadRotator Rot = new RadRotator();  
                int nu = i + 1;  
                Rot.ID = "RadRotator" + nu;  
                RotClientID.Add(Rot.ClientID);  
                Rot.Width =Unit.Pixel(rotateWidth);  
                Rot.Height =Unit.Pixel(rotateHeight);  
                Rot.ScrollDirection = RotatorScrollDirection.Left; 
                Rot.WrapFrames = true;  
                Rot.RotatorType = RotatorType.FromCode; 
                Rot.SlideShowAnimation.Type = Telerik.Web.UI.Rotator.AnimationType.Fade;
                Rot.ItemWidth = Unit.Pixel(rotateWidth);  
                Rot.ItemHeight = Unit.Pixel(rotateHeight);  
                Rot.ItemTemplate =new RotatorTemplate();  
                Rot.DataSource = listRotator;//DataSource
Some solution?

regards

Fiko
Telerik team
 answered on 02 Sep 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?