Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
Hi all,

when I am creating a table in RadEditor(DNN6), I can assign a table layout defined by Telerik like "Telerik-reTable-1". But how do I customize my own table layout? Where do I find the source files?

Has anyone an idea how to solve this?
 A step by step instruction is welcome.

Thanks
Rumen
Telerik team
 answered on 09 Aug 2012
1 answer
63 views
can we hide the next/prev in calender
seee the attached image

pls reply

Thanks and ragarda

hAri
Princy
Top achievements
Rank 2
 answered on 09 Aug 2012
3 answers
154 views
HI,

I am using xmldatasource to populate the treeview. Like in the example: http://demos.telerik.com/aspnet-ajax/treeview/examples/programming/xmlfile/defaultcs.aspx 

Only extra property I have in XML node is 'NavigateURL' property. When I click the node it is loading the page specified in the navigateurl, but the treeview is collapsing. How to retain the state in this case?

<Tree>
   <Node Text="Sample" NavigateUrl="~/Sample.aspx" Expanded="False" ></Node>
</Tree>

Plamen
Telerik team
 answered on 09 Aug 2012
3 answers
158 views
when updating the  master  RecurrenceState.Master is set in AppointmentUpdate it is also set when changing an occurrence to change the RecurrenceRule... how do I know the difference of whether it is a full master change or a rule change?

also is there an example of creating Individual instances of a recurring appointment. I need Individual instances of all. but still need ability to update as a group.... thanks
Plamen
Telerik team
 answered on 09 Aug 2012
2 answers
211 views
Hello,

i want to change the theme of my application dynamically (on button click) for a user in aps.net 3.5. how to impliment this without postback. can it be done without repeating the codes in every form where the theme is to br applied?
Amit
Top achievements
Rank 1
 answered on 09 Aug 2012
2 answers
58 views
Hi,

Can we show the "calender" at the first time(in the page load itself)


Thanks and Regards
Hari
Harikrishnan
Top achievements
Rank 1
 answered on 09 Aug 2012
3 answers
327 views

I am using  a RadGrid in my project and i want to take rowindex in OnCommand (JavaScript) Function . Is it possible or how can i do it ??


<
telerik:RadGrid ID="RadGrid1" runat="server" Width="96%" GridLines="None" Skin="Vista"

 

 

AutoGenerateColumns="False" AllowFilteringByColumn="True" PageSize="13"

 

 

ShowStatusBar="True" OnUpdateCommand="RadGrid1_UpdateCommand"

 

OnInsertCommand="RadGrid1_InsertCommand"

 

 

OnDeleteCommand="RadGrid1_DeleteCommand"

 

OnNeedDataSource="RadGrid1_NeedDataSource"

 

OnItemDataBound="RadGrid1_ItemDataBound"

 

ShowFooter="True"">

 

<MasterTableView DataKeyNames="MuhFisDetayId" AllowMultiColumnSorting="True" Width="100%"

 

 

CommandItemDisplay="Top" EditMode="InPlace" InsertItemDisplay="Top">

 

<Columns>

 

 

<telerik:GridDropDownColumn DataField="HesapId" DataSourceID="LLBLGenProDataSource3"  

 

 

HeaderText="HesapKodu" ListTextField="HesapKodu" ListValueField="HesapId" UniqueName="HesapId">

 

 

 

 

<ItemStyle HorizontalAlign="Left" />

 

 

 

</telerik:GridDropDownColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Alacak" UniqueName="TemplateColumnAlacak"  EditFormColumnIndex="2">

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

<%# Eval("Alacak")%>

 

 

 

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

 

 

<telerik:RadNumericTextBox runat="server" ID="tbAlacak" Width="40px" DbValue='<%# Bind("Alacak") %>' DataType="Decimal">

 

 

 

 

 

 

</telerik:RadNumericTextBox>

 

 

 

 

 

 

</EditItemTemplate>

 

 

 

 

 

 

<FooterTemplate>

 

<asp:Label runat="server" ID="lblAlacakToplam" Text="" Font-Bold="true" Font-Names="Verdana" ForeColor="#000000"></asp:Label 

 

</FooterTemplate>

 

 

 

<ItemStyle HorizontalAlign="Left" />

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

<telerik:GridEditCommandColumn UpdateText="Update" UniqueName="EditCommandColumn"

 

 

 

CancelText="Cancel" EditText="Update">

 

 

 

 

<HeaderStyle Width="85px"></HeaderStyle>

 

 

 

 

</telerik:GridEditCommandColumn>

 

 

 

 

<telerik:GridButtonColumn UniqueName="DeleteColumn" Text="Delete" CommandName="Delete" />

 

 

</Columns>

 

 

 

<EditFormSettings CaptionFormatString="{0} Update" CaptionDataField="MuhFisDetayId">

 

 

 

 

<EditColumn ButtonType="ImageButton" />

 

 

 

 

<FormStyle BackColor="#eef2ea" Width="100%" />

 

 

<FormTableStyle CellPadding="2" CellSpacing="0" GridLines="None" />

 

 

<FormTableItemStyle Height="29px" Width="100%" />

 

 

 

</EditFormSettings>

 

 

 

 

</MasterTableView>

 

 

 

 

<ClientSettings>

 

 

<ClientEvents OnCommand="onCommand" />

 

 

 

<Selecting AllowRowSelect="true" />

 

 

 

 

</ClientSettings>
</telerik:RadGrid>

 

 

 

 

Nils C.
Top achievements
Rank 1
 answered on 09 Aug 2012
4 answers
234 views
I have something similar to the demo; however my code uses a Form Template to define the "editing" form fields...the demo doesn't.

How can i leverage the demo code but reference a FormTemplate for RadUploading to a database?

My code has this...
<Columns> 
                <telerik:GridBoundColumn DataField="ArticleID" DataType="System.Guid" HeaderText="ArticleID" 
                    ReadOnly="True" SortExpression="ArticleID" UniqueName="ArticleID" Visible="False" 
                    HeaderStyle-Wrap="False"
                    <HeaderStyle Wrap="False"></HeaderStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridTemplateColumn DataField="ArticleTitle" HeaderText="Article Title" UniqueName="ArticleTitle"
                    <ItemTemplate> 
                        <asp:HyperLink ID="hypArtID" Text='<%# Bind("ArticleTitle") %>' NavigateUrl='<%#"~/articles/article_view.aspx?ArticleID=" + DataBinder.Eval (Container.DataItem, "ArticleID") %>' 
                            runat="server"></asp:HyperLink> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridBoundColumn DataField="ArticleSubject" HeaderText="Article Subject" 
                    SortExpression="ArticleSubject" UniqueName="ArticleSubject" HeaderStyle-Wrap="False" 
                    ItemStyle-VerticalAlign="Top" Visible="false"
                    <HeaderStyle Wrap="False"></HeaderStyle> 
                    <ItemStyle VerticalAlign="Top"></ItemStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridTemplateColumn DataField="ArticleContent" HeaderText="Article Content" 
                    SortExpression="ArticleContent" UniqueName="ArticleContent" ItemStyle-VerticalAlign="Top"
                    <ItemTemplate> 
                        <asp:Label ID="ArticleContentLabel" runat="server" Width="300px" Text='<%# Truncate(DataBinder.Eval (Container.DataItem, "ArticleContent")) %>'></asp:Label> 
                    </ItemTemplate> 
                    <ItemStyle VerticalAlign="Top"></ItemStyle> 
                </telerik:GridTemplateColumn> 
                <telerik:GridTemplateColumn DataField="ArticleDateTime" DataType="System.DateTime" 
                    HeaderText="Article Date" SortedBackColor="LightGray" SortExpression="ArticleDateTime" 
                    UniqueName="ArticleDateTime" ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Top"
                    <ItemTemplate> 
                        <asp:Label ID="ArticleDateTimeLabel" runat="server" Text='<%# Eval("ArticleDateTime","{0:d}") %>'></asp:Label> 
                    </ItemTemplate> 
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Top"></ItemStyle> 
                </telerik:GridTemplateColumn> 
                <telerik:GridBoundColumn DataField="ArticleExp" DataType="System.DateTime" HeaderText="ArticleExp" 
                    SortExpression="ArticleExp" UniqueName="ArticleExp" Visible="False" HeaderStyle-Wrap="False" 
                    ItemStyle-VerticalAlign="Top"
                    <HeaderStyle Wrap="False"></HeaderStyle> 
                    <ItemStyle VerticalAlign="Top"></ItemStyle> 
                </telerik:GridBoundColumn> 
                <telerik:GridCheckBoxColumn DataField="ArticleExpChkBox" DataType="System.Boolean" 
                    HeaderText="ArticleExpChkBox" SortExpression="ArticleExpChkBox" UniqueName="ArticleExpChkBox" 
                    Visible="False" HeaderStyle-Wrap="False" ItemStyle-VerticalAlign="Top"
                    <HeaderStyle Wrap="False"></HeaderStyle> 
                    <ItemStyle VerticalAlign="Top"></ItemStyle> 
                </telerik:GridCheckBoxColumn> 
                <telerik:GridTemplateColumn DataField="UserName" HeaderText="User Name" SortExpression="UserName" 
                    UniqueName="UserName" Visible="False"
                </telerik:GridTemplateColumn> 
                <telerik:GridBinaryImageColumn DataField="ArticleBillboardImage" HeaderText="Article Image" 
                    ImageAlign="NotSet" ResizeMode="Fit" ImageHeight="199px" ImageWidth="135px" DataAlternateTextFormatString="Image of {0}" 
                    DataAlternateTextField="ArticleBillboardImageDesc" UniqueName="ArticleBillboardImage" 
                    Visible="False"
                </telerik:GridBinaryImageColumn> 
                <telerik:GridTemplateColumn DataField="ArticleBillboardImageName" HeaderText="Article Image Name" 
                    UniqueName="ArticleBillboardImageName" Visible="False"
                    <ItemTemplate> 
                        <asp:Label runat="server" ID="lblArticleBillboardImageName" Text='<%# Eval("ArticleBillboardImageName") %>' /> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridTemplateColumn DataField="ArticleBillboardImageDesc" HeaderText="Article Image Description" 
                    UniqueName="ArticleBillboardImageDesc" Visible="False"
                    <ItemTemplate> 
                        <asp:Label runat="server" ID="lblArticleBillboardImageDesc" Text='<%# Truncate(DataBinder.Eval (Container.DataItem, "ArticleBillboardImageDesc")) %>' /> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
            </Columns> 
            <EditFormSettings EditFormType="Template"
                <FormTemplate> 
                    <table id="ArticleEditForm" width="100%"
                        <tr> 
                            <td style="padding-left: 5px"
                                Article Title 
                            </td> 
                            <td align="left"
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ArticleTitle", "{0}") %>' 
                                    Width="200px"></asp:TextBox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td style="padding-left: 5px"
                                Article Subject 
                            </td> 
                            <td align="left"
                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("ArticleSubject", "{0}") %>' 
                                    Width="200px"></asp:TextBox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td style="padding-left: 5px"
                                Article Posted 
                            </td> 
                            <td align="left"
                                <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("ArticleDateTime") %>' ReadOnly="True"></asp:TextBox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td style="padding-left: 5px"
                                Article Expiration 
                            </td> 
                            <td align="left"
                                <telerik:RadDateTimePicker ID="RadDateTimePicker2" runat="server" Culture="English (United States)" 
                                    Skin="Default" DbSelectedDate='<%# Bind("ArticleExp", "{0:g}") %>'
                                    <TimePopupButton HoverImageUrl="" ImageUrl="" /> 
                                    <TimeView ID="TimeView2" runat="server" CellSpacing="-1"
                                    </TimeView> 
                                    <Calendar ID="Calendar2" runat="server" Skin="Hay" UseColumnHeadersAsSelectors="False" 
                                        UseRowHeadersAsSelectors="False" ViewSelectorText="x"
                                    </Calendar> 
                                    <DatePopupButton HoverImageUrl="" ImageUrl="" /> 
                                </telerik:RadDateTimePicker> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td style="padding-left: 5px"
                                User Name 
                            </td> 
                            <td align="left"
                                <asp:Label ID="Label5" runat="server" Text='<%# Bind("UserName") %>'></asp:Label> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td style="padding-left: 5px"
                                Article UserID 
                            </td> 
                            <td align="left"
                                <asp:Label ID="Label3" runat="server" Text='<%# Bind("UserID", "{0}") %>'></asp:Label> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td style="padding-left: 5px"
                                Article Content 
                            </td> 
                            <td align="left"
                                <telerik:RadEditor Width="99%" ID="RadEditor1" runat="server" Content='<%# Bind("ArticleContent") %>' 
                                    ToolbarMode="ShowOnFocus" EnableTheming="True" EnableResize="False" ToolsFile="~/admin/Tools/ToolsFile.xml"
                                    <Languages> 
                                        <telerik:SpellCheckerLanguage Code="en-US" Title="English" /> 
                                    </Languages> 
                                    <CssFiles> 
                                        <telerik:EditorCssFile Value="~/admin/Tools/CSS/EditorContentArea.css" /> 
                                    </CssFiles> 
                                    <Modules> 
                                        <telerik:EditorModule Name="RadEditorStatistics" Enabled="true" /> 
                                    </Modules> 
                                </telerik:RadEditor> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td style="padding-left: 5px"
                                Article Image 
                            </td> 
                            <td align="left"
                                <telerik:RadBinaryImage ID="RadBinaryImage1" DataValue='<%#Eval("ArticleBillboardImage") is DBNull ? null : Eval("ArticleBillboardImage")%>' Height="199px"  Width="135px" ToolTip='<%#Eval("ArticleBillboardImageDesc", "Photo of {0}") %>' 
                                AlternateText='<%#Eval("ArticleBillboardImageDesc", "Photo of {0}") %>' runat="server" ResizeMode="Crop" /> 
                                 
                            </td> 
                            <td> 
                                <telerik:RadProgressManager ID="RadProgressManager1" runat="server" /> 
                             
                            </td> 
                        </tr> 
                        <tr> 
                        <td style="padding-left: 5px">Upload Image:</td> 
                        <td> 
                            <telerik:RadUpload ID="RadUpload1" runat="server" ControlObjectsVisibility="None" AllowedFileExtensions=".png, .jpg, .gif" MaxFileInputsCount="1" OverwriteExistingFiles="True"
                            </telerik:RadUpload><br /> 
                            <telerik:RadAsyncUpload ID="RadAsyncUpload1" ControlObjectsVisibility="None" AllowedFileExtensions=".png, .jpg, .gif" runat="server" MaxFileInputsCount="1" OverwriteExistingFiles="True"
                            </telerik:RadAsyncUpload> 
                            </td> 
 
                        </tr> 
                                                <tr> 
                            <td style="padding-left: 5px"
                                Article Image Name 
                            </td> 
                            <td align="left"
                                <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("ArticleBillboardImageName") %>'></asp:TextBox> 
                            </td> 
                        </tr> 
                                                <tr> 
                            <td style="padding-left: 5px"
                                Article Image Description 
                            </td> 
                            <td align="left"
                                <asp:TextBox Rows="5"  MaxLength="500" ID="TextBox4"  
                                    Text='<%# Bind("ArticleBillboardImageDesc") %>' runat="server"  
                                    TextMode="MultiLine" Width="300px"></asp:TextBox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td class=""
                                &nbsp; 
                            </td> 
                            <td align="right"
                                &nbsp; 
                            </td> 
                        </tr> 
                        <tr> 
                            <td> 
                                &nbsp; 
                            </td> 
                            <td align="right"
                                <asp:Button ID="btnUpdate" runat="server" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' 
                                    CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' /> 
                                &nbsp; 
                                <asp:Button ID="btnCancel" runat="server" CausesValidation="False" CommandName="Cancel" 
                                    Text="Cancel" /> 
                            </td> 
                        </tr> 
                    </table> 
                </FormTemplate> 
In the code i have listed...i was testing with both the RadUpload and the AsyncRadUpload...not sure would be a better fit.

Also, i'm not sure if i need to include the logic from the demo for the postback issues?

Thanks,
Greg



Helen
Telerik team
 answered on 09 Aug 2012
7 answers
352 views
I'm using a file manager control with AsyncUpload enabled:

<telerik:RadFileExplorer ID="expTCDrive" runat="server" EnableCopy="true" OnClientFileOpen="OnClientFileOpen"
                EnableFilterTextBox="true" EnableFilteringOnEnterPressed="false" Width="750px"
                OnClientFolderChange="OnClientFolderChange" Height="500px" EnableAsyncUpload="true">
                <Configuration MaxUploadFileSize="52428800" />
            </telerik:RadFileExplorer>

From time to type, we are receiving the following exception

Error in: https://oursite/ourfolder/Telerik.Web.UI.WebResource.axd?type=rau

Error message: Object reference not set to an instance of an object.

Stack trace:    at Telerik.Web.UI.AsyncUploadHandler.ProcessRequest(HttpContext context)

   at Telerik.Web.UI.HandlerRouter.ProcessHandler(String handlerKey, HttpContext context)

   at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)

   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Any ideas why this would be happening? I've tried several different things and was hoping that I could recreate it, but I can't. I was thinking that perhaps it was being caused by the Upload button being enabled while it was still uploading in the previous version, but with the latest release, that issue has been fixed and the error still occurs. If it helps, I can package up the entire project and send it as a support ticket.

Thanks,
Adam
Rohan
Top achievements
Rank 1
 answered on 09 Aug 2012
1 answer
228 views
I Have a RadSlider with that code
<telerik:RadSlider ID="RadSliderResBedrooms" runat="server" ItemType="item" Width="350px"
                                Height="70px" AnimationDuration="400" ThumbsInteractionMode="Free"
                                EnableDragRange="true" IsSelectionRangeEnabled="true" SelectionEnd="12" SelectionStart="0" >
                                <Items>
                                    <telerik:RadSliderItem Text="1" Value="1" Width="100px" />
                                    <telerik:RadSliderItem Text="2" Value="2" />
                                    <telerik:RadSliderItem Text="3" Value="3" />
                                    <telerik:RadSliderItem Text="4" Value="4" />
                                    <telerik:RadSliderItem Text="5" Value="5" />
                                    <telerik:RadSliderItem Text="6" Value="6" />
                                    <telerik:RadSliderItem Text="7" Value="7" />
                                    <telerik:RadSliderItem Text="8" Value="8" />
                                    <telerik:RadSliderItem Text="9" Value="9" />
                                    <telerik:RadSliderItem Text="10" Value="10" />
                                    <telerik:RadSliderItem Text="11" Value="11" />
                                    <telerik:RadSliderItem Text="12" Value="12" />
                                </Items>
                            </telerik:RadSlider>

The problem that its width when the page first loads is very small and looked crashed but after reloading pages it goes 
that's the crashed slider image:
http://i.imgur.com/wWGm0.png
Slav
Telerik team
 answered on 09 Aug 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?