Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
168 views
I'm using Jquery qtip for my tooltips, I have it set to "prettify" the tooltips specified in all title attributes. This works fine with most Telerik controls, but with the rating control, I get double tooltips. One is the pretty qtip, but on top of it appears a second "ugly" tooltip, unprocessed by qtip. I've included a screenshot. I'm just wondering how the default rating items are rendered, do the images get an "alt" tag that might be causing this? Any ideas on how I might get around this?

Thanks

Ross Crawford
Lucania
Top achievements
Rank 1
 answered on 06 Mar 2012
4 answers
83 views
Hi

I'm using the following code to hide all options apart from Daily and Weekly, which is works fine.
$(".rsRecurrenceOptionList").children().each(function (i) {
if (i < 1 || i > 2)
$(this).hide();
});

I now want to have the Daily option checked by default, so added the line of code below, but can't seem to get it working.
$(".rsRecurrenceOptionList li:eq(1) span input").attr("checked", "checked");

Can you please help.

Thanks, Ben
Ben
Top achievements
Rank 1
 answered on 05 Mar 2012
6 answers
300 views
I am using RadCompression but run into problems when I use an axd file to deliver a file (a file download handler). The RadCompression feature always compress this handler and corrupts the file. Is there a way we can configure the behavior of the RadCompression engine in the web.config file. e.g.:

    <Telerik> 
        <RadCompression compressionType="GZip"
            <IncludedMimeTypes> 
                <add mime="text/html" /> 
            </IncludedMimeTypes> 
            <!--<ExcludedMimeTypes> 
                <add mime="text/html" /> 
              </ExcludedMimeTypes>--> 
            <ExcludedPaths> 
                <add path="~/download.axd" /> 
            </ExcludedPaths> 
        </RadCompression> 
    </Telerik> 

Without this capability, I believe this will break many scripts.

UPDATE: it seems to be Firefox 3 specific issue...
msigman
Top achievements
Rank 2
 answered on 05 Mar 2012
8 answers
539 views
Hello,

   I work on a project in which I have a radgrid on the main page. On this radgrid a've activated the filter & sort commands. What I would like to do, is to preserve somewhere (in session, viewstate, etc) the state of the filter columns & sort columns (If the user has put some filters, or if the user has sorted the grid by some columns) so when in the future I'll be back on the main page, to put them (the filters & the sort columns) back.
   Can this be done?

Have a nice day,
Catalin
Simone
Top achievements
Rank 1
 answered on 05 Mar 2012
5 answers
171 views
For some reason, a lot of things appear to be broken using the custom file provider option after upgrading to Q1. I'm using the Custom File Provider that was created by Telerik as an example of how to reference network shares. I'm not sure if it changed with the most recent update, but I know it doesn't work anymore with Q1.

When I attempt to copy a file, I get a permissions error. When I attempt to rename a file, I get a permissions error. I looked at the code a bit and noticed some odd changes. In the GetPath function, it used to pass in the virtual path, but with the update, it's been passing in an empty string. This appears to be the cause of the permissions errors since the path isn't valid.

Is something broken, or was a breaking change released that I'm going to have work around. I didn't see anything in the release notes.

Thanks,
Adam
David
Top achievements
Rank 2
 answered on 05 Mar 2012
1 answer
249 views
I have a grid with a varchar(255). When displaying the grid, none of the values are even close to 255 characters But I am getting this error.  Any ideas as to why?
This is happening on Parent_NeedDataSource
Rusty
Top achievements
Rank 1
 answered on 05 Mar 2012
2 answers
369 views
I was referencing this post earlier: http://www.telerik.com/community/forums/aspnet/grid/radgrid-bind-dropdownlist-after-edit-mode.aspx. The problem with that is my grid item is never of type GridEditFormItem. Here's my method and template code.  How can I find and bind the DDL during edit mode of the row?

protected void MyAccountsGrid_ItemDataBound(object sender, GridItemEventArgs e)
 {
  if (e.Item.IsInEditMode)
  {
    // find the template control
  }
}

<telerik:RadGrid ID="MyAccountsGrid" AllowSorting="true" runat="server" AllowPaging="true" PageSize="20"
  AllowMultiRowSelection="true" AllowFilteringByColumn="true" EnableLinqExpressions="true" AllowAutomaticInserts="false" OnItemDataBound="MyAccountsGrid_ItemDataBound">
  <MasterTableView TableLayout="Auto" AutoGenerateColumns="false"
    AllowFilteringByColumn="true" CommandItemDisplay="Top"
    EditMode="InPlace" ClientDataKeyNames="Id,AccountNumber">
     
    <CommandItemSettings ShowAddNewRecordButton="true" AddNewRecordText="Add" />
      <telerik:GridTemplateColumn HeaderText="MyDDL" UniqueName="MyDDL">
        <HeaderTemplate>
          MyDDL
        </HeaderTemplate>
        <ItemTemplate>
          <%# Eval("AccountType") %>
        </ItemTemplate>
        <EditItemTemplate>
          <asp:DropDownList ID="accountTypeDDL" runat="server"></asp:DropDownList>
        </EditItemTemplate>
      </telerik:GridTemplateColumn>

Ryan
Top achievements
Rank 1
 answered on 05 Mar 2012
6 answers
610 views

Hi ,

I can't seem to bind the source from my datatable. It is not showing anything.

protected void grdDmnDocFolder_NeedDataSource(object o, GridNeedDataSourceEventArgs e)
    {
      DataTable dt = new DataTable();
  
  
      dt.Columns.Add("aaa");
      dt.Columns.Add("ccc");
      dt.Columns.Add("bbb");
  
      DataRow dr = dt.NewRow();
      dr["aaa"] = "a";
      dr["bbb"] = "b";
      dr["ccc"] = "c";
  
      dt.Rows.Add(dr);
      dt.Rows.Add(dr);
      dt.Rows.Add(dr);
      dt.Rows.Add(dr);
  
      grdDmnDocFolder.DataSource = dt;
  
    }

On my aspx page, i already set my OnNeedDataSource event as grdDmnDocFolder_NeedDataSource. What i'm trying to do here is just creating dummy records. What am i missing?

Please help.

Thank you.

Regards,
Dexter
Tsvetina
Telerik team
 answered on 05 Mar 2012
2 answers
103 views
Hi,
I am having issue accessing radwindow object. I am trying access it during radgrid_itemcommandobject.
My javascript function - as shown in the code below - "ShowDutyWindowClient" fails when it tries to get the radwindowmanager. Radwindowmanger object returns null.
I would appreciate help with this.

Thanks,
Manisha

Here is my code
//Usercontrol – codebehind
  
  
protected void rgDuty_ItemCommand(object source, GridCommandEventArgs e)
   {
            switch (e.CommandName)
            {
                case RadGrid.InitInsertCommandName:
                    e.Canceled =true;
                    long positionDescriptionID = CurrentPDID;
                    script = string.Format("ShowDutyWindowClient('{0}','{1}');", "Insert", positionDescriptionID);
    ScriptManager.RegisterStartupScript (this,this.GetType (),"showdutywindowClient" ,script,true  );
                    break;
                      
              case RadGrid.EditCommandName :
                    e.Canceled = true;
                    gridItem = e.Item as GridDataItem;
                    int dutyID = int.Parse(gridItem.GetDataKeyValue("DutyID").ToString());
                    script = string.Format("ShowDutyWindowClient('{0}','{1}');", "Edit", dutyID);
     ScriptManager.RegisterStartupScript (this,this.GetType (),"showdutywindowClient" ,script,true  );
                    break; 
 default:
                    RGQualEnabled = true;
                    break;
            }
        }
}
              
  
//UserControl Design 
<telerik:RadWindowManager ID="radWindowManagerDuties" runat="server" Behavior="Default"
    InitialBehavior="None" RegisterWithScriptManager="true">
    <Windows>
        <telerik:RadWindow ID="rwPDDuties" runat="server" RegisterWithScriptManager="true" 
        Skin="WebBlue" Height="600" Width="600" Behaviors="Close" VisibleStatusbar="false"
        ReloadOnShow="true">
        </telerik:RadWindow>
    </Windows>    
</telerik:RadWindowManager>
  
<telerik:RadCodeBlock ID="rcbCodeBlock" runat="server">
<script type="text/javascript">
 function ShowDutyWindowClient(mode, id) {
            var navigateurl;
            var title;
             
            if (mode == "Insert") {
                navigateurl = "~/CreatePD/AddEditDuty.aspx?mode=Insert&PositionDescriptionID=" + id;
                title = "Add Duty";
            }
            else {
                navigateurl = "~/CreatePD/AddEditDutyContent.aspx?mode=Update&DutyID=" + id;
                title = "Edit Duty";
            }
  
            var oWnd = radopen(navigateurl, "rwPDDuties");
        }            
  
  </script>
  
</telerik:RadCodeBlock>
Manisha Shivjiani
Top achievements
Rank 1
 answered on 05 Mar 2012
1 answer
160 views
Hello all!

I am getting a rather frustrating error with the RadAsyncUpload control.  When I attempt to set the TargetFolder and TemporaryFolder I am getting a "Object reference not set to an instance of an object" error.  It would seem that I am unable to dynamically set these folders.  I have tried setting them from server-side, as well as client-side using <%=strAsyncUploadFolder%>.  When I attempt to set it from client-side I get an error that says there are invalid characters within the path.  Any assitance with this would be very much appreciated.  We have several layers where the code exists (ie - local, QA and Production) and I would hate to have to keep changing static paths within the page rather than using nice and neat settings in the web.config file.

I have attached a screen-shot of the error I am getting, if it helps.
Eric
Top achievements
Rank 1
 answered on 05 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?