Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
189 views
i have placed one rad grid with the following settings in my app.

<telerik:RadGrid ID="rgAppSearch" EnableEmbeddedSkins="false" ShowHeader="true" AllowFilteringByColumn="true"
        EnableLinqExpressions="true"
        AutoGenerateColumns="False" Skin="Default" PageSize="10"
        AllowSorting="True" GridLines="None" runat="server" AllowPaging="true">
<PagerStyle AlwaysVisible="true"  />
</telerik:RadGrid >

everything is working fine but when i hover the mouse in the footer it showing the text "Next","Previous". how to hide this in pager template.
sudhesh
Top achievements
Rank 1
 answered on 31 Jan 2012
1 answer
695 views
I need to always display 4 decimal places in my numeric textbox. I've set DecimalDigits = 4 and set Keep Trailing Zeros to True, but when control loses focus, the trailing zeros disappear. What do I need to set to always show 4 decimal places (with trailing zeros if needed)?

Here is my code:

<telerik:RadNumericTextBox runat="server" ID="Longitude" Width="75" EmptyMessage="Lon" Skin="Vista"
        AllowOutOfRangeAutoCorrect="False" MaxValue="0" DataType="System.Decimal"
        EnableSingleInputRendering="True">
   <NumberFormat AllowRounding="False" DecimalDigits="4" KeepNotRoundedValue="True"
           KeepTrailingZerosOnFocus="True"  />
</telerik:RadNumericTextBox>

Shinu
Top achievements
Rank 2
 answered on 31 Jan 2012
3 answers
132 views
Hello,

In the Asp.Net Grid view control I would add three attributes that would allow the row to change color when highlighted and when a row was clicked on it would call the gridview_rowcomand event.

I would like to be able to do this in the RadGrid. Here is what I have so far:

 protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)  
        {  
 
            if (e.Item is GridDataItem )  
            {  
 
 
                e.Item.Attributes.Add("onmouseover", "this.style.backgroundColor='Silver'");  
                e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor='#FFF'");     
                e.Item.Attributes["onclick"] = Page.ClientScript.GetPostBackClientHyperlink(this.RadGrid1, "Select$" + e.Item.ItemIndex,true);  
 
 
            }  
 
 
        } 

When I click on the row a post back fires but the Item_Command event is never called. How can I make this work? Here what I want to do:

1) Change BG color on Hover - done
2) When User clicks on a row preform a server side postback that tells me what row was selected.

Thanks
Shinu
Top achievements
Rank 2
 answered on 31 Jan 2012
1 answer
113 views
Hello,

I'm adding columns to my RadGrid during runtime, dynamically. The page size is set on the server side based on a configuration setting. The width should be dependent on the number of columns and size of each. I've enabled scroll bars using "AllowScroll=True" and "UseStaticHeaders=True". If the width of the grid stretches beyond the page, it displays a horizontal scroll bar.

1) Is it possible to set the column width to fit the content of the column?

2) Is it possible to have a floating width? This means, the width is dependent on the number of columns and size of each column. My grid currently looks great when it stretches the entire page width.



Princy
Top achievements
Rank 2
 answered on 31 Jan 2012
4 answers
324 views
Hi,
I want to call dayrender event when the user click on caledar icon (when it popsup)

so that i can do some changes to dates of that current month styles.

or is there anyway i can call/fire the dayrender event though any javascript function..
Thanks
-Krishna
John
Top achievements
Rank 1
 answered on 31 Jan 2012
2 answers
157 views
Hello everyone,

I am using The AsyncUpload in a Asp.Net app and it seems that only in IE we are having a problem when we try to upload a file. We have had testers try to upload a file that is 55MB's and we are only allowing 3MB files to be uploaded. What happens is that when the file is in the process of being uploaded we get a Javascript error and the file just stops uploaded but we cannot disable a message or anything to the user to tell them what happened. 

This is the error that I am getting:

Exception thrown and not caught  Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=LogoffWarning1_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a89093640-ae6b-44c3-b8ea-010c934f8924%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.3.1305.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ac331b262-facd-47ae-9de3-709a764247d7%3a16e4e7cd%3af7645509%3a8674cba1%3a7c926187%3ab7778d6c%3ac08e9f8a%3a59462f1%3aa51ee93e%3a24ee1bba%3a52af31a4%3af46195d3%3a874f8ea2%3a19620875%3a490a9d4e%3abd8f85e4, line 7191 character 1 

I looked in the code and the error is firing on the actual Catch statement. 

Line 7190: try(B=a.parseJSON(z.body.innerHTML);
Line 7191: } catch(A){j(y);

Any ideas?

Thank you,
Chris
chris
Top achievements
Rank 1
 answered on 30 Jan 2012
1 answer
129 views
UPDATED: My problem stems from the editor being on a secured page (not ssl, but via membership). Revised thoughts welcomed.

I am having a problem getting the Upload and Delete option to show in the RadEditor for any manager (image, document). I dumbed it down to this:
                    <telerik:RadEditor ID="RadEditor1" runat="server" Skin="WebBlue">
                        <Content>
                        </Content>
                        <ImageManager ViewPaths="~/ContentEditor/Images" DeletePaths="~/ContentEditor/Images"
                            UploadPaths="~/ContentEditor" />
                        <DocumentManager DeletePaths="~/ContentEditor/Documents" UploadPaths="~/ContentEditor/Documents"
                            ViewPaths="~/ContentEditor/Documents" />
                        <FlashManager DeletePaths="~/ContentEditor/Flash" UploadPaths="~/ContentEditor/Flash"
                            ViewPaths="~/ContentEditor/Flash" />
                        <MediaManager DeletePaths="~/ContentEditor/Media" UploadPaths="~/ContentEditor/Media"
                            ViewPaths="~/ContentEditor/Media" />
                    </telerik:RadEditor>
 I can see files fine. I can pick a file fine. I can resize the images fine. I just cannot get the Upload or Delete options to show up. The handler is in the web config, and I also added a location. I am running this locally using the built in VS web server. Some help would be great. Thanks.
Al
Top achievements
Rank 2
 answered on 30 Jan 2012
2 answers
141 views
I'm creating a RadComboBox programatically and I'm setting the RadComboBoxSelectedIndexChangedEventHandler. The function runs when the RadComboBox is changed, however, I can't seem to figure out how to get the value that it's being changed to. I seem to be one change behind when I'm evaluating it.

My code for the SelectedIndexChanged function is fairly simple
protected void dd_RptDate_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    if (e.Value == "DAILY")
        Session["s_datePickers"] = "true";
    else
        Session["s_datePickers"] = "false";
}

but e.Value gets me the existing value before I change it. I need to get the value it has been changed to. Any ideas? thanks.
Chris
Top achievements
Rank 1
 answered on 30 Jan 2012
1 answer
123 views
I have a Radgrid on a page that uses GroupByExpressions and for editing a WebUserConrtol.  Everything seems to work fine except when the Edit form is displayed, it pushes everything below it to the right.  See the attachment.  How do I get it to stop altering the main grid?

<telerik:RadGrid ID="RadGrid1" runat="server" Skin="Office2007" AllowPaging="false"
     Width="100%" EnableLinqExpressions="true" AllowCustomPaging="false" AutoGenerateColumns="False"
     GridLines="None" AllowSorting="true" AllowFilteringByColumn="false" AlternatingItemStyle-BackColor="#eeeeee"
     ShowGroupPanel="False" ShowStatusBar="True" OnNeedDataSource="RadGrid1_NeedDataSource">
  <AlternatingItemStyle BackColor="#EEEEEE"></AlternatingItemStyle>
    <MasterTableView Width="100%" DataKeyNames="DocumentLogID" PagerStyle-Mode="NextPrevNumericAndAdvanced"
         ClientDataKeyNames="DocumentLogID">
       <GroupByExpressions>
         <telerik:GridGroupByExpression>
           <SelectFields>
             <telerik:GridGroupByField FieldAlias="" HeaderText=" " FieldName="AccessPerson" HeaderValueSeparator="" />
           </SelectFields>
           <GroupByFields>
             <telerik:GridGroupByField FieldName="AccessPerson" HeaderText="Access Person" SortOrder="Ascending" />
           </GroupByFields>
         </telerik:GridGroupByExpression>
       </GroupByExpressions>
       <Columns>
         <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
         </telerik:GridEditCommandColumn>
         <telerik:GridTemplateColumn UniqueName="PrintDoc" HeaderText="Print">
            <HeaderTemplate>
              <asp:CheckBox ID="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True"
                   runat="server"></asp:CheckBox>
            </HeaderTemplate>
            <ItemTemplate>
              <asp:CheckBox ID="PrintCheckBox" runat="server" OnCheckedChanged="ToggleRowSelection"
                   AutoPostBack="true" Visible="true"></asp:CheckBox>
            </ItemTemplate>
         </telerik:GridTemplateColumn>
         <telerik:GridBoundColumn DataField="DocumentLogID" Visible="false" UniqueName="DocumentLogID" />
         <telerik:GridBoundColumn DataField="ClientID" Visible="false" />
         <telerik:GridBoundColumn DataField="AccessPersonID" Visible="false" />
         <telerik:GridBoundColumn DataField="ReportID" Visible="false" />
         <telerik:GridBoundColumn SortExpression="ReportName" DataField="ReportName" HeaderText="Report Name" />
         <telerik:GridBoundColumn SortExpression="StatusDescription" DataField="StatusDescription"
                  HeaderText="Status" />
         <telerik:GridBoundColumn DataField="DocumentStatusID" UniqueName="DocumentStatusID"
                  Groupable="False" Visible="False" />
         <telerik:GridBoundColumn SortExpression="SentBy" DataField="SentBy" HeaderText="Sent By"
                  AllowFiltering="false" />
         <telerik:GridBoundColumn SortExpression="DateSent" DataField="DateSent" HeaderText="Date Sent"
                  DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy}" AllowFiltering="false" />
         <telerik:GridBoundColumn SortExpression="DueDate" DataField="DueDate" HeaderText="Date Due"
                  DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy}" AllowFiltering="false" />
         <telerik:GridBoundColumn SortExpression="PrintReason1" DataField="PrintReason1" HeaderText="Print Reason"
                  AllowFiltering="false" />
         <telerik:GridBoundColumn SortExpression="StartDate" DataField="StartDate" HeaderText="Start Due"
                  DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy}" AllowFiltering="false" />
         <telerik:GridBoundColumn SortExpression="EndDate" DataField="EndDate" HeaderText="End Due"
                  DataType="System.DateTime" DataFormatString="{0:MM/dd/yyyy}" AllowFiltering="false" />
         <telerik:GridBoundColumn SortExpression="Version" DataField="Version" HeaderText="Version"
                  AllowFiltering="false" />
      </Columns>
      <EditFormSettings UserControlName="Controls/PrintDocDetails.ascx" EditFormType="WebUserControl">
        <EditColumn UniqueName="EditCommandColumn1">
          <ItemStyle Width="100%" />
        </EditColumn>
      </EditFormSettings>
   </MasterTableView>
   <ClientSettings>
      <ClientEvents OnRowDblClick="RowDblClick" />
   </ClientSettings>
   <FilterMenu Skin="Office2007" EnableTheming="True">
     <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
   </FilterMenu>
 </telerik:RadGrid>
Eric Klein
Top achievements
Rank 1
 answered on 30 Jan 2012
4 answers
116 views
Hi, i've got a radgrid with some template columns in that contain images.

Although when exporting the images aren't displayed, a missing image icon is displayed in its place. What i'd like to do is at the point of exporting, remove any images in each row if any are present, replacing them, ideally with their alt tag, resulting in just text.


Is this possible ?

Also i'm pretty sure this isn't possible but are you able to include data from another control in the page such as a header for example ?

e.g. i've got a radgrid of hits and their associated item. It'd be nice if i could put some totals in the exported file, which at the moment i'm showing in a seperate table inside a panel.


thanks, Alan
Alan T
Top achievements
Rank 1
 answered on 30 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?